Quantcast
Channel: Adobe Community : Popular Discussions - Using Flash Builder
Viewing all articles
Browse latest Browse all 70427

Compiler not embedding current assets / cache cleaning

$
0
0

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")]

          publicclass SomeGraphic extends MovieClip

          {

                    publicfunction 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


Viewing all articles
Browse latest Browse all 70427

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>