Solved

How to load 3 big swf serially?

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

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

Sometimes you know that one object has a specific child in it, but you can't find the child. This happened to me when I was trying to code some actionScript to make a toolbar work with its embedded buttons.  My partner had created the toolbar usi…
While working over numerous projects I often had the requirement for doing a screen capture in AS3.0. Unfortunately I found no "ready made" solutions in google search that suited my requirements. But I did come across some great resources which help…
In this tutorial viewers will learn how to create a basic motion tween animation in Flash Open a new document in Flash: Draw/import an image: Press CTRL + F8 to convert it into a graphic symbol: Select a frame (how long you want the tween to last): …
The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.

734 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