This is a very old problem that has become unbearable so I'm hoping someone out there has a solution:
I use SWCs I have generated in Adobe Flash Professional in my Flash Build projects. The problem is when these are updated flash builder absolutely refuses to recognize the changes to them.
I have tried "refresh", "clean project" I've restarted flash builder, and it still shows and runs with the old content. I verified that the swc file itself has the new content in it, the error 100% lies within Flash Builder.
Edit: This is very far from an acceptable solution but for posterity's sake: The only way to get your code to recognize the changes is to go to: 'Project Settings' -> 'ActionScript Build Path' -> 'Library Path' then remove the changed SWCs close out these menus, then navigate back to there and readd them. Sometimes this doesn't even work and you must also restart Flash Builder
I definitely feel your pain... how I wish there was a holy grail "refresh for real" button...
There are 2 ways i've found that work.
1 - In the package explorer, right click your "libs" folder and hit refresh... somehow this is better than a normal "refresh"
2- Right click your project > Properties > Flex Build Path >click the little drop down arrow on the "libs" folder > Double click the "Link Type:Merged into code" > Hit ok without doing anything > Hit Ok to close the window..... Somehow this works and you don't necessarily have to re-add your swcs.
I have also noticed this problem. However, restarting Flash Builder and then doing a "Clean Project" has always worked for me. But you have to restart Flash Builder before doing the clean. I would definitely prefer Flash Builder to not cache .swc files even if it does take longer to build.
I scoured Flash Builder for some kind of cache option I could turn off with no luck.
This problem also exists with .swf files and the [Embed] tag.
I put this out there not expecting to ever get any replies so thank you very much for commenting.
The solution of 'dirtying' the link type is what I have been doing, I randomly stumbled across this I don't know how, but it's the least interruptive solution I've found.
I still wish Adobe would comment on how to simply disable to swc caching... It is only a hindrance for me since I began doing more complicated projects :/
I put this out there not expecting to ever get any replies so thank you very much for coming by to help.
As phonfusionryan mentioned, the least invasive method to force it to refresh that I've found is to 'dirty' the link type by opening the link type panel in the build path.
I've also scoured for a solution and since I am on the verge of spending more money on flash builder I was really hoping to make myself feel better by seeing that there is a solution to this but I guess there hasn't been one yet :/
This way is better than re-open the whole Flashbuilder!! Solve the refresh SWC problem
Q:how to use FLA doing visual elements and publish SWC for flashbuilder to use?
1.open an FLA for doing visual.
2.open flashbuilder->File->flash professional project,and link the visual FLA file. (FB will generate a class file,ex:Main.as)
3.in Flash IDE properties panel,type the class name as the same as in FB(ex:Main),then click "edit class definition",choice flashbuilder to open. (It will bring you to the flash builder class you create on step2.)
4.test Main as in flashbuilder can really control the FLA.
5.doing the visual in FLA and set publishing setting for SWC.
6.now here,open your project for really working in flash builder now ,and set project properties->Actionscript build path->Library path,to like the visual SWC
7.every time when visual is modified,republishing the SWC,and go to flashbuilder->project->clean,then the SWC should refresh successfully. (or you can re-new the instance you called from the SWC)