Found the answer.

delete this.onPress;

Not sure why setting it to null or undefined didn't work though?!

Adrian

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Adrian
Lynch
Sent: 28 April 2006 15:40
To: Flashcoders
Subject: [Flashcoders] onPress in nested MC


I know about event hidden, but I've never seen this before...

I have an MC(btn), with a nested MC(innerBtn). On pressing btn, I want to
remove it's onPress so I can get at the inner button's onPress.

Is this possible? I tried onRelease instead but then yields the same
results.

btn.onPress = function() {
        // Remove this onPress so we can get at the inner buttons onPress
        this.onRelease = null;
};

button.innerBtn.onPress = function() {
        trace(this);
};

The onPress is removed in that it doesn't fire after the first press, but
the finger pointer doesn't disappear when I hover anywhere over btn.

Any ideas. I thought I had events sussed!

Adrian Lynch

_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to