Thanks Bob!
Appreciate your time.
Have a great day.

----- Original Message ----- From: "Robert Leisle" <[EMAIL PROTECTED]>
To: "'Flash Coders List'" <>
Sent: Tuesday, February 26, 2008 4:40 AM
Subject: RE: [Flashcoders] Button addEventListener is cancelled out by myTimerfunction.

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.


Bob Leisle

Headsprout Software & Engineering

Where kids learn to read!

-----Original Message-----
[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

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 {
var t:Timer = new Timer (howLong, 1);
function(evt:TimerEvent):void {

then this code on frame 25

infoONEbtn.addEventListener(MouseEvent.MOUSE_UP, infoONESCENE);

function infoONESCENE(evt:MouseEvent) {


this code on frame 65


Thankyou for bothering with my simple problems.

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
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 mailing list

Flashcoders mailing list

Reply via email to