|
主题: 请高手指点一下
|
 michaelhong
职务:普通成员
等级:1
金币:1.0
发贴:172
|
#12002/9/24 11:45:04
在Scene1有两个按钮:button1和button2。我现在想在按按钮button1时动画能转到Scene2,在按button2时能转到Scene3,请问有没有高手知道该怎么做
|
 Mozier
职务:管理员
等级:5
金币:11.0
发贴:2994
|
#22002/9/24 11:48:12
button1: on(release){ _root.gotoAndStop("Scene2",1); } button2: on(release){ _root.gotoAndStop("Scene3",1); }
|
 michaelhong
职务:普通成员
等级:1
金币:1.0
发贴:172
|
#32002/9/24 14:49:59
晕,试过了,不行啊。
|
 michaelhong
职务:普通成员
等级:1
金币:1.0
发贴:172
|
#42002/9/24 15:05:38
我原来的button1的代码:
on (press) { gotoAndPlay ("Scene 2", 1);
} 请问该怎么改?
|
 Mozier
职务:管理员
等级:5
金币:11.0
发贴:2994
|
#52002/9/24 16:51:22
button1: on(release){ with(_root){ gotoAndStop("Scene2",1); } } button2: on(release){ with(_root){ gotoAndStop("Scene3",1); } }
|
 michaelhong
职务:普通成员
等级:1
金币:1.0
发贴:172
|
#62002/9/25 17:12:44
麽子在上个帖子中说 引用: button1: on(release){ with(_root){ gotoAndStop("Scene2",1); } } button2: on(release){ with(_root){ gotoAndStop("Scene3",1); } }
哈哈,可以了,谢谢斑竹啊
|