Button params

Posted by fileas 
Button params
November 25, 2008 04:52PM
Hi - i've got the code below which applies a show transition and a button effect to a movieclip i have on the stage. However it defaults to the standard parameters and i can't seem to change it (like changing the glow colour from white??). I read that you're not supposed to add params directly to the flasheff instance although but this doesn't throw an error which is odd.

Any ideas what i'm doing wrong?

var myEffect:FlashEff = new FlashEff();

myEffect.showTransitionName = "com.jumpeye.flashEff.symbol.desertIllusion.FESDesertIllusion";
myEffect.showDelay = 1;
myEffect.waveSize = 50;
myEffect.waveIntensity = 150;
myEffect.blurQuality = 3;

myEffect.buttonEffectName = "com.jumpeye.flashEff.buttonEffect.glow.FEBGlow";
myEffect.rollOverStrength = 1;
myEffect.pressStrength = 2;
myEffect.alphaGlow = .8;
myEffect.buttonEffect.blurX = 10;
myEffect.buttonEffect.blurY = 10;
mcContinueButton.addChild(myEffect);
myEffect._targetInstanceName = mcContinueButton.button.name;
Re: Button params
November 26, 2008 07:35AM
If you set a non-existing parameter to the FlashEff instance will not throw any errors because the component is based on a dynamic class. However, it will not know what to do with those extra parameters and that's why your code has no effect on the effects. You need to set those properties directly on the pattern instances. Here are two posts that might help you out: http://www.flasheff.com/forum/read.php?23,911,923#msg-923 and http://www.flasheff.com/forum/read.php?23,929,929#msg-929.
Sorry, you do not have permission to post/reply in this forum.