Home
> FlashEff 1 (Discontinued version)
> Topic
tweenDuration
Posted by beon
tweenDuration September 04, 2008 01:48PM | Registered: 15 years ago Posts: 6 |
I'm using this to do a flip show transition. But whatever i enter for tweenDuration it remains 2 seconds. Is this code correct of a bug?
import com.jumpeye.flashEff.symbol.flip.FESFlip; var myEffectBCK:FlashEff = new FlashEff(); myEffectBCK.tweenDuration = 1; myEffectBCK.showTransitionName = "com.jumpeye.flashEff.symbol.flip.FESFlip"; this.addChild(myEffectBCK); myEffectBCK._targetInstanceName = "bck";
Re: tweenDuration September 05, 2008 06:15AM | Admin Registered: 16 years ago Posts: 270 |
The tweenDuration property does not exist on the FlashEff component. Instead you need to access the tweenDuration property from the pattern object. You can access the pattern instance using the component's showTransition or hideTransition properties, depending on what type of transition you use. So your code should look like this:
var myEffectBCK:FlashEff = new FlashEff(); myEffectBCK.showTransitionName = "com.jumpeye.flashEff.symbol.flip.FESFlip"; myEffectBCK.showTransition.tweenDuration = 1; this.addChild(myEffectBCK); myEffectBCK._targetInstanceName = "bck";
Sorry, you do not have permission to post/reply in this forum.