Can't make showDelay to work with FETAlpha

Posted by dududucon 
Can't make showDelay to work with FETAlpha
August 04, 2010 09:00PM
Hey Guys
ShowDelay doesn't work in my code. If I don't use effect.show() nothing happened. If I do use it, the effect starts right away. Any ideas?
Thx
fred

package com.globalworks
{
	import flash.display.MovieClip;
	import flash.text.TextField;
	import flash.text.TextFormat;

	import FlashEff2Code;
	import com.jumpeye.flashEff2.text.alpha.FETAlpha;
	
	public class test2 extends MovieClip
	{
		[Embed(source = '../Verdana.ttf', fontFamily = "Arial", mimeType = "application/x-font-truetype")]		
		public static const verdana:String;
		
		public var pic_mc:MovieClip;
		
		public function test2() 
		{
			var effect:FlashEff2Code = new FlashEff2Code();
			addChild(effect);
			
			var pattern11:FETAlpha = new FETAlpha();
			pattern11.preset=1;
			pattern11.groupDuration=0.1;
			pattern11.partialGroup='letters';
			pattern11.partialPercent=100;
			pattern11.partialBlurAmount=0;
			pattern11.partialStart=50;
			pattern11.tweenDuration=0.7;
			pattern11.tweenType='Quadratic';
			pattern11.easeType = 'easeInOut';
			
			effect.showTransition = pattern11;		
						
			var txtFormat:TextFormat = new TextFormat();
			txtFormat.font = "Arial";
			txtFormat.align = "center";
			txtFormat.color = 0x0099FF;
			txtFormat.size = 40;

			var _linkLabelText2:TextField = new TextField();
			_linkLabelText2.type = "dynamic";
			_linkLabelText2.antiAliasType = "advanced";
			_linkLabelText2.multiline = true;
			_linkLabelText2.embedFonts = true;
			_linkLabelText2.wordWrap = true;
			_linkLabelText2.autoSize = "center";
			_linkLabelText2.width = 200
			addChild(_linkLabelText2);
			_linkLabelText2.defaultTextFormat = txtFormat;
			_linkLabelText2.htmlText = "The quick brown fox jumps over the lazy dog";	
		
			effect.target = _linkLabelText2;
			effect.targetVisibility = false;
			effect.showAutoPlay = false;
			effect.showDelay = 10;
			effect.show();
		}
	}
}
Re: Can't make showDelay to work with FETAlpha
August 05, 2010 07:52AM
Hello Fred,

Try to set showAutoPlay to true and delete the line in which you call show method.
eg
"effect.target = _linkLabelText2;
effect.targetVisibility = false;
effect.showAutoPlay = true;
effect.showDelay = 10;"

Adrian
Re: Can't make showDelay to work with FETAlpha
August 04, 2013 09:29AM
O My G. Thank you...lifesaver
Sorry, you do not have permission to post/reply in this forum.