View Full Version : swf file size: how to find out?
eggnogg
02-27-2004, 09:57 PM
how do i retrieve the size of an external swf file with actionscript?
Ricardo
annexion
02-27-2004, 10:44 PM
If you're loading it into the movie you're calling it from you can use getBytesTotal().
eggnogg
02-28-2004, 07:09 AM
hi.
isn't there another way?what if i just wanna be able to get the file size of an swf, without having to load it?
i tried this:
loadMovie("GK01.swf", "container");
_root.talk = container.getBytesTotal();
but this dosen't work properly. _root.talk is always 12.
BUT if put a button on the stage with the second line of code and keep the first code line on the first frame, when i press the button i get the right bytes of the file!
this makes me believe that i cannot retrieve the files value, befores the loaded swf starts loading into the container!
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.