View Full Version : swf web loader
rafnews
January 31st, 2008, 03:14 PM
Hi,
i would like to know where can i find some web flash loader tutorial.
i see that my flash animation is around 300 kb and it would be interesting to inform web user about the loading of it.
where can i find some tutorial.
i've searched with google but i'm not sure about keywords (flash,web, swf, loader,actionscript)
thanks a lot for help.
A
fried
February 1st, 2008, 07:27 AM
You would have to do something like this:
root.loaderInfo.addEventListener(ProgressEvent.PRO GRESS, loaderProgress);
function loaderProgress(event:ProgressEvent):void
{
var total:Number = event.target.getBytesTotal;
var loaded:Number = event.target.getBytesLoaded;
var percent:Number = Math.round((loaded/total)*100);
//movieclip on stage with a textfield with an instance name
//of loadTxt
loader_mc.loadTxt = percent;
}
rafnews
February 2nd, 2008, 06:35 AM
Ok, i'm getting crazy.
i tried 2 different preloaders.
one has several layers and when it is loaded it gotoandplay(frame 3) where is the picture.
another one has only 1 layer and play sound in frame 3 when it is loaded at 100%.
so nothing special... they are similar to previous suggestion posted.
my problem is that when i "import to stage" my other swf file, even if i'm on a keyframe (on frame 10), it will add me this new SWF file from frame 1 :-(
moreover, the result is that the main swf start to play, show only the loading bar after 50 or 70%, and do not play the entire added swf.
where could be the problem ?
thx.
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.