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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Momentary flashing betwen SWF files 1

Status
Not open for further replies.

Ruggiero

Technical User
Apr 10, 2003
3
US
I have a 5-minute promotion consisting of a Main Movie having an empty Movie Clip into which I load a sequence of about 20 individual swfs. I'm building this structure since most of the bandwidth is occuped with narration files.

However, on the loadMovie() Action at the end of each SWF I get a momentary flash to the stage background color. In some instances this is okay, but there may be some cases where I need to avoid that momentary flash. Is there any way to avoid this, and attain a seamless look between SWF loading? I'd like a chain of SWFs to have the same persistence of vision as a single movie.
 
have 2 clipholders on stage

make sure all the swf to be loaded are empty of frame 1 and have a stop action there.

load the first into one of the clipholders load the second into clipholder 2

when 1 is finshed the action is _clipholder2.gotoandplay(2);

while thats playing load number 3 into the clip where 1 was playing and so on


gets rid of any flicker as the swf are already loaded when you want to play them.
 
That worked well. Thanks for the solution. It's like A/B roll editing in Premiere.

I haven't tested the solution on a server yet, but for users on a T1, can I still expect good performance even though I'm doubling the feed? Wait, let me guess. If I do the math, and I'm feeding a 90 KB SWF with audio Sync set to Stream, while I load a 60 KB SWF, I have a total feed of 150 KB, which would complete in 1.2 seconds on a T1 line (whose estimated bandwidth is 126 KB per second). There would be no hiccoughs in the audio. Is that correct?

I like the idea of splitting the piece into 20 SWFs, but I really cannot explain why it's better than one big 5-minute SWF, since I'm setting audio Sync to Stream anyway, and I'm targeting T1 pipes only. Wait, let me guess. I bet the benefit Is it that the structure of 20 SWFs enables segmenting to help in the progressive download of an otherwise unwieldy piece. Is that correct?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top