-
activate button from inside a movie clip?
Hi everyone..
I'm trying to get a button which is inside a movie clip to lead to another scene with the following:
on (press) {
gotoAndPlay ("licensed", 1);
}
Where "licensed" is the name of the scene where i'm trying to go.
I have no problem having the button lead to the next scene if the button is sitting directly on a scene, the problem is when i put the button inside a movie clip so it's not "directly" sitting on the scene.
If anyone understands what i mean, is it possible to do? and how?
thanks!
-
Moderator
Code:
on (release) {
_root.gotoAndPlay("frameLabelHere");
}
-
I'm afraid it doesn't work, on the button itself or on the movie clip neither :/
Anything else i could try? Or perhaps any example i could find?
Thanks for the tip though
-
Sorry my bad, i put the name of the scene instead of a frame label. Now it works!
Thanks a bunch estudioworks! You just saved me hours of work!
I still don't get it why it won't work with just a goto and the scene name, since the scene name is available from the pulldown menu, you'd think the movie clip would figure out how to find a scene without resorting to a frame label name within the target scene. Anyways, i should stop thinking about it and use the way it works..
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|