Thanks for the reply. Is there anyway to set an effect on an object dynamically without having to create a new effect for each image that is added? Won't this method result in a new effect being created in memory for each image, as opposed to having one already created effect that you "attach" each image to? My effect is a sequence too, so it would actually be multiple effects for each image.
If I am thinking about this incorrectly, just let me know. Thanks for your help. Karl --- In [email protected], "JesterXL" <[EMAIL PROTECTED]> wrote: > > 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: <[email protected]> > 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 --------------------~--> 1.2 million kids a year are victims of human trafficking. Stop slavery. http://us.click.yahoo.com/.QUssC/izNLAA/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/

