function shakeBtn(e:Event):void {
e.target.main.rotation+=Math.random()*8-4;
I think that should work
On Wed, Apr 28, 2010 at 8:36 AM, Lehr, Theodore
ted_l...@federal.dell.comwrote:
so I have:
flower.addEventListener(MouseEvent.ROLL_OVER,jiggle);
function jiggle(e:Event):void
{
Coders List
Subject: Re: [Flashcoders] passing obj name
function shakeBtn(e:Event):void {
e.target.main.rotation+=Math.random()*8-4;
I think that should work
On Wed, Apr 28, 2010 at 8:36 AM, Lehr, Theodore
ted_l...@federal.dell.comwrote:
so I have:
flower.addEventListener
Maybe:
var shakable:*;
flower.addEventListener(MouseEvent.ROLL_OVER,jiggle);
function jiggle(e:Event):void
{
shakable = e.currentTarget;
var timer:Timer=new Timer(2,100);
timer.addEventListener(TimerEvent.TIMER,shakeBtn);
timer.start();
}
function shakeBtn(e:Event)
To: Flash Coders Listflashcoders@chattyfig.figleaf.com
Subject: RE: [Flashcoders] passing obj name
no - I think because the e at that point is for the timer
From: flashcoders-boun...@chattyfig.figleaf.com
[flashcoders-boun...@chattyfig.figleaf.com] On Behalf
100
There's a whole lotta shakin' goin' on...
Regards,
Keith Reinfeld
Home Page: http://keithreinfeld.home.comcast.net
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
;
itemToShake.main.x+=Math.random()*8-4;
itemToShake.main.y+=Math.random()*8-4;
}
-Original Message-
From: Lehr, Theodore ted_l...@federal.dell.com
Date: Wed, 28 Apr 2010 08:59:05
To: Flash Coders Listflashcoders@chattyfig.figleaf.com
Subject: RE: [Flashcoders] passing obj name
no - I
; 'Flash Coders List'
Subject: RE: [Flashcoders] passing obj name
100
There's a whole lotta shakin' goin' on...
Regards,
Keith Reinfeld
Home Page: http://keithreinfeld.home.comcast.net
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
7 matches
Mail list logo