I'm using Loader class to dynamically load images from server, as it's
advised in "Loading content dynamically" of *
<Part5_ProgAS.html>*Programming ActionScript 3.0 - Flex doc.
But there's one thing I don't understand. In example there, we have :
|
|var pictLdr:Loader = new Loader();
pictLdr.load(new URLRequest(some_url));
this.addChild(pictLdr);
- and in every example, the Loader class is automatically added to a
certain container. How is that different from mx:Image? I don't have
image location at compilation time, it is created in runtime. Can I
point mx:Image source to computed url or not? If I have to use Loader
class then, is there any way to *copy* loader content into mx:Image I
have in my design? I can use mx:Image as a container and put Loader
into it, but then I will loose my Image properties, like automatic
scaling. What I am missing?
It is important for me, to see the image container in Flex Builder, so
when I show the screen mockup to my client, he will be able to see that
at this and this place there will be image loaded at runtime. Should I
use SWFLoader maybe?
--
| Sebastian Zarzycki / rat[tkin]
| [EMAIL PROTECTED]
| i'm a little lost in this postmodern space
| gg:#2692696 / icq:#264185739 irc :#tool #ot-oa / skype:rattkin