If I'm getting this right, you're running into the annoying 'feature' of the
FocusManager stealing focus when a
TextArea/TextInput/ComboBox previously had focus. If that is the case and you
want to get rid of it, use the following, preferably
in the main timeline of you app
function onMouseDown():Void {
focusManager.enabled = false;
}
function onMouseUp():Void {
focusManager.enabled = true;
}
focusManager is a movieclip instance created by the v2 Component Framework. It
lives in the root/main timeline.
So if you need to target it from within a class, use _root.focusManager
It's one of those exceptions where using _root is kewl (in my book) ;-)
Does that fix your problem?
regards,
Muzak
----- Original Message -----
From: "Andreas Rønning" <[EMAIL PROTECTED]>
To: "Flashcoders mailing list" <[email protected]>
Sent: Monday, October 02, 2006 1:41 PM
Subject: Re: [Flashcoders] Selection class makes me want to kick someone
intheface
> All this stuff is true, but my problem isn't getting the selection, it is
> *unselecting* it. As in setSelection(0,0);
> My problem is more related to not being able to control setSelection with an
> onPress without having it borking on me.
>
> Right now i've "solved" it with a clearSelection method that runs an 80ms
> interval before it calls setSelection(0,0); and it
> works. It just seems like such a foolish solution :(
>
> - A
_______________________________________________
[email protected]
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