so I have:
flower.addEventListener(MouseEvent.ROLL_OVER,jiggle);
function jiggle(e:Event):void
{
var timer:Timer=new Timer(2,1000000);
timer.addEventListener(TimerEvent.TIMER,shakeBtn);
timer.start();
}
function shakeBtn(e:Event)
{
flower.main.rotation+=Math.random()*8-4;
flower.main.x+=Math.random()*8-4;
flower.main.y+=Math.random()*8-4;
}
How can I pass mc name ("flower") down to shakeBtn so that I can reuse the
function....
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders