Flash Preloader help!


  1. Posts : 7
    Windows 7 Ultimate
       #1

    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 Computer


  2. Posts : 14
    Vista 64 & Kubuntu
       #2

    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 Computer


 

  Related Discussions
Our Sites
Site Links
About 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 01:29.
Find Us