Skip navigation
nicknameQuest
Currently Being Moderated

Compiler not embedding current assets / cache cleaning

Dec 5, 2012 7:25 AM

Tags: #air #missing #flash_builder #update #cache #3.5 #assets #clean #4.7

dear all,

 

In FlashBuilder 4.7 (beta + release), it consistently happens that linked assets aren't (re)loaded when compiling. Cleaning the project doesn't seem to help. Restarting FB, then cleaning + building mostly reloads the assets.

Is there a way to (manually?) clean all caches, the way a restart of FB does?

 

This question could be related to: http://forums.adobe.com/message/4809438#4809438 and http://forums.adobe.com/message/2921124#2921124

 

 

This seems reproducible:

1. Make 'assets.fla' file in Flash Professional, create one symbol with some random graphics, ActionScript Linkage Class set to 'SomeGraphicAsset', publish to 'assets.swf'

2. In Flash Builder 4.7, create new ActionScript Mobile project

3. Make new Class "SomeGraphic", link with previously created graphics in Flash:

 

package

{

          import flash.display.MovieClip;

 

          [Embed(source="/../embedded-assets/assets.swf", symbol="SomeGraphicAsset")]

          public class SomeGraphic extends MovieClip

          {

                    public function SomeGraphic()

                    {

                              super();

                    }

          }

}

 

4. In constructor of entry-point class for project add:

 

var somegraphic:SomeGraphic = new SomeGraphic();

this.addChild(somegraphic)

 

5. compile / debug project

6. open 'assets.fla' in Flash Pro. Change something to the 'SomeGraphicAsset' symbol. Publish to .swf file.

7. In Flash Builder, debug -> shows old file without updated graphics

8. In Flash Builder, clean project, debug -> shows old file without updated graphics

9. Close Flash Builder, reopen Flash Builder, clean project, debug -> mostly the updated graphics show.

 

Any feedback to make this more workable, or a way to fully flush all caches in FB are greatly appreciated.

It's crazy having to close / open FB every time a graphical asset changes in your project.

 

- this has been tested on 2 different Mac OSX 10.8.x computers, FlashBuilder 4.7 AIR SDK 3.5

- sample project can be downloaded here: http://dl.dropbox.com/u/608333/AssetProblemSampleProject.zip

 

hoping for some feedback,

Bart

 
Replies
  • Currently Being Moderated
    Dec 26, 2012 9:04 AM   in reply to nicknameQuest

    Still no solution for this?

    I have exactly the same problem. It also happens with .swc files added to the library path, and with external source folders - it's just a nightmare trying to get FB 4.7 to pick up any changes!

     
    |
    Mark as:
  • Currently Being Moderated
    Jan 1, 2013 4:08 PM   in reply to apman

    This is absolutely killing me too. I have to switch back to 4.6 tonight as 4.7 has really screwed my workflow up completely.

     

    New assets are not getting copied over, some folders are just randomly ignored, and to top it off, now my project won't even build:

    http://forums.adobe.com/thread/1127639?tstart=0

     

    Is anyone from Adobe even listening around here?

     
    |
    Mark as:
  • Currently Being Moderated
    Jan 15, 2013 8:23 AM   in reply to shawnb81

    Ya I'm getting the same. Anyone find a workaround yet? This is killing the workflow.

     
    |
    Mark as:
  • Currently Being Moderated
    Jan 22, 2013 4:19 AM   in reply to blastmasterflex

    Bump, this is really annoying...

     
    |
    Mark as:
  • Currently Being Moderated
    Jan 22, 2013 5:59 AM   in reply to cannyshammy

    Anyone found a work-around to this? Its pretty fundemental..

     
    |
    Mark as:
  • Currently Being Moderated
    Jan 23, 2013 12:12 AM   in reply to nicknameQuest

    this issue also happen with ANE, workaround for this is hit clean up button (make sure you close Flash Player before doing cleanup or it will blocked over wirte swf by OS)

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 23, 2013 12:08 AM   in reply to nicknameQuest

    Same problem.

     

    Just upgraded from FB4.6 on Win7 to FB4.7 (build 349722) on a new MacBookPro.

     

    We have 20-30 .swc files that contain art which are merged into code. When I change the contents of a swc it is really difficult to get FB to refresh and pick up the changes. Building clean, hitting refresh on the project or lib directory. Restarting FB then building clean seems to help. On FB4.6 Windows, we always had to build clean, but not restart all of FB...

     

    I followed a post about setting global swc cache off, but that did not seem to help either.

    http://forums.adobe.com/message/5010103

     

    This is killing my workflow -  any help would be appreciated.

     

    Mac OSX 10.8.4

    Google Chrome Version 27.0.1453.116

    Flash Player 11,7,700,203 installed (debug version)

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 2, 2013 10:48 AM   in reply to jshochet

    Any progress with that issue? It is getting really annoying now...

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 2, 2013 12:50 PM   in reply to mikatalk

    Come on Adobe, at least PRETEND like you give a ****.

     

    This is screwing with our workflow too. Getting really sick of manually copying in my TexturePacker Spritesheets into bin-debug because FlashBuilder is too stupid to realize something has changed...

     
    |
    Mark as:
  • Currently Being Moderated
    Sep 1, 2013 8:15 PM   in reply to shawnb81

    Adobe, 10 months since this original post with no reply and no fix.  I just restructured the files on a nearly done app in Fb 4.7 and now I'm out of business.  Can't compile because Fb can't find my files.  Nothing that I type in the Embed path works. 

     

    You guys need to get in the game or get out.  Tell all of your faithful developers that you just aren't going to commit to fixing major bugs; that we can't select movies from the Gallery Picker; that it's 2013 and your mobile development environment doesn't have a calendar control.  That you've punted GPU and GUI forms to outside developers.  I just subscribed to Creative Cloud and I'm pissed that the environment is such a half *** effort.  It's almost great but almost doesn't cut it.  Do the work!

     

    It's death by a thousand paper cuts.

     
    |
    Mark as:
  • Currently Being Moderated
    Nov 3, 2013 3:35 AM   in reply to nicknameQuest

    I'm facing this problem too and I use following workaround (still looking for a real solution):

     

    1. Start "Release build" of your project (File -> Export -> Release build)
    2. In "Export Release Build" window select options to fit your need and click "Next"
    3. In the next window you can notice that in "Package Contents" you don't have all "Included files".
    4. Stop Export Build wizard.
    5. Browse your project file system.
    6. You can notice a new folder called "bin-release-temp" containing files will be packaged.
    7. Populate this folder with missing file (pay attention to real paths).
    8. Start "Release build" again.
    9. When you come to point 3 you can notice all needed file in "Package Contents".

     

    It's just a workaround ... but it works for me (and I hope for you all).

     

    Regards

     

    Parantido

     

    p.s.: sorry for my really bad english.

     
    |
    Mark as:
  • Currently Being Moderated
    Nov 28, 2013 1:41 PM   in reply to nicknameQuest

    I am having the exact same problem. Looking in the Project properties > Actionscript Build Packaging > Package contents - only a handfull of the external assets are listet (not referenced in the code as they are loaded by data files)

     

    Here's an example.

     

    Folder contents:

    http://cl.ly/image/102W1F3E2H1b

     

    What Flash Builder thinks is in the folder:

    http://cl.ly/image/0A0N3y163P3x

     
    |
    Mark as:
  • Currently Being Moderated
    Nov 29, 2013 7:58 PM   in reply to nicknameQuest

    I've stopped using Flash Builder and moved to IntelliJ IDEA just because of this issue.  I no longer need a Creative Cloud membership for myself.  It's too bad cause I generally liked Flash Builder, but very glad I made the switch.  However, I still have programmers using Flash Builder so this problem is still impacting me.  I wish Adobe would step up and address the issue, or they will lose more of my money.

     
    |
    Mark as:
  • Currently Being Moderated
    Jan 21, 2014 4:39 AM   in reply to atarkinson

    This issue is a serious problem for me too. It's no good not knowing if your assets will be included in in the final release build.

     
    |
    Mark as:
  • Currently Being Moderated
    Feb 25, 2014 8:46 AM   in reply to nicknameQuest

    I Have the same issue!!! I have been working with FlashDeveloper without problems and now it not possible work with Flash Builder, Please SOLVE IT!

     
    |
    Mark as:
  • Currently Being Moderated
    Feb 25, 2014 8:51 AM   in reply to Rafael G.

    In the end I managed to work around this issue by dropping Flash Builder and moving to Intelligj. It's a shame that Adobe can't maintain the software that they have charged people for.

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 24, 2014 7:43 PM   in reply to nicknameQuest

    Having the same problem.  This is very basic and completely sloppy for a professional IDE.  This needs to be fixed yesterday.

     
    |
    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