Question about applying preset or settings in general

Posted by Icetoad 
Question about applying preset or settings in general
September 20, 2010 09:25PM
First off, i have been trying to setup a slide show from XML. I have the images coming in and the eff applied to the image.

I am currently trying out flash eff ( using the free version )

Here is the block of code

var myEffect:FlashEff2Code = new FlashEff2Code();
	myEffect.showAutoPlay = true;
	myEffect.hideDelay = 3;
                myEffect.preset = 3; 
	addChild(myEffect);
	myEffect._targetInstanceName = "mcSlideHolder";
	myEffect.showTransitionName = "com.jumpeye.flashEff2.symbol.sparkle.FESSparkle";
	myEffect.showTransition.tweenDuration = 1.5;

I tried adding the preset in the code above and when i try to test the movie i get an error:

1119: Access of possibly undefined property preset through a reference with static type FlashCodeEff2Code

Is this erro occuring because i am not using the premium or is it because of the code structure? IE: i need to setup show/hide variables as per the actionscript tutorial.

The reason i was using this format, i was hoping to be able to use XML to dynamically assign an animation i had in the library(not sure if that would work though).

Thanks!



Edited 1 time(s). Last edit at 09/20/2010 09:27PM by user442701.
Re: Question about applying preset or settings in general
September 21, 2010 11:33AM
Well, you get that error because there isn't any property preset on the flasheff component. You can set the preset property if exists only on the flasheff patterns.
Re: Question about applying preset or settings in general
September 24, 2010 04:30AM
that makes sense.

Thanks!
Sorry, you do not have permission to post/reply in this forum.