Skip navigation
casualpenguin
Currently Being Moderated

Flash builder doesn't reflect changes made to SWC files, how do I fix this?

Feb 19, 2013 9:49 AM

Tags: #flash_builder #swc #flash_builder_4.7

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

 
Replies
  • Currently Being Moderated
    Mar 6, 2013 9:48 AM   in reply to casualpenguin

    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.

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 6, 2013 11:04 AM   in reply to casualpenguin

    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.

     

    EDIT:

     

    This problem also exists with .swf files and the [Embed] tag.

     
    |
    Mark as:
  • Currently Being Moderated
    May 6, 2013 1:43 AM   in reply to casualpenguin

    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?


    A:
    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)

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points