Hi Vlado, It looks like your button is probably on the timeline rather than make instantiated with code. Make sure your button exists before you do the addEventListener() on frame 25. Also, do you maybe have a key frame in the button layer at frame 65? If so, each key frame creates a new instance of the button and any properties of the new instance will have the default values until you reset them. To avoid the problem you described, just remove the key frames and give your button a continuous, uninterrupted layer for the whole length of the time line that you need it.
hth Bob Leisle Headsprout Software & Engineering www.headsprout.com Where kids learn to read! -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Vlado Krempl Sent: Monday, February 25, 2008 5:13 AM To: Flash Coders List Subject: [Flashcoders] Button addEventListener is cancelled out by my Timerfunction. Timeline problem: As soon as my "pauseTimeline" function is called on frame 65, my button "infoONEbtn doesn't register on frame 65. And after frame 65, my button doesn't work unless I call the addEventlistener again on frame 66. Is there a way around this?? I have this code on frame 10 function pauseTimeline(howLong:Number):void { stop(); var t:Timer = new Timer (howLong, 1); t.addEventListener( TimerEvent.TIMER, function(evt:TimerEvent):void { play(); } ); t.start(); } then this code on frame 25 //infoONEbutton infoONEbtn.addEventListener(MouseEvent.MOUSE_UP, infoONESCENE); function infoONESCENE(evt:MouseEvent) { gotoAndPlay("infoONE"); } this code on frame 65 pauseTimeline(3000); Thankyou for bothering with my simple problems. Vlado Please consider the environment before printing this e-mail. The contents of this message should be treated as COMMERCIAL IN CONFIDENCE unless otherwise specified in the message and is intended solely for the use of the individual or entity to whom it is addressed. If you have received this email in error please notify the sender. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. _______________________________________________ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders _______________________________________________ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders