Re: [Flashcoders] passing obj name

2010-04-28 Thread Eric E. Dolecki
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 {

RE: [Flashcoders] passing obj name

2010-04-28 Thread Lehr, Theodore
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

RE: [Flashcoders] passing obj name

2010-04-28 Thread Keith Reinfeld
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)

Re: [Flashcoders] passing obj name

2010-04-28 Thread Nathan Mynarcik
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

RE: [Flashcoders] passing obj name

2010-04-28 Thread Keith Reinfeld
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

Re: [Flashcoders] passing obj name

2010-04-28 Thread Eric E. Dolecki
; 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

RE: [Flashcoders] passing obj name

2010-04-28 Thread Lehr, Theodore
; '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