初学者求救:自定义类中的 rotation连接到.fla中没反应。

[复制链接]
查看11 | 回复1 | 2009-4-28 10:23:23 | 显示全部楼层 |阅读模式
我做的是高新考试中的题目,自定义了一个类,其中有一个旋转效果。代码如下:
import flash.display.BitmapData;
class Script {
public function rot(szz:Object):Void {
szz.onEnterFrame = function() {
szz._rotation = 45;
};
}
}
flash文档中的代码为:
var mymokey:Script = new Script();
this.buttonZ.onRelease = function() {
mymokey.rot(_root.sp, "s");
};
要实现点一下按钮,sp这个影片剪辑会有旋转效果;
请高手帮帮忙,急呀

回复

使用道具 举报

千问 | 2009-4-28 10:23:23 | 显示全部楼层
飘过·(不是不回答..这个问题我也想问...)...
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行