Faça pessoa extender EventDispatcher.
Não conheço outra solução para esse problema...
Leia a documentação de EventDispatcher. Lá deve ter alguma coisa sobre isso.


 
Gabriela Trindade Perry - http://www.gabriela.trindade.nom.br



> Date: Thu, 5 Jun 2008 10:14:03 -0700
> Subject: [flexdev] Re: Como fazer para uma classe disparar um evento
> From: [EMAIL PROTECTED]
> To: [email protected]
> 
> 
> o único problema é que minha classe jah esta extendendo outra
> eu gostaria de que a classe disparasse um evento e eu tratasse ele em
> um arquivo mxml do flex para poder pegar uma lista de array.
> 
> package br.com.EduLink.view.entity
> {
>       import mx.collections.ArrayCollection;
>       import mx.controls.Alert;
>       import mx.rpc.events.FaultEvent;
>       import mx.rpc.events.ResultEvent;
>       import mx.rpc.remoting.RemoteObject;
> 
>               [RemoteClass(alias="br.com.EduLink.model.entity.Aluno")]
>               [Bindable]
>               public class Aluno extends Pessoa
>               {
> 
>                       public var txReg_Nasc:String;
>                       public var txNaturalidade:String;
>                       public var txUf_Rg:String;
>                       public var txRaca:String;
>                       public var idEscola:int;
>                       public var idClasse:int;
>                       public var inEspera:int;
>                       public var listaEspera:int;
>                       public var matriculado:int;
> 
>                       private var alunoService:RemoteObject;
> 
>               private var listaAlunos:ArrayCollection = new
> ArrayCollection();
> 
>                       public function Aluno():void{
> 
>                               alunoService = new RemoteObject("alunoService");
>                               alunoService.destination="alunoService";
>                               
> alunoService.onFault.addEventListener(FaultEvent.FAULT,
> onFault);
>                               
> alunoService.findByName.addEventListener(ResultEvent.RESULT,
> onResultGetList);
>                               this.addEventListener(ResultEvent.RESULT, 
> onResultGetList);
> 
>                       }
> 
> 
>                       public function aluFindByName(nome:String):void{
> 
>                                       alunoService.findByName(nome);
>                       }
> 
>                       private function 
> onResultGetList(event:ResultEvent):void {
> 
>       
> alunoService.removeEventListener(ResultEvent.RESULT,onResultGetList);
>                               listaAlunos = event.result as ArrayCollection;
> 
>                       }
> 
>                       public function getList():void
>                       {
>                               alunoService.getList();
> 
>                       }
> 
>                       public function onFault(event:FaultEvent):void
>                       {
>                               Alert.show(event.fault.message);
>                       }
> 
> 
>               }
> 
> 
> }
> 
> > 

_________________________________________________________________
Discover the new Windows Vista
http://search.msn.com/results.aspx?q=windows+vista&mkt=en-US&form=QBRE
--~--~---------~--~----~------------~-------~--~----~
Você recebeu esta mensagem porque está inscrito na lista "flexdev"
Para enviar uma mensagem, envie um e-mail para [email protected]
Para sair da lista, envie um email em branco para [EMAIL PROTECTED]
Mais opções estão disponíveis em http://groups.google.com/group/flexdev
-~----------~----~----~----~------~----~------~--~---

Responder a