That's a bug. It won't throw an exception in 3.0 version of the integration kit, but requires that you use 3.0.
Please file a bug for this issue. A workaround for 2.x would be to wrap the UIMovieClip in a UIComponent and run the effect on the UIComponent wrapper. ________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Stephen Roy J. Tang Sent: Tuesday, October 30, 2007 1:39 AM To: [email protected] Subject: [flexcoders] Re: Problem importing component from Flash CS3 Also, the fla given to me was using ActionScript to scale the object as it animated, when I import to Flex that actionscript doesn't execute, I need to add my own scaling code in flex to do it. Is there another way, or the actionscript is really not exported in the SWC? --- In [email protected] <mailto:flexcoders%40yahoogroups.com> , "Stephen Roy J. Tang" <[EMAIL PROTECTED]> wrote: > > Hi, > > I created a component using the Flex Component Kit for Flash CS3. (The > examples I followed are > http://lordbron.wordpress.com/2007/05/01/flex-component-kit-step-by-step / <http://lordbron.wordpress.com/2007/05/01/flex-component-kit-step-by-ste p/> > and > http://jessewarden.com/2006/12/integrating-a-flash-interface-into-flex-2 .html <http://jessewarden.com/2006/12/integrating-a-flash-interface-into-flex- 2.html> ) > > So, I'm able to import the component successfully into my Flex app. At > some point, I need to perform an effect on the component. > > However, when I do this I get an error "effectStarted is not a > function". The debugger shows me the ff code in EffectInstance.as: > > if (target is IUIComponent) > { > Object(target).effectStarted(this); > // Hide the focus ring if the target already has one drawn > Object(target).drawFocus(false); > } > > So, apparently, the exported component satisfies IUIComponent > interface but does not have the effectStarted method? Am I missing > something? > > To workaround this, I assigned dummy functions to those that threw the > error, ie: > > private function init() :void > { > p.effectStarted = doNothing; > p.drawFocus = doNothing; > p.effectFinished = doNothing; > } > private function doNothing(aParam:Object):void > { > > } > > (p is my component) Is there something else I should be doing? > > Thanks, > > Roy >

