View Full Version : button in movie clip
cinciem
09-27-2002, 04:18 PM
I have been out of the loop for a while.
Can someone please refresh my memory. I have a group of buttons in a movie clip. I need them to affect the main timeline. I have tried
on(release) {
_root.gotoAndPlay(framelabel);
}
and this is not working.
Help would be appreciated.
Thanks.
jimburton
09-27-2002, 07:19 PM
Make sure the frame label is in quotes:
on(release) {
_root.gotoAndPlay("myFrame");
}
and that the action is on the button...if that's still not working
for you, do you have more info?
SlumberJack
09-27-2002, 07:24 PM
Your script should be correct... it sounded correct, but I just tested real quick to make sure.
In my example, there were 4 layers for the main stage (timeline)...
- Actions: [key] Frame 1 had stop () command
- Labels: [key] Frame 2 labeled "playhere"
- Button: [key] Frame 1 had button symbol within a MC
- Motion: [Key] Frame 2 had a box tween to [Key] frame 10
Button actionscript:
on (release) {
_root.gotoAndPlay("playhere");
}
Worked fine.
cinciem
10-02-2002, 02:33 PM
thanks for your help. I think my setttings on the boards are messed up I just got your responses.
|
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.