I think effects are set dynamically as style properties:

    var comp:Comp = Comp(createChild(Comp));
    comp.setStyle("mouseOverEffect", "childHoverIn");

- GOrdon


-----Original Message-----
From: Tom Fitzpatrick [mailto:[EMAIL PROTECTED] 
Sent: Monday, April 11, 2005 4:14 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Mouse effect on dynamic component



If I'm creating a component dynamically with createChild, how do I add an 
effect?

For an Effect named "childHoverIn", I tried a mouseOverEffect to a new 
instance of the component "Comp" this way:

createChild(Comp,"",{mouseOverEffect:"childHoverIn"});

The child is created, but the mouseOver effect doesn't work.







 
Yahoo! Groups Links



 





 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to