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.
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 compatibility
|All times are GMT +1. The time now is 09:05 PM.|
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.