Switching Flex Builder To Flash Builder Issues

Finally I managed to switch from Flex Builder 3 to Flash Builder. Altought, most of the workspaces, projects and casual things were running after switch just fine, there were some issues that made me mad. Some of them I was able to fix, some keep fuss me. I decided to write this post so it may help someone with dealing the same issues…

Additional Source Folders

I used to keep all the .swc libraries together with .as classes in one folder structure. While in old Flex Builder, it was as simple as adding source folder (Project / Properties / … Build Path / Source Path / Add Folder) to make all common libraries work, in Flash Builder, problems occured – after adding additional source folder, the IDE stoped code completion etc. It were not worth those loosed hair when it suddenly appeared that problem is in the structure of the folder, especialy mixed .swc and .as files. From now on, folder is separated into /src (all .as files) and /swc (all .swc files) folders. Credentials go to my friend David Engelmaier, who helped me out of the misery.

HTML Editor

I did not solved this issue yet. I really would like to have some code highlighting editor in Flash Builder.

Creating Files

In order to create a new file (.as class) I used to right-click on folder / new / ActionScript Class. It was simple and fast. Now in Flash Builder, there is no quick option to do that. You have to create “Other …” and select desired option in opened dialog.

Software Updates

After installing, there were no sites defined to check the most common software installation/updates for eclipse (subclipse etc.), I guess one have to add those himself. Here is a list of sites I use:

Europa Discovery Site : http://download.eclipse.org/releases/europa
PBDT                  : http://pbdt.joa-ebert.com/update
Subclipse             : http://subclipse.tigris.org/update_1.6.x

Manage links in Window / Preferences / Install/Update / Available Software Sites

Resource ‘/ProjectXY/…/SomeClass.as’ does not exist

Flash Builder keeps telling me that my file does not exist although it does exist in Project Explorer. When I move this file into another folder, it opens, move back to original place, not exist again … Flash Builder restart required

F5 does not refresh Project Explorer

F5 does not work at all, I can not refresh assets folder, I have to close and reopen the project … Flash Builder restart required

Change!!!

I tried to install Aptana:

  1. Plugging Aptana into an existing Eclipse configuration
  2. Install New Software / Add: http://update.aptana.com/install/studio
  3. Install Aptana – Fail
  4. noticed new available software sites added but disabled, enable all
  5. everything fails to install but Aptana Studio Pro, ok lets try this one
  6. done, need restart flash builder? ok…
  7. starting flash builder: “An error has occured. See the log file C:/…./ANYPROJECT/.metadata/.log”
  8. again and again, all workspaces 🙁 I am doomed
  9. http://kb2.adobe.com/cps/405/kb405285.html suggested to remove “\.metadata\.plugins\org.eclipse.core.resources”
  10. restarting… no success
  11. removing everything from C:\Program Files\Adobe\Adobe Flash Builder 4\plugins with name Aptana
  12. restarting… success!!! but wait! where are all the projects from my workspace? And why is everything changed? All the icons, all the tabs and views, what happend?

It seems that by removing org.eclipse.core.resources all the old Flex Builder things get removed, new (I guess) Flash Builder appearance got on scene, new Package Explorer with working quick options for .as, .css everything wow!!! My final suggestion for switching from Flex Builder to Flash Builder is: use new workspaces, new projects, do not import the old ones!

10 comments so far

  1. Andrew Shorten June 25, 2010 07:30

    Hi,

    Some comments on your Flash Builder issues:

    – HTML Editor: You could add Aptana to your Flash Builder installation.

    – Creating Files: Right click in package explorer, New > ActionScript class is still available. I’m not sure why you can’t see that – are you using FB standalone or as plug-in into Eclipse?

    – Software update: Good feedback, we’ll consider providing a default location for a future release.

    Thanks,

    Andrew Shorten
    Senior Product Manager, Flash Builder

  2. Jozef Chúťka June 25, 2010 11:41

    Hi Andrew,
    thanks for your tips, I tried to install Aptana – did not worked, missing dependencies. But after some messing with plugins a lot of thing started to work! Even the Project Explorer got changed for Package Explorer where quick options for creating files works. I have updated the article, so you can see all steps to reproduce. Still got to figure out Aptana missing dependencies…

  3. Andrew Shorten June 25, 2010 21:36

    Your tip about using new workspaces is valid and is the recommended approach – I’ll get that added to our documentation/articles so that others don’t have similar issues.

    Thanks,

    Andrew

  4. adampasz June 30, 2010 21:09

    Hey, you didn’t even mention the new help system. 🙂

    The “Some Class Does Not Exist” problem is *atrocious*. FB pretty much can’t deal with running multiple projects at once, when the user regularly opens and closes them. Depending on your needs, one can make a pretty good case for sticking with FB3 until Adobe releases a patch for some of these issues.

  5. Jozef Chúťka July 1, 2010 09:39

    @adampasz, its almost a week now and in fact most of the things works just fine. I think the main issue was using the old flex projects / workspaces.

  6. adampasz July 2, 2010 00:38

    Ok. When I have time, I will try blowing away all my projects and rebuilding them…

  7. taf July 28, 2010 10:37

    Thanks for writing this down. Was having problems with SWC folders when they were under a src folder but moved them to their own swc folder and all works. As you say this worked fine in Flex builder 3 but not with Flash Builder.

  8. darkske July 29, 2011 10:56

    hehe,.. quick fix for my,
    Resource [file] does not exist,
    panic attack :p

  9. Aden September 13, 2011 08:28

    Resource ‘/ProjectXY/…/SomeClass.as’ does not exist1:

    1,open ProjectXY,
    2,close FB,
    3,run FB

  10. Mark September 29, 2011 02:50

    Thanks for the article. I had the problem “Resource _____ does not exist”.

    Restart did fix it.

Leave a comment

Please be polite and on topic. Your e-mail will never be published.