Hi
I am creating an Image in Script and then adding it to a tile.
I have added an event listner to the "complete" event of the image
that switches visible to "true"
I would like to add a showEffect to the image, but can't see how to do it...
Here is a snippet of code:
=================================================
var imgNewImage:Image = new mx.controls.Image();
imgNewImage.addEventListener("complete",imageCompleteHandler);
imgNewImage.source = "[Source URL of Image]";
imgNewImage.height = 75;
imgNewImage.width = 75;
imgNewImage.visible = false;
//add it to the tile
imageDisplayTile.addChild(imgNewImage);
=================================================
I looked in the docs and see that an image has a showEffect value,
which you call in the tag like this:
<mx:Image showEffect="{fadeIn}".... />
and you declare the effect like this (as per docs example):
<mx:Fade id="fadeIn" duration="1000" alphaFrom="0.0" alphaTo="1.0"/>
How do I assign my "fadeIn" fade effect to my imgNewImage in script?
imgNewImage.showEffect doesn't work.
Any ideas anyone?
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/