Ask a Question related to Macromedia Flash Actionscript, Design and Development.
-
tyberius7 #1
MC Loading an External File
I have a flash website which I want it to load an external swf file and show
its loading progress.
I created a movie clip (my_mc) and use the loadmovie command to load the
external.swf. I placed a dynamic text (var: Progress) to display BytesLoaded.
The problem is that the var Progress shows 12 Bytes which is the size of the
my_mc without the external swf (external swf is 93KB).
Can anyone help PLEASE ?? The code that I have is shown below:
///Scene 1 Frame 7
loadMovie("external.swf", my_mc);
gotoAndPlay("Scene1", 8);
///Scene 1 Frame 8
Progress = my_mc.getBytesLoaded();
if (my_mc.getBytesLoaded() == my_mc.getBytesTotal()){
stop();
}
else
gotoAndPlay("Scene1", 9);
///Scene 1 Frame 9
gotoAndPlay("Scene1", 8);
RESULT: The external.swf loads and the Progress dynamic text shows the value
12! But I know that the external swf file is at least 93KB!
tyberius7 Guest
-
simply loading an external file
ok mabie its too early in the morning but i know it has to be pretty simple . How do i load an external file (in this case an excel worksheet) from... -
Loading an array from an external file
It's about "asymmetry" in LoadVars(). I want to load an array, but didn't know how to actually story it in the external file. So I used... -
Loading w3d file from a external folder
Hi all, im doing a application using director. I need to do buttons to load my w3d files from a external folder to the stage while running the... -
Loading external file from C:\bobby\
I know this hsa been covered before but I can't find it. I am building some training for a CD/HD install and I need to read some info from a txt... -
Loading an external html file from an URL
I'm having some trouble getting Flash to load an external html file into a dynamic text box from an URL, can anyone point me to a tutorial? ... -
CesareRocchi #2
Re: MC Loading an External File
The condition
my_mc.getBytesLoaded() == my_mc.getBytesTotal()
will be true the 10% of the time you try it. There are well know problems with
the 'load API' of
Flash, depending also on the browser you're using (if any).
More details here:
[url]http://www.moock.org/blog/archives/000010.html[/url]
HTH,
-c.
CesareRocchi Guest



Reply With Quote

