I am using a flex2 in a web application. I have added a busy-cursor in my application successful but I need to disable the cursor click event as long as the cursor animates. Can I do this? How can I do it?
I am new to flex. Please provide me a sample code. Thanks in advance.
Not that I know of off the top of my head. But you can always remove the "click" listener to the components on the page.
Eg,
myComponent.removeEventListener(MouseEvent.CLICK, onMouseClickEventDoThis);
It's a pain though, since you would have to do this for every visual component.
What I've done in the past, is just make the component.enable = false. That way, it greys out and doesn't listen to any events.
myComponent.enable = false;
Just remember to re-enable it when you're done with the busy cursor.
myComponent.enable = true;
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.