New to AS3. Actually following a tutorial by iBrent (https://www.youtube.com/watch?v=HFfsiqBJbe8).
My code matches up with his, and I have done a lot of research before resorting to making yet another #1009 thread.
Code:
package {
import flash.display.MovieClip;
import flash.events.MouseEvent;
public class AtmoApp extends MovieClip {
public function AtmoApp() {
init();
}
private function init():void
{
movers.addEventListener(MouseEvent.CLICK, handleButtonClicks);
conventionals.addEventListener(MouseEvent.CLICK, handleButtonClicks);
}
private function handleButtonClicks(event:MouseEvent):void
{
trace("You clicked the: " + event.currentTarget.name);
}
}
}
Thanks for your help.