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?

6 thoughts on “Spaces in Flex Actionscript-only project-names

  1. 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.

  2. 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)..

  3. 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.

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

    My guess is that it is due to Flex Builders auto generation of a main class. – which of cause is not able to contain any spaces. So it is not a constraint to the Project, but to the class generated with the project.

    Cheers

Comments are closed.