PDA

View Full Version : how to use new AS3 Loader, Sprite and displayObject


pierrearinsal
02-10-2009, 11:23 AM
Hi.

Like said here http://forum.openlaszlo.org/showthread.php?p=41964 and there
http://forum.openlaszlo.org/showthread.php?p=41937, new AS3 uses flash.display.Loader object to load resources at run time.

once loaded, the resource is packed in Loader.content which is a flash.display.DisplayObject.

my question is how to use this downloaded resource with OL.
once loaded, if I do a oneImage.setAttribute('resource',url), it seems to re-download the resource, at least the first time it is called : after, Loader.load(url) and setAttribute('resource',url) load both from the cache.

so maybe after a loader.load(url) we just have to register the resource so OL knows it is available in the cache...???

anybody...?:confused: