views:

270

answers:

1

Hello,

i just trying to learn basic flash programming skills, now i got a program that load an image from my local machine, and show it with uiloader component, code is something like:

var myImage:String = "picture.png"
var request:URLRequest = new URLRequest(myImage);

uiLoader.load(request);

it´s working fine, but when dynamically change the picture, i notice a flicker while loading, there is any way to avoid this flicker? i mean, like double-buffering or so.

Thanks.

A: 

I've seen a couple of blog posts on this subject...

http://jessewarden.com/2008/11/writing-a-caching-engine-for-flash-player.html

http://www.quietlyscheming.com/blog/2007/01/23/some-thoughts-on-doubt-on-flex-as-the-best-option-orhow-i-made-my-flex-images-stop-dancing/

Also a similar question was asked on SO here.

Hope that helps...

Richard Inglis
thanks, i will read these links.Also i read something about Loader object, seems that you can download all resources beforehand then i guess it should load images faster, somebody has any experience with that?
ignatius