View Full Version : jumping between scenes
dotswf
03-14-2003, 12:41 AM
Hi!!
I'm an average newbie at Flash and a fresh one at Actionscript :D. Been following it since Flash 4. But never got the time to work seriously with it. Anyway, my doubt was i have two scenes with different movies, as you can see in the attchd file. after the movie in first scene is done playing, i want the control to go to the second scene and start playing the movie in the second scene. this is what i wrote for the action of the movie in the first scene.
onClipEvent(load) {
if( scene1Movie._current == 25) {
gotoAndPlay("Scene 2",1);
}
}
but only the first movie is playing (in a loop) and the movie in the 2nd scene is not being played ..
can anyone help plz .. ;;)
CyanBlue
03-14-2003, 05:16 AM
Howdy and Welcome... ;)
Do not use scene name, use frame label instead... That will save you big time... :D
And please copy and paste your code, rather than just typing it... The code you have provided and the code you have in your file are different...onClipEvent (enterFrame)
{
// 'enterFrame' has been used rather than 'load'
// because the following condition has to be checked
// all the time till it is met...
if (this._currentframe == 25)
{
// Used frame label instead of scene name...
_root.gotoAndStop("Box");
}
}
dotswf
03-16-2003, 01:58 AM
thanx a lot partner .. was really helpful. sorry for the late reply though. say ... would u be knowing any nice actionscript books?? the ones that start with the basics and get onto serious stuff?? i'd love to get my hands on one of those books .. thanx again ..
peace..
dotswf
CyanBlue
03-16-2003, 05:47 AM
Howdy...
Glad to be of your service... ;)
For the book... I don't know... This is that I have done to learn ActionScript though... I have browsed and read everything that I can get from the Flash itself... Check these things from the Flash menu...
Help - What's New, Lessons, Tutorials, Using Flash, ActionScript Dictionary
(I think you should have pretty good foundation after going over those stuff...)
When done, I have gone over many tutorials that I could get my hands on... ActionScript.org has great selections of tutorials, and so do FlashKit.com... Go check those out...
After that, I have gotten one book, ActionScript: The Definite Guide by Colin Mook (http://www.moock.org/asdg)... This book is abit hard to start, but Colin has done a great job to make people understand what is behind the Flash... Go check them out...
That's the only book that I have, so I cannot comment no more about the book, but the search found some good books you might want to check out...
http://www.actionscript.org/forums/search.php3?s=&action=showresults&searchid=565177&sortby=lastpost&sortorder=descending
Good luck... ;)
northernstar
05-03-2004, 12:51 AM
Hi, I'm wondering is it possible to make the 2nd scene loop? without the 1st scene ever playing again?
This is what I mean:
Play scene 1
Scene 1 ends
Loop scene 2
Thanks
CyanBlue
05-03-2004, 04:55 AM
Howdy and Welcome... :)
Open up the Scene2 and add the frame label called 'start' at the frame 1...
Go to the very last frame in Scene2 and add the frame label called 'end'...
Add this command at the frame where you just added frame label 'end'...
_level0.gotoAndPlay("start");
northernstar
05-03-2004, 09:31 PM
YES! Thank you so much!
I'm such a newbie at this and have been trying to figure it out :confused: , can't believe it was so easy... should've found this forum sooner :)
CyanBlue
05-03-2004, 09:40 PM
Well... Not really... If you figure it out all by yourself, it tends to be embossed into your brain permanently, so you won't forget it easily... But if somebody else does the job for you, it just goes away in a matter of hours... :(
I think you should go over the Using Flash from the Flash manual to go over the basic stuff that you might be missing... Just my 2 cents... :)
|
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.