Flash Advisor logo
:: Desktop Shortcut
:: Flash Help
Advice from Experts

+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Join Date
    Jun 2009
    Location
    Houston, Tx
    Posts
    581

    Default

    This post is most certainly improved.

    The first problem is that you cannot access the stage through "stage." because that returns a null value.

  2. # ADS
    Join Date
    Always
    Location
    Advertising world
    Posts
    Many
     
  3. #2
    Join Date
    Jun 2009
    Location
    Houston, Tx
    Posts
    581

    Default

    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.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Sponsors
Create Speaking Characters for your website and Flash movies. 15 Day Free Trial