Skip to main content
Participant
June 21, 2014
Question

as3 Document class not linking

  • June 21, 2014
  • 2 replies
  • 211 views

So my document class is not linking, Im still really new to as3 so I'm guessing this is a big noob question...Also I have put Main in the little box in the beginning.

This is the Main.as class

package  {

  import flash.display.MovieClip;

  public class Main extends MovieClip {

  public function Main() {

  trace("IM LINKED DUDE1");

  }

function mnright():void {

  if (man.hitTestObject(square)) {

  pullBackwards();

  } else {

    man.x += 10;

  }

  }

  function pullBackwards():void {

  man.x -= 10;

  }

  }

  }

}

Thanks in advanced

This topic has been closed for replies.

2 replies

Amy Blankenship
Legend
June 21, 2014

Try turning on strict mode so it can show you all the errors in your code.

For example, your functions should be public, private, or protected. It's not clear what you mean by saying mnright is on the timeline. Is it a function you created in the actions panel or an instance declared on stage?

shiny21Author
Participant
June 21, 2014

also in frame 5, 10, 15, and 20 is mnright();