problem with this is that, if u move mouse, it changes ur mouse shape.
so better to show loading icon in pop up
On Thu, Feb 11, 2010 at 4:49 PM, Flexian_NGL ,@Bangalore <[email protected]
> wrote:
>
> package
> {
> import mx.managers.CursorManager;
> import mx.rpc.AsyncToken;
> import mx.rpc.events.FaultEvent;
> import mx.rpc.events.ResultEvent;
> import mx.rpc.http.mxml.HTTPService;
>
> public class myHttpService extends HTTPService
> {
>
> public function myHttpService(rootURL:String=null,
> destination:String=null)
> {
> super(rootURL, destination);
> this.addEventListener(ResultEvent.RESULT, onResultEvent);
> this.addEventListener(FaultEvent.FAULT, onFaultEvent);
> }
>
> [Embed(source="assets/waiting_animated.swf")]
> public static const Waiting:Class;
> public var cursorId:int;
>
> override public function send(parameters:Object=null):AsyncToken{
> cursorId = CursorManager.setCursor(Waiting);
> return super.send(parameters);
> }
>
> public function onResultEvent(event:ResultEvent):void{
> CursorManager.removeCursor(cursorId);
> }
> public function onFaultEvent(event:FaultEvent):void{
> CursorManager.removeCursor(cursorId);
> }
> }
> }
>
> try this i have used it for custom busy Cursor over an Http Service call.
> if u want the other controls not be clicked.
> 1. use an transparent image which fits the entire screen(user wont be able
> to click anything other than that.) on firing(invoking ) a call.
> On resultevent make image visibility false;
>
> 2. use popup component.
>
> --
> Thanks & Regards
> GK
>
>
> --
> 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]<flex_india%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/flex_india?hl=en.
>
--
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.