Greetings,

I am able to create an effect to apply to alerts when I define the effect 
in MXML, but it does not work when I try to create it the effect and apply 
it in actionscript.

Can anyone tell me why this does not work?:

                var alertEffect:Sequence = new Sequence();
                var par:Parallel = new Parallel();
                par.children = [ new Zoom(), new Fade() ];
                alertEffect.children = [ par, new Rotate() ];
                
                StyleManager.getStyleDeclaration( "Alert" ).setStyle( 
"creationCompleteEffect", alertEffect );

The way this effect is created and applied to the Alert style is basically 
the the same (as far as I can tell) way the generated (from MXML) 
actionscript does it.

Thanks,

-Mark



Reply via email to