How are assets loaded in flex / images wont update
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.
精彩评论