Try calling validateNow() after invalidateDisplayList(). This should cause updateDisplayList() to get called immediately. - Gordon
________________________________ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Janis Radins Sent: Thursday, March 22, 2007 7:19 AM 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 Protsiuk < [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> >: 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] <mailto:[EMAIL PROTECTED]> > wrote: 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 to updateDisplayList on next time graphics are rendered. Guess that sounds pretty logical and stright forward. Now, the problem is that I have problem with synchronizing whole thing, because between time when invalidateDisplayList is issued and updateDisplayList mouse position has already changed. Hence my fist idea was to "somehow" pass current mouse position along with invalidateDisplayList call, though I dont see any possible way to solve it atm. Any ideas will be preciated. Jānis