Solved

How to load 3 big swf serially?

Posted on 2002-06-12
2
147 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 50 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

I come across a lot of question about how to access things in the document class from a movieclip, or accessing something from a movieclip in the document class. It took me a while to figure this out but once I did it makes life so much easier. …
There are times in your Flash CS4 application when you want more than a simple pointer or a hand, and it's hard to find an ideal walk-through to tell you what to do.  I spent a few days recently learning my way around making custom cursors in Flash,…
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 the video input device. Make sure you have an input device that in connected and work and recognized by Adobe Flash Media Live Encoder and select it in the “video input” menu.

759 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now