Jump to content

Preloader


Shizlles

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

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...