Hi, You use the setStyle() method to apply effects in AS. There are a few examples in the doc: http://livedocs.macromedia.com/flex/201/html/behaviors_068_03.html http://livedocs.macromedia.com/flex/201/html/behaviors_068_09.html Are these the same ones that you saw in the help? Stephen
________________________________ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of David Buitenveld Sent: Saturday, January 20, 2007 11:21 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Trouble coding AS Effect Hi all - I am having trouble locating the proper way to attach an effect via AS code.. at a high level, I have controllers that are associated with views (Canvas descendants).. works well for me, but now I would like to have controllerA hand off control to controllerB/ViewB using a WipeDown effect.. in other words, user clicks something, a new canvas slides down displaying something else and so on.. if I understand correctly, I don't get to use Transitions unless I change my views to be ViewStates.. I first tried using the help examples, which embed the effect in a tag, <mxWipeDown duration="1000" id="myEffect"> but the problem is that this tag is embedded inside the components <mx:Canvas> tag and so setting the Canvas' showEffect is not working.. I can't even see how to set the showEffect prop in code.. Next, I tried creating a WipeDown in code, setting its duration prop and either setting the canvas.visible=true, OR calling wipeDown.play().. both fail - setting visible=true just ignores the effect, calling play seems to do nothing whatsoever.. tried attaching the canvas to the effect via effect constructor and also during the call to play(myCanvas).. same behavior (nothing).. this all looks like: var _wipeDown:WipeDown; _wipeDown = new WipeDown(myCanvas); _wipeDown.showTarget = true; // the default, I know _wipeDown.duration = 800; . . _wipeDown.play(); OR _wipeDown.play([myCanvas]); thanks for any thoughts - david buitenveld