FESFlip hang
February 21, 2011 02:56PM
Hello,

i set up serveral show transitions and decide which effect to play:

		private function imageLoadingCompleted():void
		{
			// Need to stop
			effect.stop();
			
			switch (imageChangeReason)
			{
				case IMAGE_CHANGE_DEFAULT:
					effect.showTransition = photoShowTransition;
					break;
				case IMAGE_CHANGE_NEXT:
					slideShowTransition.preset = 2;
					effect.showTransition = slideShowTransition;
					break;
				case IMAGE_CHANGE_PREVIOUS:
					slideShowTransition.preset = 1;
					effect.showTransition = slideShowTransition;
					break;
				case IMAGE_CHANGE_COLOR_NEXT:
					effect.showTransition = flipShowTransition;
					break;
				case IMAGE_CHANGE_COLOR_PREVIOUS:
					effect.showTransition = flipShowTransition;
					break;
			}
			effect.show();
		}

But the flipShowTransition (FESFlip) hangs when played and the processor usage is high and flash player blocks for the duration of the transition.

This is the configuration of the flipShowTransition:

			flipShowTransition = new FESFlip();
			flipShowTransition.preset=1;
			flipShowTransition.focalDistance=120;
			flipShowTransition.smooth=true;
			flipShowTransition.smoothSegments=3;
			flipShowTransition.tweenDuration=0.9;
			flipShowTransition.tweenType='Strong';
			flipShowTransition.easeType='easeInOut';

The other types of transitions work fine.
Re: FESFlip hang
February 22, 2011 06:54AM
There is no stop method on flasheff. Probably you want to call removeAll or removeEffect method.
Re: FESFlip hang
February 22, 2011 11:22AM
Hello kneo,

thank you for the hint which just has solved another problem. To speed up FESFlip i had to disabled smoothing:

			flipShowTransition.smooth=false;
			flipShowTransition.smoothSegments=1;
Sorry, you do not have permission to post/reply in this forum.