Hi all,

I am new in this group, so hello to everyone :-)

I want to discuss here about SWFLoader component in Flex 3, and how to
access their contents... programatically.

Just for short:

I have an existing, empty SWFLoader object in my MXML code.

After some time, I just want to populate it using SWFLoader.load()
method with an external SWF movie, that has child MovieClips inside.

Right after call the .load() method, I am insterested (in the same
function) to access its children to move positions, etc. So, if I do
something like:

var myloader:SWFLoader= this.swfload;

and then

myloader.load("shelf2.swf");

and then

myloader.content["s2"].alpha=0.3;

It does not work at all. I tried myloader.addEventListener(...) with
several events, does not work.

The only way was to put that "myloader.content["s2"].alpha..." inside
a setTimeout function, to allow SWFLoader to take some time to load.
But you agree with me that this is so dirty.

any ideas? Thanks to everyone!


Reply via email to