I am loading images from an xml file into Flex and then into an Image Control. 
Once the xml gets loaded I use the data property to load the first image into 
the Image Control. How can I apply effects to the loaded image?  I can only get 
the effects to work if the image is initially specified in the <mx:Image> tag. 
I also tried using mainImg.hideEffect="WipeRightUp", however this throws an 
error.

|| DOESN'T WORK ||
mainImg.data="image1.jpg"
<mx:Image id="mainImg" x="273" y="133" dataChange="imgLoaded(event)"  
scaleContent="true" autoLoad="true" hideEffect="WipeRightUp"/>
mainImg.visible = false; // hide effect (should) start

|| WORKS ||
<mx:Image id="mainImg" x="273" y="133" source="image1.jpg" scaleContent="true" 
autoLoad="true" hideEffect="WipeRightUp"/>
mainImg.visible = false; // hide effect starts

Thanks for any and all replies.

Reply via email to