In training, I frequently create examples on my mac, get them working, tweak them, and then copy them over to my trainees pcs. In doing so, I have come across a few problems that I thought I would share with you, and the solutions (not perfect) that I have used to fix these issues.
What I normally do is create a new Actionscript project on my mac. Create and test the files and get everything ready for the training.
Then I copy the whole project folder onto a training pc, and sometimes I end up with problems. For example…
I frequently copy a project and then paste it. then I re-name the project and also the main as file to the new project name. But doing this can cause problems sometimes…
…when copying and pasting projects you end up with copies of previous projects still in the bin-debug folder (which will bloat up your project size)
…and also there occasionally seems to crop up a problem whereby the project still looks for another as file (say Example13.as) when the project is Example15, and has been named as such, and the main application as file has been set as such. The project seems to get stuck.
So I found that if you go to Project > Clean… and clean your projects, this should get rid of most of your problems.
The main issue that I could not seem to get rid of (sometimes) is that when you go to the properties of your project and look at the Application ActionScript section – you get a link to the old as file. Flash Builder knows it has been deleted, but it is still there. If you remove it from the list, something in the project still looks for it, and refuses to run your application without it.
The only solution I found then was to create a brand new project, name it how you want, and then copy/paste your code over.
So cleaning your Flash Builder projects seems to help a lot with problems like these, but not always.
I hope this helps everyone who gets issues like those mentioned above, and if anyone has any better solutions let me know.
Hi,
Grappling with this very issue right now, will let you know if it solves it, thanks for sharing this
Actually, just to add to previous, Flash my project is just failing to build with no meaningful error, just “one or more errors has been found, cannot build” which is annoying to try to debug, anyone any suggestions?
Hi Tom – the only thing I can suggest is to create a brand new project and copy and paste the code – this will get around any invisible project settings that may be causing the project to fail.
You will probably also need to give the new project a new name.
Hi, Yes, cheers for this, this seems to be the general consensus, Ill give that a whirl, thanks
Hi,
I have an issue when running a current project. It seems to run a different set code than the one currently open on the screen. I tested this by commenting out a section of code, but it still ran as if it was there. I then added trace statements and found they they didn’t appear in debug mode either.
Going to try copy the code into a new project to see if I can get it working. This seems to be a very strange error.
Thanks
Alan
Hi Alan – something else to check is, when you have multiple as files, the project might be looking at the wrong as file to run as the main application.
If this is the case, just RMB click the as file you wish to be the starting file and choose ‘Set As Default Application’.
That can help sometimes as well.