Hello ppl!
I have run into some problems in here.
I'm making menu which is supposed to react on Mouse position. Actually I'm
trying to recreate macintosh menu dock.
When menu is in active state i subscribe to MouseEvent.MOUSE_MOVE and
whenever it's called I fire invalidateDisplayList which leads
You can store mouse coordinates in some private fields before calling
invalidateDisplayList() and then use them in updateDisplayList(...).
R.
On 3/22/07, Janis Radins [EMAIL PROTECTED] wrote:
Hello ppl!
I have run into some problems in here.
I'm making menu which is supposed to react on
Allready thought about that.
It wouldnt work, just because between invalidateDisplayList() and
updateDisplayList() those values would change.
22 Mar 2007 05:39:18 -0700, Roman Protsiuk [EMAIL PROTECTED]:
You can store mouse coordinates in some private fields before calling
Why worry about the mouse position?
Why not set the state of your menu object to indicate which menu is
selected, which one is hovered over, which ones are open, etc.
These state values get set in the MOUSE_MOVE event before you invalidate and
then the updateDisplayList already knows the state
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] How to pass some values along with
invalidateDisplayList
Allready thought about that.
It wouldnt work, just because between invalidateDisplayList() and
updateDisplayList() those values would change.
22 Mar 2007 05:39:18 -0700, Roman
5 matches
Mail list logo