This might also help you:

var baseUrl:String = mx.core.Application.application.url.replace(/\/bin 
\/.+$/,'');

This assumes that you put your binary in 
http://www.yoursite.com/bin/yourSwfHere.swf



On 08/12/2008, at 9:45 AM, Tracy Spratt wrote:

>
> I have had so many problems using relative paths that I do not use  
> them any more.
>
>
>
> Instead, I pass fully qualified “root” url(s) into my apps via  
> flashvars.  I no longer have any pathing issues.  This also allows  
> for multiple launch confgurations in development and for configuring  
> multiple implementations in production.
>
>
>
> Let me know if you want some code snippets.
>
>
>
> Tracy
>
>
>
> From: [email protected] [mailto:[EMAIL PROTECTED]  
> On Behalf Of pbrendanc
> Sent: Sunday, December 07, 2008 2:29 PM
> To: [email protected]
> Subject: [flexcoders] 2032 Stream Error - Deploying XML Application  
> Configuration Data
>
>
>
> I have created some application configuration files (e.g. app menu)
> that I need to load during startup. In development I have defined the
> following service that loads this data from a local file.
>
> mx:HTTPService id="appmenuService" url="data/appmenu.xml
> resultFormat="e4x" />
>
> I' m trying to deploy this app to a google site and am getting 2032
> errors. This is the error:
>
> [RPC Fault faultString="HTTP request error"
> faultCode="Server.Error.Request" faultDetail="Error: [IOErrorEvent
> type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error
> #2032: Stream Error. URL:
> http://8882909683684169354-a-1802744773732722657-s-sites.googlegroups.com/site/myflexdemos/Home/applinks/appmenu.xml
>  
> "].
> URL: appmenu.xml"]
>
> I was hoping to be able to load this data from the XML files that I
> have uploaded. (All the files are in the same domain so I don't think
> crossdomain.xml is required here - I did add a cross domain file, but
> still get the error.)
>
> I'm not sure if this is a Path/Directory error or if I need to create
> a new application service on the server to retrieve that data. (This
> would seem to defeat the purpose of having XML configuration files in
> the first place).
>
> The more general question here is how to retrieve data from XML data
> that resides on the host?
>
> Any suggestions?
> TIA,
> Patrick
>
>
>
> 


------------------------------------

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Alternative FAQ location: 
https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 
Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/flexcoders/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

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