Solved

How to load 3 big swf serially?

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Embedding Flash App/Movie on Website 3 489
I'm running a risk by using Adobe Flash in my site ? 9 117
embedding a media live encoder stream 3 118
Flash ActionScript 6 42
This is intended to introduce all collision detection principles in flash, their strengths, weaknesses and workarounds. The main method for Collision Detection in flash is using hitTestObject. But unless you'll be pushing rectangular shapes without …
Here are some practices and techniques that can be adopted into your Flash/Flex application development process. Note: Not all "performance tips" provide an immediately-recognizable benefit.   This article does not include timing validation data,…
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 set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.

910 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