Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
09-12-2013, 02:37 AM #1
- Join Date
- Sep 2013
- Thanked 0 Times in 0 Posts
Help with action script 3.0 please
Hey guys. I am trying to get my object (man) move and point to where the mouse is. It is comming up with errors:
Scene 1, Layer 'actions', Frame 1, Line 1 1172: Definition flash.event:Event could not be found.
and Scene 1, Layer 'actions', Frame 1, Line 1 1172: Definition flash.event:Event could not be found.
Anyways, here is the code:
var man=new man();
Any help would be greatly apriciated.
09-14-2013, 09:41 AM #2
3 errors here:
replace import flash.event.Event;
with import flash.events.Event;
- just a typo
replace var man=new man();
with var man:Man = new Man(); // and change accordingly in properties of that class
- class name must be different than its instance
- onEnterFrame is a reserved word used for AS2 compatibilityEverything can be done, but I don't know how.