views:

1167

answers:

5

I am attempting to import mxml files that I developed with Emacs into a new project in FlexBuilder...I have created a project and manually added all my MXML and actionscript files into FlexBuilder.

I now can't figure out how to run the application. I believe the problem lies in the fact that FlexBuilder believes that all my mxml files are components, when in fact, they are applications...Is there a way to change this?

When I right click on the file the "set as default application" and "run application" is disabled...

Thanks.

A: 

Make sure the MXML files are in the main source folder. You can't have a runnable application in a secondary source directory or subdirectory of the main source dir.

Mike Deck
A: 

Also you have to make sure the root node of the mxml file is Application or Module.

JustFoo
+1  A: 

I usually seem to have to go into the Project Properties, click 'Flex Applications' and add the MXMLs into that panel before I can run stuff.

Mitch Haile
A: 

You'll be having 1 file that includes < mx:Application > tag, so FlexBuilder may give you right click -> Run application option for it.

Or what else you can do is, Go to "flex project->properties->Flex Applications" You can mention ur application here with "add" button

Chinmay
A: 

Regarding to the ActionScript project
you can have runnable application at an inner package.
Just go into the the .actionScriptProperties
and add application to the application tag:

<applications> 
<application path="com/example/games/game1/Main.as"/> 
<application path="com/example/games/game2/Main.as"/> 
</applications>