创建一个类库的第一步是创建它包含的类,我们的角色类是TextAnimation,保存在c:\data\actionscript\com\spiderservices\effects\TextAnimation.as,对于这个例子,我们的焦点是类库的建立 ,因此我们没给出真实的类代码,只在构造函数中提供了一个trace()来检查这具类是否在工作。
class com.spiderservices.effects.TextAnimation {
public function TextAnimation ( ) {
trace("Imagine a text effect with great majesty.");
}
}
现在类库已经建好,下一步创建含类的swf文件
admin#flashas.net (#为@) 联系QQ:
:40777822
浙ICP备06033001号