Delay time / hide transition through AS

Posted by ghitacostas 
Delay time / hide transition through AS
March 05, 2009 09:37AM
Hey guys, I'm trying to only hide my mc and it works perfectly. However, my problem is with the delay time. It hides right the way, it won't wait the delay I'm putting in? I'm sure i got it wrong somewhere. Any suggestions would be appreciated.

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

var myPatternHide:FESBlur = new FESBlur();
myPatternHide.tweenType = "Regular";
myPatternHide.easeType = "easeOut";
myPatternHide.tweenDuration = 3;

var myEffect:FlashEff = new FlashEff();
myEffect.hideTransition = myPatternHide;
myEffect.hideAutoPlay = false; //tried both values (true of false still it wouldn't wait the delay imput)
myEffect.hideDelay = 5; //here's the bugger, what ever number i put in here, it would play right through, hide that is.

var image:imageMC = new imageMC();
image.name = "image";
image.x = 0;
image.y = 0;
addChild(image);
addChild(myEffect);
myEffect._targetInstanceName = "image";
myEffect.hide();



Edited 1 time(s). Last edit at 03/05/2009 09:41AM by ghitacostas.
Re: Delay time / hide transition through AS
March 05, 2009 11:02AM
i believe your problem is at the end because you call hide method and before that you set autoPlay false
just set hideAutoPlay true and delete myEffect.hide() and it will work perfectly



Edited 3 time(s). Last edit at 03/05/2009 11:15AM by kneo.
Re: Delay time / hide transition through AS
March 05, 2009 06:41PM
works like a charm, thanks kneo!
Sorry, you do not have permission to post/reply in this forum.