dcsimg
A Flash Developer Resource Site

Results 1 to 1 of 1

Thread: [RESOLVED] 1061: Call to a possibly undefined method enteredScreen-Why doesnt he see this func?

  1. #1
    Senior Member
    Join Date
    Jul 2008
    Posts
    418

    resolved [RESOLVED] 1061: Call to a possibly undefined method enteredScreen-Why doesnt he see this func?

    Hello,

    1061: Call to a possibly undefined method enteredScreen through a reference with static type Shooter1.SpaceShips:EnemyShip.
    this error is thrown from the line: craft.enteredScreen();
    craft is declared as var craft:EnemyShip
    in EnemyShip is the function:
    PHP Code:
    public function enteredScreen():void
    {
        
    doEnterScreen();

    Why would this error be thrown? The function is public. does anyone know a possible cause of this error?

    EDIT: Nm i solved it. apparently I had two copies of the same class, and he somehow compiled the wrong one.
    Last edited by omniscient232; 07-04-2009 at 06:30 AM.
    I program in AS3 only.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center