?
Solved

How to load 3 big swf serially?

Posted on 2002-06-12
2
Medium Priority
?
175 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This is a very simple example to help those of you who are still migrating from AS2 to AS3 understand the redesigned event model in AS3. In AS2.0, event functions (that is, the function to be performed when an event is fired) were stored as a pro…
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 how to record live broadcast.
The goal of the tutorial is to teach the user how to set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.
Suggested Courses

719 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