Reputation: 31
We have two methods to handle cursor visibility in action script 3: Mouse.hide() and .show().
My movie loads an external one, that may intentionally hide cursor. And I have to change interface depending on it's decision.
Can I detect whether it's hidden or showing? And how?
Upvotes: 3
Views: 213
Reputation: 39458
Looking at the docs there doesn't appear to be a property representing visibility of the Mouse
. This means that what you may need to do is dispatch events from the externally loaded SWF when you .show()
and .hide()
the mouse, and then listen for those events in the top level to trigger the appropriate reactions.
Upvotes: 1