Hello

As you request for the example . Try this simple example.. may help
you.

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml";
layout="vertical">

        <mx:Script>
                <![CDATA[
                        import mx.managers.CursorManager;
                        import mx.events.FlexEvent;

                        private var timer:Timer;
                        private function onEnterFrame(event:Event):void
                        {
                                if( CursorManager.currentCursorID == 
CursorManager.NO_CURSOR )
                                {
                                        Application.application.enabled = true;
                                        
this.removeEventListener(Event.ENTER_FRAME,onEnterFrame);
                                }
                        }
                        private function onTimerComplete(event:TimerEvent):void
                        {
                                CursorManager.removeBusyCursor();
                        }
                        private function onButtonClick(event:MouseEvent):void
                        {
                                
this.addEventListener(Event.ENTER_FRAME,onEnterFrame);

                                timer = new Timer(1000,4);
                                
timer.addEventListener(TimerEvent.TIMER_COMPLETE,onTimerComplete);
                                timer.start();

                                Application.application.enabled = false;
                                CursorManager.setBusyCursor();
                        }
                ]]>
        </mx:Script>

        <mx:Label text="Click button to see preview" />
        <mx:Button label="Click" click="onButtonClick(event)" />
</mx:Application>

Thanks
Virat Patel

On Feb 3, 8:53 am, sravan kumar <[email protected]> wrote:
> can u please give me an example ,because i need to set this one for my
> entire application.
>
> On Mon, Feb 2, 2009 at 3:25 PM, Romulko <[email protected]> wrote:
>
> > Or you can use binding to watching when the busy cursor either is busy
> > or not. If it is busy - remove mouse click listener from background or
> > use enabled property to set false for background.
>
> > --
> > Roman
>
> > On Feb 2, 6:02 am, sravan kumar <[email protected]> wrote:
> >  > hi folks,
>
> > > Iam using busy cursor and it is allowing to click the background like
> > > buttons while busy cursor is showing.
> > > I want to disable background while busycursor is showing How can I do
> > > this...?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to