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 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

Reply via email to