On an old project I had an annoying problem with Flex builder that meant only the main application’s MXML file would allow me to debug the application. If I tried to debug or run on another file in the project I would get the error, “This file cannot be launched”.

In order to fix this, all you need to do is make sure the folder/package with your files is added to the ‘runnable application files’ in the Flex Applications tab of projects properties. If there are already added, just try adding again and it should resolve the issue.

Thanks to Jason San Jose for pointing this out to me!

This entry was posted on Wednesday, February 24th, 2010 at 1:07 pm and is filed under Random. You can leave a comment and follow any responses to this entry through the RSS 2.0 feed.

4 Comments Leave a comment

  1. William Grand 11 March 2010 at 10:41 pm #

    Thanks for this post

    I clicked Projects –> Properties and I see these items on the left:
    Resource
    Builders
    Project References
    Run/Debug Settings
    Subversion

    But no “Flex Applications” — am I looking in the right place??

    Thanks for your help!

    P.S. I’m using Flex Builder 3

  2. Rob 8 April 2010 at 5:39 pm #

    You should have, “Flex Applications” in that list…
    Make sure you have your project folder selected, or right click on your project folder perhaps?

  3. Animatect 17 September 2010 at 4:23 am #

    Rob, you probably are using an ActionScript Project, not an MXML project, you should look for ActionScript Applications instead, there you should add the class you want as default and make it default.

  4. Phil 19 July 2011 at 6:49 pm #

    That made it for me too, thanks!

Leave a Reply