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.

E.g.,

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;
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top