You wrote
private function initTimer():void { var myTimer:Timer = new Timer(30000); myTimer.addEventListener(TimerEvent.TIMER, updateData); myTimer.start(); } the updateData function can then be private function updateData( event : TimerEvent ) : void { ( event.target as Timer ).stop(); // Continue updating the data } Written off the top of my head, so my not compile, etc... Gk. Gregor Kiddie Senior Developer INPS Tel: 01382 564343 Registered address: The Bread Factory, 1a Broughton Street, London SW8 3QJ Registered Number: 1788577 Registered in the UK Visit our Internet Web site at www.inps.co.uk <blocked::http://www.inps.co.uk/> The information in this internet email is confidential and is intended solely for the addressee. Access, copying or re-use of information in it by anyone else is not authorised. Any views or opinions presented are solely those of the author and do not necessarily represent those of INPS or any of its affiliates. If you are not the intended recipient please contact [EMAIL PROTECTED] ________________________________ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of sailorsea21 Sent: 06 November 2008 15:11 To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: sailorsea21 - How to stop a timer that is in a private function? Is the reference global? My reference "myTimer" cannot be access from another function... Can you clarify? Thanks. --- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> , "Gregor Kiddie" <[EMAIL PROTECTED]> wrote: > > The target property in the TimerEvent when it fires contains a reference > to the Timer Object that you can use to stop the Timer. > > > > Gk. > > Gregor Kiddie > Senior Developer > INPS > > Tel: 01382 564343 > > Registered address: The Bread Factory, 1a Broughton Street, London SW8 > 3QJ > > Registered Number: 1788577 > > Registered in the UK > > Visit our Internet Web site at www.inps.co.uk > <blocked::http://www.inps.co.uk/ <http://www.inps.co.uk/> > > > The information in this internet email is confidential and is intended > solely for the addressee. Access, copying or re-use of information in it > by anyone else is not authorised. Any views or opinions presented are > solely those of the author and do not necessarily represent those of > INPS or any of its affiliates. If you are not the intended recipient > please contact [EMAIL PROTECTED] >