Re: [flexcoders] Re: Add effect dynamically

2009-01-20 Thread Josh McDonald
You can use Strings, but they might need to be fully qualified when doing it from ActionScript instead of CSS. You can also use obj.setStyle("moveEffect", Move); and obj.setStyle("moveEffect", myMoveInstance); Note that "myMoveInstance" would be an instance of mx.effects.Move, *not* an instance

[flexcoders] Re: Add effect dynamically

2009-01-20 Thread oneworld95
Haven't tested this, but this might be a way to accomplish it: var btn:Button = new Button(); btn.setStyle("mouseDownEffect", "glowImage"); btn.setStyle("mouseUpEffect", "unglowEffect"); Will try it in the morning. Didn't realize effects were set using styles. - Alex --- In flexcoders@yahoogrou