Spaces in Flex Actionscript-only project-names

Odd enough Flex Builder seems to hate it when you want spaces in the name of an Actionscript-only project:

Flex hates spaces, boo! :(

Here’s the rough guide to having spaces in your Flex Builder Actionscript-only project-names:

Compromise, boo! :(

Success, yay! :)

Kind of leaves me wondering, why all the fuss in the project-wizard if we can rename our projects in the navigator?

3 Responses

Note that comments are displayed in reverse chronological order with topmost comments being freshest. Subscribe | Comment
  • JabbyPanda says so:
    March 27th, 2008 | Quote

    A friend of mine provided a meaningful explanation for this kind of the behavior for FB3.

    When you use the wizard in FB3 to create ActionScript 3 only project, you have to enter only the name for your new project, the main AS class name is *autogenerated* and it is basically replicates the name of the new project.

    If you typed the new name for project with spaces or other non symbolic charactes, then FB3 would be unable to generate the correct name for the main AS class, thus an extra validation for new project name was introduced in this dialog.

  • Ruben says so:
    March 26th, 2008 | Quote

    Exactly. Although actually there’s already the next-button, which takes you to the tab where you can specify the desired filename for your main class. However, the next-button will remain disabled as long as the specified project-name contains any ‘illegal’ characters (like spaces)..

  • Keith Peters says so:
    March 26th, 2008 | Quote

    Well obviously the problem isn’t with the project name or directory, but the fact that it makes the main class name the same as the project name. I guess they could solve this by adding another field for “Main class name”, but doesn’t seem like a huge deal to me.

Leave a Reply