|
Synconntez (November 30, 1999 at 12:00 am)
-.- I forgot to tell you guys... In AS3, ur variables must now be declared explicitly...implies, before hand and with a proper declaration syntax. I generally do this before i will use it in the script, so the very first key frame of my projects, have my variables declared. Before you use them for his code, usevar loaderInt:int = 0 [or whatever u want it initialized to]andvar textVar:string
Synconntez (November 30, 1999 at 12:00 am)
Oh, for some cases in As3, dont use _.xscale... use scaleX instead.
Synconntez (November 30, 1999 at 12:00 am)
Note:An extra "(" appeared in the AS2 code after math.round...duno where it came from OoPay close attention to the need of the "toString" property setting, as AS3 will throw an error if you set a string to an int.Also, new patches to make flash more secure may cause issuesto preloaders now, so you may want to look for more thorough messages of doing it from now on.
Synconntez (November 30, 1999 at 12:00 am)
NOTE:This code will no longer work in Adobe Flash CS4 with either As2 or As3, so i will post corrections for each..AS2:percentInst.text = Math.round((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);AS3:percentInst.text = Math.round(root.loaderInfo.bytesLoaded / root.loaderInfo.bytesTotal * 100).toString();if(root.loaderInfo.bytesLoaded >= root.loaderInfo.bytesTotal)
julianaishere (November 30, 1999 at 12:00 am)
OMG! I am a superstar at work because of this video!
B4Bone (November 30, 1999 at 12:00 am)
does it also work in as3???
tehCardboard (November 30, 1999 at 12:00 am)
thanks loads ^^ helped me
Noubilox (November 30, 1999 at 12:00 am)
:O longer than 10 minutes
SaturnProds (November 30, 1999 at 12:00 am)
Hello. Is it possible to get a high quality version of this tutorial?
otcrozz (November 30, 1999 at 12:00 am)
I simply LOVE TUTVID |