PDA

View Full Version : Listener Question



Meridian
July 24th, 2003, 11:13 PM
Ok, I got myself a nifty listener that activates a mc when the focus is set on a textfield.



_root.mail.n.onSetFocus = function() {
if (Key.addListener(_root.mail.n) == true) {
_root.mail.fader.gotoAndPlay(2);
}
};



Works great.

Question is how do I make it play the next part of the mc when the focus of the text field changes from itself to another text field?

ahmed
July 24th, 2003, 11:15 PM
try onLostFocus

Meridian
July 24th, 2003, 11:18 PM
I didn't know there was a lost focus command. DOH!

Meridian
July 24th, 2003, 11:25 PM
Actually it's



onKillFocus

ahmed
July 24th, 2003, 11:31 PM
haha that.. sorry.. i got mixed up, lostFoucs is used in vb =)

Meridian
July 24th, 2003, 11:33 PM
It helped me look in the right direction that's what's important :)

Thanks

senocular
July 25th, 2003, 08:56 AM
You can just look in the reference panel or the books in the left of the actions panel to get a list of properties and events for any object while working in Flash. Chances are you might find what you need there the next time something like this happens ;)