I handle this by passing deployment-specific information into the Flex
app via flashvars in the html wrapper.

Tracy

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of netdeep
Sent: Monday, March 31, 2008 8:58 AM
To: [email protected]
Subject: [flexcoders] Generic server/context path

 

I need to move my application onto the server for deployment. Up til
now, I have been 
running a server using localhost for my app. But I need to get the
generic path and run from 
there. I tried using @ContectRoot but it did not give me the server
path, just the context. 
Here is a snippet from the code. I know the proj/loader part will stay
the same, but I will 
need to derive the first part from wherever it is running. What do I set
the path to to do this?

// on the deployment I need to replace localhost with server name, port,
and context root
public var dbURL:String = "http://localhost:8888/proj/loader
<http://localhost:8888/proj/loader> ";

<mx:HTTPService id="sysOps" useProxy="false" method="GET" 
fault="handleFault(event);" url="{dbURL}"/>

 

Reply via email to