ActionScript Syntax Error
I'm making a project for my online class, and my script is having errors in 2 lines. I need some help. Can anyone figure out what's wrong with this?
Import Flash.events.Event; Stop();
This.addEventListener (Event.ENTER_FRAME, loading);
Function Loading (e:Event)
Var total: Number = this.stage.loaderInfo.bytesTotal;
Var loaded: Number = this.stage.loaderInfo.bytesLoaded;
Loading_bar.scaleX = loaded/total;
Loading_text.text =Math.floor ((loaded/total)*100) + "%";
If (total == loaded) { play ();
Play():
This.removeEventListener (Event.ENTER_FRAME, loading);
}
}
If you can find the problem, I'll be grateful. And do hurry, I have until tomorrow to post my animation video.
