How to set Tween length via AS?

Posted by mfulton 
How to set Tween length via AS?
January 30, 2009 04:46AM
I have a FlashEff object named "fe0" and it has no exit transition defined because the object will be onscreen indefintely until an event occurs.

After the event occurs, I want to tell fe0 to play the exit transition. Here's the code I'm using:

import com.jumpeye.flashEff.symbol.blur.FESBlur;

var myPattern:FESBlur = new FESBlur();

fe0.hideTransition = myPattern;
fe0.hideDelay = 0;
fe0.hideAutoPlay = false;
fe0.hide();

The problem I'm having is that I need to be able to set the tween duration for the exit animation. I cannot find any reference to this idea anywhere in the documentation... how do I do it?

Also... is there documentation for the pattern classes like FESBlur ? I presume they all have a common base class but where are the docs?
Re: How to set Tween length via AS?
January 30, 2009 08:54AM
Hello

Unfortunately there is not a specific documentation for every FlashEff pattern but you can very easily find out which are the parameters of any pattern. All you have to do is to open the FlashEff Panel ,click on "Show" or "Hide" tab and then select a pattern for example "FESBlur". All the parameters which are displayed below the selected pattern can be set using the code like this:

var myPattern:FESBlur = new FESBlur();

myPattern.tweenDuration=myTweenDuration;
myPattern.blurX=myBlurX;
myPattern.blurY=myBlurY;
myPattern.blurQuality=myblurQuality;
Sorry, you do not have permission to post/reply in this forum.