推荐一款Java反编译器(Java Decompiler),非常好用

2010年3月25日 没有评论

     推荐一款Java反编译器,也使用了挺久的了,感觉还是很好用,就拿出和大家分享一下。 这款Java反编译工具叫 "Java Decompiler", 由 Pavel Kouznetsov开发,目前最新版本为0.3.6. 它由 C++开发,并且官方可以下载 windows、linux和苹果Mac Os三个平台的可执行程序。

 本人之所以认为它还不错,是其有下面几个功能: 阅读全文...

ProgressiveLoader 渐进式加载图像

2009年12月10日 9 条评论

该版本已更新,请移步新版本:http://www.litefeel.com/progressiveloader-update/

阅读全文...

java连接SqlServer 数据库

2009年11月21日 没有评论

前些天终于把聊天室弄的差不多了,要放服务器上测试,接着就发现下面的错误:
java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Error establishing socket. 现在想到的就是是否有打sp3补丁
果不其然,真的没打,赶紧下载并安装,不幸的是不能安装补丁的时候出错,总是打不来,sp4也不行。
然后换 另一个驱动依然是报错:
java.sql.SQLException: Network error IOException: Connection refused: connect
阅读全文...

标签: ,

缩放盒子 ScaleBox 同时兼容Flex

2009年11月1日 4 条评论
这是一个缩放盒子scaleBox的演示demo,如果你看不到这个flash,请到文章页面查看!

阅读全文...

标签: , ,

JAR运行出现ClassNotFoundException异常的解决办法

2009年10月30日 1 条评论

最近在弄个聊天室,由于要跟数据库通信,用到了JDBC的3个jar,在eclipse里OK的,但布置到服务器坏事了,不知道怎么弄JDBC的3个jar了.
写个autoStart.bat

java -jar chatServer.jar
pause

运行报错:
阅读全文...

标签: ,

冷却时间(CD,cool down) 效果更新,优化CPU

2009年10月13日 11 条评论

转动一周结束后点击可重新开始。

这是一个冷却效果cd的演示demo,如果你看不到这个flash,请到文章页面查看!

阅读全文...

标签: ,

游戏里冷却时间效果 cool down (CD) 扇形

2009年10月11日 3 条评论

非常抱歉,这个只想到效果,忘记了CPU,我又重新写了个,请看 冷却时间(CD,cool down) 效果更新,优化CPU
左边是一个冷却时间效果,右边是一个扇形

这是一个冷却效果cd的演示demo,如果你看不到这个flash,请到文章页面查看!

阅读全文...

NativeMenu ContextMenuEvent

2009年8月18日 1 条评论

今天群里朋友问,A B C D多个显示对象有同一个NativeMenu菜单,怎么知道是哪个显示对象弹出的菜单?
首先想到的是NativeMenu有Event.DISPLAYING事件,可是具体是哪个显示对象就不好弄了,
然后想,如果只是相同的菜单显示,而用不同的NativeMenu可以用闭包函数实现,O(∩_∩)O~
可是那位朋友说用闭包不适合的,o(╯□╰)o
又有朋友说用ContextMenuEvent.MENU_SELECT试试,我想NativeMenu没有ContextMenuEvent事件的,怎么能用呢。
先试下再说了, 没想到果然ok的,郁闷了,API上说NativeMenu没有ContextMenuEvent事件的啊, 莫非我的API有误?describeType 看下,晕倒,也没ContextMenuEvent事件的。
然后测试NativeWidow.menu,不会触发ContextMenuEvent事件,
然后猜想,可能InteractiveObject的contextMenu会自动添加ContextMenuEvent.MENU_SELET事件。

结论:InteractiveObject的contextMenu会自动添加ContextMenuEvent.MENU_SELET事件,而不管是不是ContextMenu

下面是测试代码:
阅读全文...

flash把自定义类元件打包成swc供flex调用

2009年8月11日 没有评论

首先Flash IDE 要安装 FlexComponentKit 扩展(没找到官方下载地址,所有传了以前下的CS3版本的)。
下面开始讲应用,先准备好自定义类,然后将这个类改个名字作为基类,比如我用的cn.lite3.MyUIMovieClip,就用cn.lite3.MyUIMovieClipBase,源码后面下载。
然后准备好要用的原件我的是MyUIMovieClip。
下面讲操作方法O(∩_∩)O。
阅读全文...

ASDoc tags 文档注释标签详解

2009年7月31日 没有评论

转至Adobe:http://livedocs.adobe.com/flex/3/html/index.html?content=asdoc_9.html

ASDoc tag Description Example
@copy reference Copies an ASDoc comment from the referenced location. The main description, @param, and @return content is copied; other tags are not copied. You typically use the @copy tag to copy information from a source class or interface not in the inheritance list of the destination class. If the source class or interface is in the inheritance list, use the @inheritDoc tag instead. You can add content to the ASDoc comment before the @copy tag. Specify the location by using the same syntax as you do for the @see tag. For more information, see Using the @see tag. @copy #stop @copy MovieClip#stop
@default value Specifies the default value for a property, style, or effect. The ASDoc tool automatically creates a sentence in the following form when it encounters an @default tag: The default value is value. @default 0xCCCCCC
@eventType package.class.CONSTANT @eventType String Use the first form in a comment for an [Event] metadata tag. It specifies the constant that defines the value of the Event.type property of the event object associated with the event. The ASDoc tool copies the description of the event constant to the referencing class. Use the second form in the comment for the constant definition. It specifies the name of the event associated with the constant. If the tag is omitted, ASDoc cannot copy the constant's comment to a referencing class. See Documenting effects, events, and styles
@example exampleText Applies style properties, generates a heading, and puts the code example in the correct location. Enclose the code in <listing version="3.0"></listing> tags. Whitespace formatting is preserved and the code is displayed in a gray, horizontally scrolling box. @example The following code sets the volume level for your sound: <listing version="3.0"> var mySound:Sound = new Sound(); mySound.setVolume(VOL_HIGH); </listing>
@exampleText string Use this tag in an ASDoc comment in an external example file that is referenced by the @example tag. The ASDoc comment must precede the first line of the example, or follow the last line of the example. External example files support one comment before and one comment after example code. /** * This text does not appear * in the output. * @exampleText But this does. */
@inheritDoc Use this tag in the comment of an overridden method or property. It copies the comment from the superclass into the subclass, or from an interface implemented by the subclass. The main ASDoc comment, @param, and @return content are copied; other tags are not. You can add content to the comment before the @inheritDoc tag. When you include this tag, ASdoc uses the following search order: 1. Interfaces implemented by the current class (in no particular order) and all of their base-interfaces. 2. Immediate superclass of current class. 3. Interfaces of immediate superclass and all of their base-interfaces. 4. Repeat steps 2 and 3 until the Object class is reached. You can also use the @copy tag, but the @copy tag is for copying information from a source class or interface that is not in the inheritance chain of the subclass. @inheritDoc
@internal text Hides the text attached to the tag in the generated output. The hidden text can be used for internal comments. @internal Please do not publicize the undocumented use of the third parameter in this method.
@param paramName description Adds a descriptive comment to a method parameter. The paramName argument must match a parameter definition in the method signature. @param fileName The name of the file to load.
@private Exclude the element from the generated output. To omit an entire class, put the @private tag in the ASDoc comment for the class; to omit a single class element, put the @private tag in the ASDoc comment for the element. @private
@return description Adds a Returns section to a method description with the specified text. ASDoc automatically determines the data type of the return value. @return The translated message.
@see reference [displayText] Adds a See Also heading with a link to a class element. For more information, see Using the @see tag. Do not include HTML formatting characters in the arguments to the @see tag. @see flash.display.MovieClip
@throws package.class.className description Documents an error that a method can throw. @throws SecurityError Local untrusted SWFs may not communicate with the Internet.
标签: , ,
回到顶部