Select to view content in your preferred language

How to run specific application configuration in Flash Builder?

915
2
07-01-2011 12:41 AM
KamilSvoboda
Deactivated User
Is there any way, how to setup Flash Builder's "Run configuration", to run/debug specific ArcGIS Viewer for Flex application configuration?
In Run > Run Configurations can be set "Url or path to launch", where I can uncheck "Use Default" and I can set new path with configuration URL parameter - for example "C:\Users\user\Adobe Flash Builder\flex_viewer\bin-debug\index.html?config=config.xml". But debug results with Launch Error - File not found.
Is there any other way to run/debug specific application cofniguration in Flash Builder?
Thanks a lot!
Kamil
Tags (2)
0 Kudos
2 Replies
RobertScheitlin__GISP
MVP Emeritus
Kamil,

   The easiest way is to open the ViewerContainer.mxml and set the line:

public static const DEFAULT_CONFIG_FILE:String = "config.xml";


But if you want to know how to fix the error you are getting you have to have the url set to a valid http url. It can not use the file system like C:\Users\user\Adobe Flash Builder\flex_viewer\bin-debug\index.html?config=config.xml. It would have to be http:\\localhost\Flexdev\index.html?config=config.xml
0 Kudos
KamilSvoboda
Deactivated User
Robert,

thank you for that advice! Using correct http URL is right way, because I need to prepare more "Run configurations" for different apps. Therefore change of DEFAULT_CONFIG_FILE isn't sufficient.

Thanks again!
Kamil
0 Kudos