Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: Re: FLASH: Pre-loading SWF file problem.
From: Joseph Troha
Date: Mon, 4 Oct 1999 11:33:19 +0100

Hi,

I have a Flash 3.0 problem that I just cannot solve and suspect that it could be a bug (but I am not quite sure). What I am trying to achieve is a flash percentage pre-loader which monitors labels within the level 1 and 2 loading (SWF) movie files. The problem is that it doesn't want to refresh the percentage ticker when playing from within a browser, hence the ticker remains at 10% whilst the first movie downloads. It only updates when you refresh the window and the cached file is triggered. Strangely the system works fine when played from the "Flash test movie function" on the desktop of my Macintosh. My goal is to successfully load two .SWF files in sequential order (level 1 followed by level 2) within the base movie before level 1 is tell targeted to play from within the level0 base movie.

Below (as detailed as I could make it) is an outline of the architecture:

I have a movie clip (mc) with an instance name "mc_counter" in level 0 which has 10 stopped frames with progressive 10% text increments in each frame. I also have a key action frame in the base movie which loads a .SWF movie into level1 followed by a stop function.

Then from Within the very first frame of both level 1 and level 2 (SWF) movies, I have an array of:

"if frame loaded (label)...
begin tell target (_level0/mc_counter)...
goto nextframe...
end tell target...
end frame loaded"

action scripts to trigger each 10% increment within the movie clip, followed at the end by:

"if frame loaded (endlabel)...
begin tell target (_level0)...
goto (next label)...
end tell target...
end frame loaded"

and  a "stop" action script.

As far as I know, when this script is completed, it should re-direct the playback head to continue to the next base movie label and load movie 2 action once the level 1 (.SWF) movie file is loaded.
 

I have an online version if you wish to take a look at it, although it's quite heavy and I would understand if it's beyond your bandwith threshold. The first level movie is 600k in size followed by 500k for the second movie.

http://www.creativefactory.com.au/flash/gamble/loading.html
 

Thank you in advance to anyone who can help, hope someone can make sense of my confusion, I have exhausted the resource web sites out there, the manuals, the Darrell Plant book etc, but still to no avail.
 

cheers,
 

Joseph Troha
Creative Factory
Level 3, 30 Inkerman Street
StKilda, Melbourne, Australia
v> +61 3 9593 8882
joeatcreativefactory [dot] com [dot] au
www.creativefactory.com.au
 
 


Replies
  Re: FLASH: Pre-loading SWF file problem., Marc Hoffman (Dart Frog M

[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]