All,
Relative newbie here and very much enjoying my immersion into Flex. 
I'm trying to put together an Ant script to do my builds/deployments
and am running into a couple of issues.. documentation is lean, so I'm
hoping someone has run into these before.

Of importance:  the app is using FDS using several mx:RemoteObjects. 
We're using Cairngorm so we have a Services.xml file and have our
remote delegates defined in remoting-config.xml.

I've got my tasks compiling and outputting correctly, but the
following two things keep happening:

1) When accessing the generated HTML page, I immediately get a runtime
error saying that the app could not establish a connection to my
remote delegate.  

In code, I first get the Service from cairngorm:
utilDelegate = ServiceLocator.getInstance().getService("UtilDelegate")
as RemoteObject;

then attempt a call to a method of this utilDelegate.  The code always
faults, and Weblogic never twitches.  This error is alerted:

The error is like this:
[RPC Fault faultString="[MessagingError message="Unknown destination
'utilDelegate'.]" faultCode="InvokeFailed" faultDetail="Couldn't
establish a connection to 'utilDelegate'"]

Can't seem to find the remoting-config.xml file.  I've added a
services="/PATH/flex-config.xml" to the <mxmlc> task.. seems to do
something with it because if I enter an invalid path I get an error.

2) The SWF size is always being defaulted to 400x400.  I think I've
figured out how to set it to a different static size, but how can I
force it to generate at 100%x100% like Flex Builder does?  Whenever I
try to enter a percentage I get a compiler error.

Hope someone can help with this, I'm throwing darts right now.

Thanks!
Dave

Reply via email to