Fade in fade out sencillo con expresiones

layerActual=thisLayer;
tiempo=0.5;
if (time>layerActual.inPoint && time < layerActual.outPoint )
{
if (time < layerActual.inPoint+tiempo )

{
linear(time,layerActual.inPoint ,layerActual.inPoint+tiempo,0,100)
}
else if (time>layerActual.outPoint-tiempo )
{
linear(time,layerActual.outPoint-tiempo ,layerActual.outPoint,100,0)
}
else
{
100
}

}
else
{
0
}

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>