How to have 2 enter_frame functions happening in the one frame? I have a scene where I have an animated movie moving across the scene and I also want to have a custom cursor also enter the scene on the same frame.
var mc_Dog1:WagDog = new WagDog();
addChild(mc_Dog1);
//mc_Dog1.x = 50; I have this in my ENTER_FRAME event handler)
mc_Dog1.y = 20;
mc_Dog1.width = 140;
mc_Dog1.height = 120;
addEventListener(Event.ENTER_FRAME, dogMove);
function dogMove(event:Event):void
{
if (mc_Dog1.x < (stage.stageWidth+25)) {
mc_Dog1.x += 2;
//myCursor.mouseEnabled=false; The commented custom cursor is also a movie clip, I need this format as in my animated quiz I am also using drag and drop)
//Mouse.hide();
//myCursor.x = root.mouseX;
//myCursor.y = root.mouseY;
}else{
mc_Dog1.x = -25;
}
}
