Ok! Thks for all answers! It was my mistake!
--------->--------->---------
Fernando Barros
--------->--------->---------
________________________________________
De: michael keirnan [mailto:[EMAIL PROTECTED]
Enviada em: sexta-feira, 8 de abril de 2005 10:38
Para: [email protected]
Assunto: Re: [flexcoders] Acessing a class
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 the Yahoo! Terms of Service.
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/