开发者

How are assets loaded in flex / images wont update

开发者 https://www.devze.com 2023-01-24 08:41 出处:网络
Problem: I build a project with Flash Builder. I copied everything from the \"bin-debug\" directory to a server (including all images we use which are under /assets).

Problem:

I build a project with Flash Builder. I copied everything from the "bin-debug" directory to a server (including all images we use which are under /assets).

After I have updated the project, and a few images, i recopy the primary .SWF file (Main.swf) and everything under assets up to the server again.

Unfortunately, when I run the application, I am clearly running all of the updated code but the images have no updated.

The new SWF was definitely copied up as well as the new images (I can say that with 100% certainty), and additionally, I cleared my Flash Cache, so that's most likely not the problem either.

Question:

I think I'm lacking a fundamental understanding of how images are loaded in the application. We are using images in our application with the following syntax:

<s:BitmapImage " source="@Embed('/assets/images/home/bar copy.png')...

So are these images actually being compiled into the .SWF file that is produced ... or would that SWF file actually dependent on those images being present on the server's file system under /assets.

If you can point m开发者_如何转开发e to any resources or offer a basis explanation, it would be GREATLY appreciated. Thank you.


If the application is embedding images, that means they are part of the SWF. You probably don't need to copy the assets folder to your production server.

I'd try recompiling your project (Use a Flash Builder Clean) and test it locally to make sure things are updated, then move the SWF live and test there.

IF it still doesn't how up, you may be having caching issues, so be sure to force the browser cache to clear.

If it still doesn't show up, I'm at a bit of a loss.

0

精彩评论

暂无评论...
验证码 换一张
取 消