Jump to content

Preloader


Shizlles
 Share

Recommended Posts

Hey, I've been busy trying to build a website with some flash objects.I've got a loader atm and im trying to get it work with the code below.Everytime i get the same error: "1084: Syntax Error: Expecting identifier before rightparen." on line 4 Im pretty new to actionscript, does anyone have any ideas? It's made around actionscript 3.0.Greetz Paul 1. function loadProgress(my_content:ProgressEvent):void { 2. 3. var percent:Number=Math.floor((my_content.bytesLoaded*100)/my_content.bytesTotal); 4. loadPercentText.text = percent+ "%"; 5. LightDotsMask.width = percent* 3; 5. } 6. function loadComplete(e:Event):void{ 7. gotoAndStop(2); 8. } 9. loaderInfo.addEventListener(ProgressEvent.PROGRESS,loadProgress); 10.loaderInfo.addEventListener(Event.COMPLETE,loadComplete);Edit: lol, i used the wrong isntance name. It should have been lightdotmask in my case. Sorry for the useless post :s

Edited by Shizlles
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...