Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Flash Preloader help!


03 Jan 2010   #1

Windows 7 Ultimate
 
 
Flash Preloader help!

I am building a preloader with Flash CS4 however in getting a couple of errors and i dont know why. I listed the errors and code below can some one help me.


1071: Syntax error: expected a definition keyword (such as function) after attribute scale, not x.

1084: Syntax error: expecting rightbrace before semicolon.




stop();

addEventListener(Event.ENTER_FRAME, loaderF);

function loaderF (e:Event): void {
var toLoad:Number = loaderInfo.bytesTotal;
var loaded:Number = loaderInfo.bytesLoaded;
var total:Number = loaded/toLoad;
if (loaded == toLoad){
removeEventListener (EVENT.ENTER_FRAME, loaderF);
gotoAndStop("homepage1");
} else {
preloader_mc.preloaderFill_mc.scale x = total:
preloader_mc.precent_txt.text = Math.floor (total*100) + "%":
preloader_mc.ofbytes.txt.text = loaded + "bytes":
preloader_mc.totalBytes.txt.text = toLoad + "bytes";
}
}

My System SpecsSystem Spec
.

03 Jan 2010   #2

Vista 64 & Kubuntu
 
 

Don't think you're in the right forum, but your problem appears to be on line:

preloader_mc.preloaderFill_mc.scale x = total:

I've never dabbled in this scripting language, but is it valid to have 'x' floating behind the variable name and before the assignment (=)? Maybe you meant scale.x?
My System SpecsSystem Spec
Reply

 Flash Preloader help!




Thread Tools



Similar help and support threads for2: Flash Preloader help!
Thread Forum
Have existing install Flash and going to install to USB3 flash. Installation & Setup
IE + Flash + Limited Acc = No flash embedded vids Browsers & Mail
Users Remain Vulnerable to Flash Exploits After Upgrading Flash Player System Security
flash on 64 bit Browsers & Mail
No flash Browsers & Mail
Taskbar Button Flash - Change Flash Count Tutorials
so how is everybody doing without flash? Browsers & Mail

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 07:21 AM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33