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
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
2 matches
Mail list logo