| Home | Tutorials | Forums | Articles | Blogs | Movies | Library | Employment | Press | Buy templates |
|
|
#1 |
|
Registered User
Join Date: Jan 2003
Posts: 3
|
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 |
|
|
|
|
|
#2 |
|
Senior Member
|
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:
|
|
|
|
|
|
|
|
|
#3 |
|
Registered User
Join Date: Jan 2003
Posts: 3
|
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.. |
|
|
|
|
|
#4 |
|
Senior Member
|
Now I understand your dilemma. Just set a variable and track it scene to scene. I have included an example below. Hope this helps!
![]() |
|
|
|
|
|
#5 |
|
Registered User
Join Date: Jan 2003
Posts: 3
|
Ahh... I see. Done, and done! Works like a champ! Thanks...
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|