Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

How to load 3 big swf serially?

Posted on 2002-06-12
2
Medium Priority
?
180 Views
Last Modified: 2010-04-03
I have 3 big swf files(1.5MB for each)on web page.

movie1.swf  movie2.swf   movie3.swf

and I want to play them serially.

My question is how to load movie2.swf and hold during
play the movie1.swf, and after that, movie1.swf it can
smoothly play movie2.swf and so on.

So, if anyone can help me this, I will very thank you.

Jerry
0
Comment
Question by:mayaworker
2 Comments
 
LVL 23

Accepted Solution

by:
Zeffer earned 200 total points
ID: 7074343
try this..

new movie
open as library..movie1.fla
in frame 1 layer 1 drag all the symbols for movie1 and
place around OUTSIDE the stage

close this library

put the word LOADING on the stage so there is something
to look at while the assets for movie1 load.(could be a small animation)

create a new movie symbol..'first'..import movie1.swf

open library

drag an instance of 'first' to the stage into frame 2..(put a stop also)

give it an instance name of..'f'

..................

create a new movie symbol..'second..in frame 1 put the
action...

loadMovie ("movie2.swf",_root.tm);

create a new movie symbol..'targetm'..

put a stop in frame 1
drag an instance of 'second' to frame 2..(put a stop)

back to main stage...new layer..drag an instance of 'targetm'to the stage in frame 2

give it an instance name of..'s'

new symbol..button..put a shape in and copy to all 4 frames of the button

main stage..new layer

drag an instance of the button to the stage in frame 2..select it

put following actionScipt..

on (press) [
  with (_root.s) {
  gotoAndStop (2);
  }
}
on (release) {
  unloadMovie ("_root.f");
 }


that's it..

As your movies are quite large I have included the unload action
as well so the Flash player is not running everything at once.

The idea with the first frame and assets is that movie1 cannot
start playing until all the symbols have loaded..it plays and
movie2 begins loading.

Repeat the process from the dotted line for movie3


Z





0
 
LVL 1

Author Comment

by:mayaworker
ID: 7075898

The idea is very neat! It's veary helpful.
Hopefully, see you again.

Thank you, Zeffer
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I know the transition can be hard. We got used to the ease of use ActionScript 2 had, but honestly, it became problematic later on, especially if designers were involved in the project and found it easy to add code as they saw fit. So, this artic…
The last time I worked with Flash and Socket connections was in AS1. A recent project required flash connecting to a Socket, and sending receiving information - we figured it would be easy enough - we all know about the socket policy documents and c…
The goal of the tutorial is to teach the user how to live broadcast using Flash Media Live Encoder and connecting it to YouTube to broadcast. Log into your Youtube account, choose live stream settings, start live stream from Flash Media Live Enc…
The goal of the tutorial is to teach the user how to select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.
Suggested Courses

885 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question