View Full Version : navigation from a movie clip
spywilliams
05-16-2001, 03:53 PM
I am trying to get a button in a movie clip that is placed on my main movie stage to go to another scene. I have tried several different ways to address it so it goes to the right place but it is not working. Is this because the button itself is not on the main stage but in a movie clip?
I have worked around it but for my own sake I would like to know if there is a way to use a button in a movie clip for navigation.
on (release) {
_root.gotoAndStop ("products", 1);
}
spywilliams
05-16-2001, 03:55 PM
For some reason the forum cut off the bottom of my message. So here it is
The new scene's name is products.
Thanks
ciao
Stephanie
magna
05-20-2001, 01:04 PM
I always target frame labels when jumping between scenes using nested buttons, because when you target a frame number in a scene , flash seems to ignore scene names and takes into account all frames in the entire movie. [ I think ? - somebody correct me if this is bs. ]
anyways to get the movie jumping about:
give the frame you want to go to in the product scene a frame label e.g ( prod_firstframe )
then the button action goes :
on (release) {
tellTarget (_root) {
gotoAndStop ("products", "prod_firstframe");
}
}
Hi...
Targeting the root followed by a frame label is the best way to go to another scene from within an MC:
on (release) {
_root.gotoAndStop("prod_firstframe");
}
Good luck.
spywilliams
05-21-2001, 08:48 PM
I've tried both ways of coding this and when I click the button I go to the beginning of scene I am in and not the scene i am trying to get to. I don't know why it is not working. I believe I have everthing addressed correctly I just can't get a button in a movie clip on the main stage to go where I'm telling it to go. (the scene "products") Thanks very much for your help if you have anymore insight you can give me I would really appreciate it!!!!
ciao
steph
Hi...
The previous example I gave you is definately the way to go.
You need to select the frame your targeting in whatever scene and then give it a frame label. You give it a frame label by choosing Modify/Frame and then typing in the name you want. In the example I gave I used 'prod_firstframe' as my frame label.
on (release) {
_root.gotoAndStop("prod_firstframe");
}
When using this method you never actually refer to the scene but a frame label in that scene.
Hope this helps.
spywilliams
05-22-2001, 01:22 PM
You will never guess why it wasn't working!!!! What a duh?!
The movie clip with the button in it had a goto action on it
(accidentally)ugh! I removed it and the help everyone gave me worked!!! Thanks so much.
Steph
|
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.