Pass the image's ID into the effect's contructor:

var e:Dissolve = new mx.effects.Dissolve(imageID);

----- Original Message ----- 
From: "Karl" <[EMAIL PROTECTED]>
To: <flexcoders@yahoogroups.com>
Sent: Friday, December 30, 2005 11:46 AM
Subject: [flexcoders] Setting effect via AS


I need to set an effect (hideEffect) on a new object
(mx.controls.Image) that I am creating via AS and the effect does not
seem to be playing when expected (hiding of image).

What is the correct way of adding an effect to an object
programatically? Is it treated like a property and takes a string of
the name of the effect?

object.hideEffect = "effectName";

I have not had success with any of the ways I have tried. Thanks in
advance for your help!

Karl






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links







------------------------ Yahoo! Groups Sponsor --------------------~--> 
Most low income homes are not online. Make a difference this holiday season!
http://us.click.yahoo.com/5UeCyC/BWHMAA/TtwFAA/nhFolB/TM
--------------------------------------------------------------------~-> 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
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