This post is most certainly improved.
The first problem is that you cannot access the stage through "stage." because that returns a null value.
This post is most certainly improved.
The first problem is that you cannot access the stage through "stage." because that returns a null value.
You should just pass the stage variable into the class through the constructor.
Then, you should rename the functions "onKeyDown" and "onKeyUp" (which are reserved function calls for AS2) to "onKeyPress" and "onKeyRelease" to get rid of any compiler warnings.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks