Hi,
I am trying to run your sample, but I
always have this error, and I don’t find how :
ReferenceError: Error #1069: Property
dummyDelegate not found on org.nevis.cairngorm.business.ServiceLocator and
there is no default value
Do you know how to correct that ? (I
really changed nothing to your source only in Services.mxml endpoint and source)
Thanks,
William.
Oriol,
Thanks for you feedback,
This is one of the areas I am also not so sure
on. One way to look at
it is to define it out to 5-8 arguments. As
a general rule of thumb
passing 8 parameters is not a good thing to do.
But I am searching and trying to learn a more
elegant way to handle
any arbitrary number of parameters passed in.
Renaun
--- In [email protected],
"Oriol Gual" <[EMAIL PROTECTED]> wrote:
>
> Hi Renaun,
>
> I've been also trying to make an AMFPHPService,
quite different than
yours,
> but after looking at your code I've a doubt:
>
> flash_proxy override function callProperty(
methodName:*, ...args):* {
>
AppUtil.info("passed callProperty");
>
if( gateway_conn == null )
>
gateway_conn = new RemotingConnection( endpoint );
>
>
var respond:ResponderAMF0 = new ResponderAMF0( methodName,
> setQueryResult, setQueryFault );
>
AppUtil.info( "methodName: " + methodName + " endpoint: " +
> endpoint + " source: " + source +
"." + methodName.toString() );
>
gateway_conn.call( source + "." + methodName.toString(),
>
respond,
>
args[ 0 ], args[ 1 ], args[ 2 ] );
>
_methodResponderArray[ methodName ] = respond;
>
return respond.getAsyncToken();
> }
>
> I'm also using the ..args parameter, but when
sending it to the php
service
> they seem to disappear if I pass the args
variable itself, without
using an
> index.
> So my doubt is: using your implementation you
can only pass three args,
> can't you? How would you do it if you want to
pass more than three args?
>
> Thanks,
>
> Oriol
>
> 2006/3/28, Renaun Erickson
<[EMAIL PROTECTED]>:
> >
> > I have created an example showcasing
Flex2 Beta2, Cairngorm2 and
> > AMFPHP. It uses a custom
RemoteObjectAMF0 component I created. The
> > custom component allows access to AMF0
format services. The access
> > tries to mimic a subset of what you can
do with the Flex 1.5
> > RemoteObject. It does not support
all the features of Flex 1.5
> > RemoteObject and is first draft code,
but it can work nicely in the
> > context of Cairngorm's Service.mxml
(ServiceLocater) code structure.
> >
> > The example code is currently in the
context of the Cairngorm Login
> > example that is found in the Cairngorm 2
download.
> >
> > Please remember that AMF3 is the newer
AS3/Flex2 format and therefore
> > the longevity of the custom
RemoteObjectAMF0 is unknown. A few of us
> > are hoping to see a AMF0 supported
RemoteObject to be part of the
> > Flex2. But in the end it does not
matter once Flex2 is released and
> > AMF3 gets embraced by a wider
adapter/connector base.
> >
> > You can find the example (as well as
another example I created)
> > located here:
> > http://www.renaun.com/flex2/
> >
> > Renaun
> >
> >
> > --- In [email protected],
William Lambé
<wlambe@> wrote:
> > >
> > > Hello guys,
> > >
> > >
> > >
> > > Did someone try to use Cairngom
(architectural framework for
flex) with
> > > AMFPHP ?
> > >
> > >
> > >
> > > I ask because I don't see clearly
(in the sample Cairngorm
Login) how to
> >
> > > change LoginDelegate and
Services.mxml to use it with AMFPHP… (for
> > exemple
> > > where to introduce the
RemotingConnection of Tweenpix
> > >
> >
(http://www.tweenpix.net/blog/index.php?2006/01/03/543-hello-world-en-amfphp
> > > -avec-flex20 ))
> > >
> > >
> > >
> > > If you tried one time, coud you
explain us please.
> > >
> > >
> > >
> > > Thank you,
> > >
> > >
> > >
> > > William.
> > >
> >
> >
> >
> >
> >
> >
> >
> > --
> > 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
YAHOO! GROUPS LINKS