One problem I see is that when you do this:

return uiAcomp.buscaMotivoAcompanhamentoByCdn("1");

 

it appears that you expect the data from the call to be returned by the function.  This will not happen because the call is asynchronous.

 

You must invoke the call, then handle the result  in a handler on the result event of the method.

 

Tracy

 


From: [email protected] [mailto:[email protected]] On Behalf Of Robson Thanael Poffo
Sent: Wednesday, September 21, 2005 9:07 AM
To: [email protected]
Subject: [flexcoders] Not initialize remoteObject in mxml file

 

Hi people,

 

            I have one mxml file, and a make one instance of this mxml, this mxml have one properties of type RemoteObject.

            When a instance this mxml in as, the remoteObject is not instancied.

            Have any means to make it?

 

The mxml file have this content:

If in other mxml file a instance this file in AS, and I try to display the uiAcomp, a receive undefined message, (mx.controls.Alert.show(instance.uiAcomp)), but if I try to show message of instance I receive [object] (mx.controls.Alert.show(instance)).

 

<?xml version="1.0" encoding="utf-8"?>

<mx:Panel xmlns:mx="http://www.macromedia.com/2003/mxml" themeColor="#3366CC" backgroundColor="#CCCCCC"

xmlns:comp="comp.*" xmlns:vo="vo.*" xmlns="*" height="600" marginLeft="0" marginTop="0" marginBottom="0" marginRight="0" >

<mx:Script>

<![CDATA[

function buscaMotivoAcompanhamentoByCdn(cdn:String):vo.T_mtvo_acmp_mqntVO{

mx.controls.Alert.show(TESTE');

return uiAcomp.buscaMotivoAcompanhamentoByCdn("1");

}

]]>

</mx:Script>

<mx:RemoteObject id="uiAcomp" named="gesMaqAcompanhamentoUI">

<mx:method name="buscaMotivoAcompanhamentoByCdn" result="mx.controls.Alert.show('teste');"></mx:method>

</mx:RemoteObject>

</mx:Panel>

 

 

Thanks and regards,

 

Datasul HCM

Novos Conceitos. Grandes Resultados.

 

 

Robson Thanael Poffo
Desenvolvimento

Av. Santos Dumont, 831
89204-100 Joinville, SC
Brasil

[EMAIL PROTECTED]

tel:
fax:

+55 (47) 21017499
+55 (47) 21017144

 

 

 

 

 

 

 

 

 

 

 


De: [email protected] [mailto:[email protected]] Em nome de Markus Ansamaa
Enviada em: quarta-feira, 21 de setembro de 2005 09:42
Para: [email protected]
Assunto: RE: [flexcoders] More print woes ;-)

 

1) Set your application background color to white in MXML. Then you can set
it to another color (e.g. 0x999999) when application is initializing. This
way the background on the screen will be the value set later but the
background value for printing is white. I don't why this works but it just
does.

Markus

> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]] On Behalf Of jamiebadman
> Sent: 21. syyskuuta 2005 14:10
> To: [email protected]
> Subject: [flexcoders] More print woes ;-)
>
>
> Hi,
>
> I found in the archives of this group some code to print a datagrid.
> It doesn't work so well and this was reported in the Flex Macromedia
> forum:
>
> http://www.macromedia.com/cfusion/webforums/forum/messageview.cfm?
> catid=346&threadid=966370&highlight_key=y&keyword1=print
>
> There is some new code listed there, from Mike Collins, which does a
> much better job - but there are still problems that I can't seem to
> resolve with it... I wonder if anyone here has any ideas...
>
> (1) When you use that code to print, the area outside the grid is
> printed in dark grey... how can this be stopped - ie have it white ?!
>
> (2) Is there any way to have the print job default to landscape ?
>
> Thanks - any help much appreciated.
>
> Jamie.
>
>
>
>
>
> ------------------------ Yahoo! Groups Sponsor
> --------------------~-->
> Fair play? Video games influencing politics. Click and talk back!
> http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM
> --------------------------------------------------------------
> ------~->
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.com
> Yahoo! Groups Links
>
>
>

>
>





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




Reply via email to