Well... I'm sure it's possible... if you go into your flex-config.xml and turn on keep-generated-as.. you'll be able to see the code macromedia uses to setup the remote objects.

 
On 11/6/05, mpaliyenko <[EMAIL PROTECTED]> wrote:
Hi guys
I'm quite new to Flex and have a qusetion.
Is it possible to perform server call without declaring RemoteObject
in MXML. The reason why I need it is following:
I'm trying to fix some things that I do not like in cairnrogm
framework. One of them is that all remote objects must be declared in
single place.
We have a tens of applications that share the same services and I do
not want to create the single Service.mxml for them also I do not like
to create tens of them and duplicate services declarations.
Another thing I do not like is code duplications
    <mx:RemoteObject
                               id="memberManagerService"
                               source="memberManager"
                               result="event.call.resultHandler(event)"
                               fault="event.call.faultHandler (event)">
   </mx:RemoteObject>

       <mx:RemoteObject
                                       id="authenticationManagerService"
                                       source="authenticationManager"
                                       result="event.call.resultHandler(event)"
                                       fault="event.call.faultHandler(event)">
       </mx:RemoteObject>

result and fault attributes are the same. I think this can be fixed if
i could initialize RemoteObject from ActionScript programmatically.

I was trying to find the solution in docs but they sucks. They declare
mx.servicetags.RemoteObject as tag and since the source of that tag is
not availiable I do not know how to initialize it programmatically.
Can anyone help?
Thanx in advance
Mykola










------------------------ Yahoo! Groups Sponsor --------------------~-->
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/cd_AJB/QnQLAA/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

<*> 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/






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




Reply via email to