View Full Version : [MX] goto another scene pb
Uli
February 7th, 2003, 11:23 AM
Hi there,
I'd need a little bit of help here...
i have 3 scenes: loading, menu and animation.
when i'm playing the animation scene, i have a slider. I wanna use it as a on/off switch to go back to my scene "menu" so it goes like that:
the bouton (instance "onoff") of my slider (on root of "animation"):
on (press) {
startDrag("_root.onoff", false, 50, 335, 120, 335);
}
on (release) {
stopDrag();
}
i have a movie clip also on root of "animation" that does a small loop between its frames 1 and 2 and i added the script:
z = _root.onoff._x;
if (z<60){
gotoAndPlay("menu",1);
}
frame 2 of that MC is just gotoAndPlay(1);
That doesn't work. BUT if i try to control a MC with that code (instead of doing a jump to another scene), it works:
z = _root.onoff._x;
if (z<60){
_root.testmovieclip.gotoAndStop(2);
}
So my question is, why can it control a MC and not jump to a scene??
I hope someone will understand my pb :)
TiA
__FLATLINE__
February 7th, 2003, 12:37 PM
Since you wrote the following code INSIDE a movieclip:
if (z<60){
gotoAndPlay("menu",1);
}
It will try and gotoAndPlay a scene named "menu", frame 1, from WITHIN the movieclip, and since there are no scenes in movieclips, Flash just won't do anything, or will return an error.
You gotto understand that flash is built in "Tree" method, ie:
root
+movieclip
++symbolinsidemc
+anothermc
See that root is the mainstage, movieclip and anothermc are two symbols on the mainstage, and symbolinsidemc is another symbol inside the first movieclip, which is on the mainstage. Am I babbeling? :crazy:
kode
February 7th, 2003, 12:53 PM
what flatline meant to say is that you use _root.gotoAndPlay ("menu",1)
but for some strange reason if the script is in a mc inside another mc .. it won't work
you'll need to use a frame label like this _root.gotoAndPlay ("frameLabel")
here's the 'tree' :P
_root
+ movie clip _root.gotoAndPlay ("menu", 1)
++ movie clip inside movie clip _root.gotoAndPlay ("frameLabel")
+ another mc _root.gotoAndPlau ("menu", 1)
senocular
February 7th, 2003, 12:55 PM
might want to see
http://www.kirupaforum.com/showthread.php?s=&threadid=10784&
[edit] which tells you pretty much what kax just put ;)
kode
February 7th, 2003, 12:59 PM
are you belittling me senocular ?? am i belittling flatline ?? :P
am i spamming ? :sure:
__FLATLINE__
February 7th, 2003, 01:00 PM
What the hell is this?? Belitteling day?!?! :stunned:
kode
February 7th, 2003, 01:02 PM
Originally posted by __FLATLINE__
What the hell is this?? Belitteling day?!?! :stunned:
kinda ..
http://www.kirupaforum.com/showthread.php?s=&threadid=14530
__FLATLINE__
February 7th, 2003, 01:06 PM
I already read that thread, that's why I asked that question. ;)
Hey do you like my smiley? (look near my sig)
kode
February 7th, 2003, 01:08 PM
i can't see it :-\
__FLATLINE__
February 7th, 2003, 01:10 PM
Here: http://planet.nana.co.il/uachq/flatsmiley.gif
Did it myself.:smirk:
kode
February 7th, 2003, 01:20 PM
nope .. :*(
maybe your server is down
Uli
February 7th, 2003, 01:21 PM
ok it works, thanks for your replies and explanations, very much apreciated :-)
kode
February 7th, 2003, 01:23 PM
anytime :)
but i still can't see the smilie !! :(
oh well .. i'll check again later ;)
__FLATLINE__
February 7th, 2003, 01:28 PM
I can see it perfectly! What is wrong?
Try viewing this: http://planet.nana.co.il/uachq/flatsmiley.gif
kode
February 7th, 2003, 01:33 PM
lol .. nope !! :-\
could you attach the smilie? :)
__FLATLINE__
February 7th, 2003, 01:35 PM
LOL What the hell is going on?!?! :hangover:
kode
February 7th, 2003, 01:43 PM
lol :P that's pretty cool !!
it looks like frankestein [ it that right ?? i don't remember if that's the name ] with eye glasses .. :crazy:
__FLATLINE__
February 7th, 2003, 01:44 PM
actualy it was supposed to be me... :cool:
kode
February 7th, 2003, 01:47 PM
oops .. :P
sorry ... :-\
now that i think about it .. hey !! it looks just like you :P
__FLATLINE__
February 7th, 2003, 01:49 PM
lol :trout:
Guig0
February 7th, 2003, 01:51 PM
cool! iŽll gonna brag about that to all my friends!! =)
Guig0 bragging to his friends
Do you know frankenstein ?
I DO! :P
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.