I'm WAY new to AS3 and I'm looking to create a slideshow
driven by XML. Its a very simple XML file that can have 2 to 5
images in it.
I can get the images to load in, but am having problems on
the Event.COMPLETE function I created. I can't seem to reference
the target at all.. basically when the load is complete, I want to
retrict it to a 600 width or 450 height (depending on whether its
wider or taller).
I can get that information, but have NO idea how to adjust
the width and height of the target. I've tried event.target.name,
and event.currentTarget.name, etc... I have no idea what to do
I've attached all the code I have (just started it).
You can't manipulate the width and height of the actual
content you're loading, you have to manipulate the object
displaying this content. this can be either the loader's content
DisplayObject or the loader itself.
so where you say for example:
info.width = 600;
you should say
loader.width = 600; //or loader.content.width = 600;