Caroline,

The default RemoteObject proxy (AMF gateway) is a relative path in 
flex-config.xml

        <amf-gateway>{context.root}/amfgateway</amf-gateway>


This works fine for an mxml request because it's compiled on the server
- and the server knows how to resolve {context.root}

However, when you pre-compile a swf with mxmlc and keep the default for
the AMF gateway - you need to provide either:

1. the value of {context.root} using the '-contextroot' option


2. an absolute path for the AMF gateway using the '-gatewayurl' option

        http://livedocs.macromedia.com/flex/15/flex_docs_en/00000860.htm




You could also do any of the following:

- set an absolute URL for the AMF gateway using the mx:RemoteObject
'endpoint' tag attribute

        
- set an absolute URL for <amf-gateway> in flex-config.xml


- use the mxmlc '-remoteallowurloverride' option
        
        See postings from today:
        
http://www.mail-archive.com/[email protected]/msg19187.html
        
http://www.mail-archive.com/[email protected]/msg19164.html



regards,
peter


-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Caroline
Sent: Tuesday, January 24, 2006 2:16 PM
To: [email protected]
Subject: [flexcoders] How to use precompiled mxml with Remote Object?

Hi All,

Can someone give me a few examples or point me to some?

Much appreciated!





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

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


Reply via email to