View Full Version : jumping between MC's
anto_123
04-04-2003, 06:14 PM
hi,
im using Flash 4
i have a button, "button1" ,in side a mc, "mc2" inside another mc "mc1", upon clicking "button1" i want to go to a different frame in the main time line, but cant get it to work.
any help apprecieted!
cheers
tigei3281
04-05-2003, 12:32 AM
Hey what's up:
What you want to do is on the button, type this:
on(press){
_root.gotoAndStop(whateverFrameYouWant);
}
Also, make sure you have a stop() command on the _root frame or else FLASH will go to the frame before you click the button.
Hope this helps!
anto_123
04-08-2003, 02:29 PM
Im using Flash 4 and it wont let me enter that structure of code, so what i done was this,
"On (Press)
Go to and Stop ("/root(3)")
End On"
but still no good
any ideas??
tigei3281
04-09-2003, 03:33 AM
I'm not too sure. I'm not familiar with Flash 4. I learned on Flash MX. Sorry...
What does the help file say about the go to and Stop function???
linckx
04-09-2003, 08:36 AM
might be a dumb answer, but I'll include a tip ;)
I think you should do your best to get hands on flash mx... it's soooo great, and with questions on flash 4 programming you might walk into many people telling you they don't know anymore...
the tip: next time you post code, try using the [ AS ] (without the spacing) tags.
they make:
on(release){
_root.gotoAndPlay("frame1);
}
look like:
on(release){
_root.gotoAndPlay("frame1);
}
robin
tigei3281
04-10-2003, 02:20 AM
I'll remember to do that next time. But I also agree with linckx that you should upgrade to MX. It makes things much easier when coding stuff.
I have a question now that has nothing to do with jumping b/w MCs...
Is it possible to animate a Movie Clip with actionscript. Not just controlling the frames, but dynamically loading a picture for example and making it move with actionscript...I have yet to figure something like this out...
|
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.