This content has been marked as final. Show 5 replies
I've never seen it do that. What are the exact steps you're doing to get this behaviour?
I don't think I am doing anything unusual...
I downloaded another sample app. into a folder. I create a basic Flex Project for it in FB2. It compiles and runs.
I close this app and open another project. I open the project's main mxml file and click the run btn. An alert pops up telling me the previous project does not exist or is closed.
Does Flex Builder 2 retain project settings somewhere that need to be updated?
More testing... I discovered there are two ways of 'run'ning an app.
The first is to use the 'run' icon on the top bar. I get the error message when using this button.
The second way is to left click on the project name => run as => run. This invokes the 'Create, manage, and run configurations' window. I created a Flex Application for each of my project. Clicking 'Run' things seem to work as expected.
How do I get the 'run' icon on the topbar to invoke the 'Create, manage, and run configurations' window? Or is it the case I should set the active flex application once using 2 then use 1 from then on?
Sounds like you are using the Eclipse Plugin-based version of Flex Builder,
rather than the standalone version.
In the plugin version, we inherit the standard Eclipse behavior for the Run
and Debug buttons, which is that they re-launch the most recently launched
We didn't really agree with that design, so in the standalone version, the Run
and Debug buttons mean to launch the currently selected application.
In the plugin version, the workaround is to do Run > Run As > Flex Application
or Debug > Debug As > Flex Application. Those commands will launch the
currently selected application. (They look for an existing "launch
configuration," and use it if they can find it; if they can't find one, then
they create a new one.)
Both of those commands have keyboard shortcuts, as you can see on the menus:
Run > Run As > Flex Application is (Alt-Shift-X, F); Debug > Debug As > Flex
Application is (Alt-Shift-D, F). You can change those key bindings if you
want, via Window > Preferences, General, Keys.
Developer, Flex Builder team
Yes. I am using the Eclipse Pluggin version. You answer explains it very well.