Ya dude you can send by Extending your class by DispatchEvent and
public class Handler extends EventDispatcher
        {
                public static const RECORDS_FOUND:String="DONE";
                public var err:String=null;
                public function JsonResultHandler()
                {

                }
                [Bindable] public var resp:ArrayCollection;
                public function playerHandler(event:ResultEvent):void
                {
                        var rawresp:String=String(event.result);
                        dispatchEvent(new 
Event(JsonResultHandler.RECORDS_FOUND));
                }

        }
}

and then in your component or application
var obj:Handler=new Handler();
obj.addEventListener(Handler.RECORDS_FOUND,yourfunction);
function yourfunction():void{

}

On Nov 21, 3:46 pm, riaflexible <[EMAIL PROTECTED]> wrote:
> Hi ,
>
> Is it possible to dispatch event from a class .Please suggest me ways
> to do it .
>
> Thanks,
> Satish

--~--~---------~--~----~------------~-------~--~----~
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