It’s not very easy to do right now
in 1.5 because of the amount of code-generation that goes into RemoteObject.
But 2.0 allows everything to be created in ActionScript which will make this
easier.
Matt
From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of mpaliyenko
Sent: Sunday, November 06, 2005
4:25 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] remote
object without mx:RemoteObject, is it possible?
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
--
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
|
- RE: [flexcoders] remote object without mx:RemoteObject, is it... Matt Chotin
-