Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Load movie without breakage between swfs 1

Status
Not open for further replies.

oiseau

Programmer
Feb 2, 2001
1
US
I am designing a site that is an online version of a picture book.


It is composed of 36 swfs (about 50K each - one for each page) linked by load movie commands. When I keep all the swfs on the same layer there is a break between the swfs. This messes up the illusion of turning the pages of the book. If I load the swfs onto different levels the player bogs down and gets really slow.
I thought about putting all the files into one movie, but then I have a huge file, which may be okay with "if frame is loaded" But I suspect there is a better solution.
Once the swfs are cached, they play fine, so I'm wondering if there is some way to command one swf to wait for next swf to load before calling it up?
(When visiting site, click on "Illustrated Version" to see what I am talking about. This is a work in progress. Please excuse lame interface. If you click on "Animated Version", the first page after title page takes a while to come up. Sorry. The animated version is only partially complete - up to page three.)
 
Can I first say that your site is SO nice - it's really good! I wish I had your illustration skills!

But anyways, your problem ... all you need to do is load them all in a chain. You'll need to start thinking in levels ... if you have 50 swf files, load them in starting in level 50 (you'll have to have an empty movie in level 0 which starts the chain by containing an actionscript telling the first movie to load in level 50). Then just put a stop command at the start of every movie (so that they don't start playing until you're ready), and a command saying that when the movie is loaded, load the next movie in the level below. This will load all the movies in descending levels automatically, and should have the entire lot loaded before the user has finished with the first one.

Then to swop the movies, all you need to do is tell the next movie to start playing (TELL TARGET _level49/ PLAY) and unload the current movie.

I don't think I explained that very clearly, so if you don't understand, PLEASE email me ... I'd really like to help you to get that working. Nice work!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top