Flash Tutorial: Create a Preloader! -HD-
Uploader Comments (RiverCityGraphix)
Top Comments
-
couldnt you just copy and paste all the preloader code into the description? it would save time and energy and would be very convenient.
-
stop();
addEventListener(Event.ENTER_F
RAME, preLoad) function preLoad(e:Event):void{ var bytestoLoad:Number = loaderInfo.bytesTotal; var numberLoaded:Number = loaderInfo.bytesLoaded; if (bytestoLoad = numberLoaded) { removeEventListener(Event.ENTE
R_FRAME, preLoad) gotoAndStop(2); }else { preLoader.preLoaderFill.scaleX = numberLoaded/bytestoLoad; preLoader.bytesPercent.text = Math.floor(numberLoaded/bytest oLoad*100) + "%";) } }
Video Responses
All Comments (264)
-
@Duhdudepokemonlove ok cool thank you very much :)
it sound logical enough ;)
-
@1974MichaelR Obviously... It will take longer if your file has more bytes and stuff
-
@Duhdudepokemonlove ahh ok so when i upload it to my website it would be going slower and how bigger the file the slower it gets right ?
thanks :)
-
@Gdiamond360 Flash 8 is a player that existed before Actionscript 3.0. Use flash 9 or above
-
@1974MichaelR That's your computer. The Flash Player loads it to the maximum speed of your computer.
-
@RiverCityGraphix i have a problem its loading to fast,
and thats only when its exported as a SWF file inside my folder.
any ideas ?
-
@TehEpicFace it might be a bit late but i had the same thing, and i found out why. If you dubbel click on the preLoader picture, then select the text bar. then you can see in properties your text options and you will see that you have it set as: bytesPercent TLF Text Selectable and it must be on: bytesPercent Classic Text Dynamic Text This makes a world of difference. And you might see that it actualy works great. Even in CS5 and in Actionscript 3.0 Good luck
-
@Tonnzninety3 me too brother
-
Why do i get dis? Im using Flash 8
**Error** Scene=Scene 1, layer=preloader, frame=1:Line 1: Statement must appear within on/onClipEvent handler stop();
**Error** Scene=Scene 1, layer=preloader, frame=1:Line 3: Statement must appear within on/onClipEvent handler addEventListener(Event.ENTER_F
RAME, preload) **Error** Scene=Scene 1, layer=preloader, frame=1:Line 5: The class or interface 'Event' could not be loaded. function preLoad(e:Event):void{
Total ActionScript Errors: 3
Can i use CS5.5 for Windows?
gabyartizada1 4 months ago
@gabyartizada1 Yes.
RiverCityGraphix 4 months ago