stop();
import flash.display.SimpleButton
var checking:Boolean = false;
point0_mc.addChild(foot_mc);
this.addEventListener(MouseEvent.MOUSE_DOWN, Onpress );
button_mc.addEventListener(MouseEvent.CLICK, Oncheck );
function Onpress(evt:MouseEvent):void {
if (evt.target == foot_mc) return;
evt.target.addChild(foot_mc);
}
function Oncheck(evt:MouseEvent):void
{
if(foot_mc == point0_mc) return;
{
gotoAndStop(5);
}
if(foot_mc == point1_mc) return;
{
gotoAndStop(10);
}
if(foot_mc == point2_mc) return;
{
gotoAndStop(15);
}
if(!checking) return;
{
gotoAndStop(5);
}
}
button_mc.buttonMode = true;