|
|
Subject:
load flash movie and sent to frame
Category: Computers > Programming Asked by: binarian-ga List Price: $20.00 |
Posted:
29 Sep 2003 07:24 PDT
Expires: 29 Oct 2003 06:24 PST Question ID: 261175 |
|
There is no answer at this time. |
|
Subject:
Re: load flash movie and sent to frame
From: omniscientbeing-ga on 29 Sep 2003 11:15 PDT |
Sounds like it might be simpler to just create a separate movie (which is really just another version of the main movie, but starting at the frame you want) for the non-intro pages. So it's 2 flash movies--1 for the intro page, and another one for all the other pages. omniscientbeing-ga Google Answers Reseacher |
Subject:
Re: load flash movie and sent to frame
From: binarian-ga on 30 Sep 2003 09:19 PDT |
yeah the thought had occurred to me..its just the first flash intro is fairly long...and i wouldnt want the user to wait even more for this shorter flash intro to load. |
Subject:
Re: load flash movie and sent to frame
From: richfarr-ga on 30 Sep 2003 16:40 PDT |
Just so I understand this, you have a main swf file (let's call it main.swf) which is 900kb, contains a long flash intro and the navigation. You also have another swf file (other.swf) which needs to load the main.swf movie and bypass the intro animation to another frame. Is that basically correct? If so, this is what I'd suggest as a possible solution to your situation: In the main.swf file 1. create a label at the frame where you'd like the other.swf movie to jump to (ie. "nav"). 2. on that frame create a stop action as well as a varible that signals that you've hit this frame (I'll explain later). stop(); loaded = true; 3. publish this movie In the other.swf file 1. load the main.swf file in the first frame using loadMovieNum. This allows you to specify the level at which the movieclip will live. (I've specified level 100) loadMovieNum("main.swf", 100); 2. create a keyframe in the THIRD frame of the other.swf movie. It's important to have an empty frame between the loading action and the next actions. 3. in the third frame, tell the main.swf movie to goto the frame that you're interested in. (After playing around with this one, I found out that you have to wait until the your target frame is loaded for this to work so I added an if/else statement to loop until our jump works) if (_level100.loaded) { stop(); } else { _level100.gotoAndPlay("nav"); this.gotoAndPlay(2); } I've posted a zip file with a working example for you to go through. The main.swf file loops through the animation 5 times before coming to rest on the target navigation frame. You can download the archive here: http://lunatic.ca/example/example.zip On a somewhat related note, I'd suggest coming about this in a different way. Instead of having the other swf files bypass the large animation, I'd have the homepage load it as a separate movie. Basically, take your animation and put it into a new movie (be sure to have some sort of loading animation, cause 900kb is HUGE). In your homepage file, load your animation, wait for it to finish, unload the animation and then continue to your navigation frame. I hope this helps, good luck. |
Subject:
Re: load flash movie and sent to frame
From: prophet-ga on 17 Oct 2003 02:29 PDT |
Maybe you're not considering browser cache. I believe what you are trying to do is typically accomplished with one file. The file has 2 scenes. One is a loading sequence and the other is the main file. The loading sequence scene runs first, looping until the main scene is loaded completely. Once the main scene is loaded, the loading sequence stops and the main scene plays. Now, on a subsequent page, instead of having some smaller file, the same file can be used. There will be no additional download time as the file is stored in all of your users' cache. It's actually *faster* if you don't create a second file at all, no matter how small. The browser doesn't need to download a second file. It can merely use the same original large file from a local copy, and can load it almost instantly. Prophet |
If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you. |
Search Google Answers for |
Google Home - Answers FAQ - Terms of Service - Privacy Policy |