Hello,

i am trying to create a fade In alpha effect with 4 seconds, but there 
is a strange behavior happening.  If i put 4000 on the duration of the 
Fade effect, the image fades in on the first second, despite the 
effectEnd being triggered after the 4 seconds.

Check this, and wait until the Alert box shows up.

http://www.webfuel.pt/jsaleiro/FadeAlphaTest/FadeAlphaTest.html

As you can see, the image fades in on the first second, when it should 
take four seconds.
Do you have any idea why is this happening?

The code of the example:

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"; 
layout="absolute" creationComplete="fadeInImage.play()">
    <mx:Image x="74" y="22" source="@Embed('test.jpg')" id="imagem"/>
   
    <mx:Fade alphaTo="100" duration="4000" id="fadeInImage" 
target="{imagem}"  effectEnd="Alert.show('Ended')"/>
<mx:Script>
    <![CDATA[
        import mx.controls.Alert;
    ]]>
</mx:Script>
       
</mx:Application>

Thank you,

João Saleiro

Reply via email to