When you run from FlexBuilder, the url usually starts with file://
When you run from a server, the url usually starts with http://
The security rules for file:// and http:// are different. Usually, if you use relative paths and everything is in a subfolder of bin-debug or bin-release, it should move cleanly to a server. Make sure you didn't accidentally use a file:// url in your code.
If you are accessing URLs from different domains you will need to understand cross-domain security. There are Security WhitePapers on the Adobe web site.
Flex SDK Developer
Adobe Systems Inc.
when you build an application using one of the wizards (like coldfusion flex application wizard) it hard codes
paths to cold fusion CFC's, and sometimes gets it wrong.
If your application references cfc's (or other remote objects) then it may be necessary to adjust the flex code
when moving the code into a different base folder.
For example in my own application, the url is http://localhost/crm_dev_flex and the built application gets put into
References in the code to components found in c:\inetpub\wwwroot\crm_dev_flex\bin-debug\components\cfgenerated
(in the flex code these looks like crm_dev_flex.bin-debug.components.cfgenerated.<mycomponent> )
These need to change when you move the code to somewhere else.
Also, if you are using wizard generated cfc's then these also contain similar references that need to be changed.
Often this is because you need to add the -use-network=true compiler option in the FlexBuilder menubar:
Project - Properties - Flex Compiler - Additional compiler arguments:
add -use-network=true and then recompile and post to server, should work fine.
Note: if you create a "release build" and move it elsewhere on your local machine, you may need to add -use-network=true and then recompile for the app to be able to access local resources outside the Flex Builder environment.
If this post answers your question or helps, please mark it as such.
Thanks to everyone for answering.
Greg - Thanks a million, works perfectly!