from the code fragments below it looks like you never assign the 
"objPropostaBusca" variable to an instance of the class you want. it 
depends on the rest of your app and what you're trying to do of course, 
but something like this might work:

<mx:Script>
   var objPropostaBusca:as_PropostaBusca = new as_PropostaBusca();
</mx:Script>

   </mgk>

Fernando Barros wrote:

>Hi there!
>
>Im trying to make my first flex app and I�ve this problem:
>I have proposta.mxml with 
><mx:VBox id="tabBusca" label="Suas Propostas" width="100%" >
>       <PropostaBusca id="PropBusca"/>
></mx:VBox>
>
>And in PropostaBusca.mxml I have:
>...
><mx:Script>
>       var objPropostaBusca:as_PropostaBusca;
></mx:Script>
>...
><mx:Button label="Abrir" enabled="{dgProposta.selectedItem!=null}" 
>click="objPropostaBusca.Abrir(dgProposta.selectedItem.NPROPOSTAID);"/>
>
>And in as_PropostaBusca.as:
>import mx.controls.Alert;
>import mx.services.WebService;
>
>class as_PropostaBusca
>{
>       public function Abrir(nPropostaID:Number):Void
>       {
>               Alert.show('Entrou');
>               var objSessao:SharedObject;
>       ...
>
>But I�ve never got this Alert or any type of trace.
>
>What Am I doing wrong?
>
>Thks in advance!
>
>--------->--------->---------
>Fernando Barros
>--------->--------->---------
>
>
>
>
> 
>Yahoo! Groups Links
>
>
>
> 
>
>
>
>
>
>  
>


 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to