Hi,

I see an error in your could

alphaTo="100"

should be

alphaTo="1"

In as3, alpha is 0 -1 not 0 -100.

Peace, Mike

On 1/28/07, João Saleiro <[EMAIL PROTECTED]> wrote:

  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



--
Teoti Graphix
http://www.teotigraphix.com

Blog - Flex2Components
http://www.flex2components.com

You can find more by solving the problem then by 'asking the question'.

Reply via email to