Home Tutorials Forums Articles Blogs Movies Library Employment Press Buy templates

Go Back   ActionScript.org Forums > ActionScript Forums Group > Simple Stuff (Newbies)

Reply
 
Thread Tools Rate Thread Display Modes
Old 01-28-2003, 03:49 PM   #1
mkleymann
Registered User
 
Join Date: Jan 2003
Posts: 3
Default Movie loop with multiple scenes

I work for a marina/boat/jetski shop, and I've put together a flash presentation for taking to the boat shows here. In the interest of keeping my presentation easily changeable, I've set it up with multiple scenes. As it currently runs, it follows the following path:

Scene 1
Scene 2
Scene 3
Copy of Scene 1
Copy of Scene 2
Scene 4
Copy of Scene 1
Copy of Scene 2
Scene 5

and loops back to the beginning. My question: Since this is intended for no user interaction, is there an easy way to script the movie so it plays scene 1-3, plays scenes 1 and 2, jumps to 4, back to 1 and 2, and so on, without having the multiple scenes? Way back in the dark ages of BASIC (yeah, line numbers and everything) I would have just created a master script with GOSUB lines, then scripted each of the scenes as a subroutine. This, however, is my first real exposure to flash, and I can't find anything resembling a GOSUB command.

Please help! On request, I can provide the .fla and/or .swf if that'll help.

Michael Kleymann
mikek@msknetworks.com
mkleymann is offline   Reply With Quote
Old 01-28-2003, 07:39 PM   #2
binkyboo
Senior Member
 
binkyboo's Avatar
 
Join Date: Mar 2002
Location: Madison, Wisconsin
Posts: 1,310
Send a message via MSN to binkyboo
Default

I'm not sure if I'm understanding you correctly but what you can do it place code in the last frame of each scene specifying where you want your movie to jump to. For example if you'd like scene 1 to jump to scene 3 you would place this code on the last frame of scene 1.

ActionScript Code:
gotoAndPlay("Scene 3", 1);
binkyboo is offline   Reply With Quote
Old 01-28-2003, 07:44 PM   #3
mkleymann
Registered User
 
Join Date: Jan 2003
Posts: 3
Default

That would work, except.... I need to go from 1 to 2 to 3 to 1 to 2 to 5 to 1 to 2 to 6 then start the whole process over. If I just use a "goto and play" then every time it went back to 1 it would proceed to 2, and back to 3. Somehow, I need to get a variable that says "I just finished playing 3. When I get to the end of 2, I need to play 5. Now that 5 is finished, when I get to the end of 2 again, I need to play 6."

Does that help at all?

To be more specific, at the boat show, we want the company name and logo, as well as a map with our locations, to be very prominently featured in the presentation. So the logo scene is followed by the map scene, then followed by a scene highlighting one of the manufacturers we're a dealer for, then back to the logo scene, map scene, and a different manufacturer. Each of the four major lines we carry have their own scene, with 10-15 boats of their line shown. I started off doing the whole thing in one scene, but when it got to be 3000 frames in length, I decided to cut it down a bit, so that if I had to edit one manufacturer's line, all I had to deal with was their scene.

But, what I ended up with was 4 copies of the logo/map scenes, with the manufacturer scenes in between. So, if we add a location, like a new marina, I have to edit the map 4 times instead of just once to get it the same in every event. I *should* go back and make the logo and map one scene, since they always appear together, but that still doesn't resolve the issue I'm facing now.

FWIW, the presentation runs and looks fine now, I'm just trying to find a way to streamline it a bit and make it easier to edit that map in the future, especially since I know we've got 2 marinas I'll have to add to it in the next 6 months.

Mike

Last edited by mkleymann; 01-28-2003 at 07:52 PM..
mkleymann is offline   Reply With Quote
Old 01-28-2003, 08:08 PM   #4
binkyboo
Senior Member
 
binkyboo's Avatar
 
Join Date: Mar 2002
Location: Madison, Wisconsin
Posts: 1,310
Send a message via MSN to binkyboo
Default

Now I understand your dilemma. Just set a variable and track it scene to scene. I have included an example below. Hope this helps!
Attached Files
File Type: zip jumpto.zip (3.4 KB, 496 views)
binkyboo is offline   Reply With Quote
Old 01-28-2003, 08:43 PM   #5
mkleymann
Registered User
 
Join Date: Jan 2003
Posts: 3
Default

Ahh... I see. Done, and done! Works like a champ! Thanks...
mkleymann is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:37 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2009 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.