Skip to main content
Inspiring
December 31, 2009
Answered

Very simple target path problem

  • December 31, 2009
  • 1 reply
  • 366 views

I have an image of a target on stage, that moves left and right.  In the center of the image is an invisible button, occupying the centre circle of the target.

The idea is you click the invisible button on the moving target and this starts another movie playing.

Seems to me the action script should reside in the button, and be something like this:

on(release){

targetPath(this.movie2);

play();

}

This topic has been closed for replies.
Correct answer Ned Murphy

I think you want to try using...

on(release){

     this.movie2.play();

}

Though I don't know where "this" is relative to "this.movie2"

1 reply

Ned Murphy
Ned MurphyCorrect answer
Legend
December 31, 2009

I think you want to try using...

on(release){

     this.movie2.play();

}

Though I don't know where "this" is relative to "this.movie2"

Inspiring
January 1, 2010

Thanks, I was getting confused with the syntax-- couldn't remember whether the path or the method went first.