flashcs3 按钮的代码编写
答案:2 悬赏:60 手机版
解决时间 2021-02-06 13:22
- 提问者网友:活着好累
- 2021-02-05 15:48
flashcs3 按钮的代码编写
最佳答案
- 五星知识达人网友:何以畏孤独
- 2021-02-05 17:14
在FlashCS3中如何为按钮添加动作代码?比如说在AS2.0中为按钮添加Play动作只需输入
on(release){play();}复制代码
而在Flash Cs3中需要在时间轴中输入,代码怎样编写呢?
bt.addEventListener(MouseEvent.CLICK,fun);
function fun(e:MouseEvent){
}
为按钮命名为 myButton
在帧中输入
function startMovie(event:MouseEvent):void{this.stop();}myButton.addEventListener(MouseEvent.CLICK, startMovie);复制代码
on(release){play();}复制代码
而在Flash Cs3中需要在时间轴中输入,代码怎样编写呢?
bt.addEventListener(MouseEvent.CLICK,fun);
function fun(e:MouseEvent){
}
为按钮命名为 myButton
在帧中输入
function startMovie(event:MouseEvent):void{this.stop();}myButton.addEventListener(MouseEvent.CLICK, startMovie);复制代码
全部回答
- 1楼网友:神鬼未生
- 2021-02-05 17:21
你需要gotoAndPlay(你想要跳到的帧)
直接动画实例名.stop() 呀...
直接动画实例名.stop() 呀...
我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯