File it under Flex. Your workaround is probably ok
________________________________ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Stephen Roy J. Tang Sent: Tuesday, October 30, 2007 6:28 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Problem importing component from Flash CS3 --- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> , "Alex Harui" <[EMAIL PROTECTED]> wrote: > > 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. If I were to file a bug, it would be at bugs.adobe.com/jira? There doesn't seem to be a Component Kit category in the Project dropdown. Also, does filing a bug mean it's possible for it to become fixed in a future patch of Flex 2? Or only in Flex 3? > > > > A workaround for 2.x would be to wrap the UIMovieClip in a UIComponent > and run the effect on the UIComponent wrapper. Will there be any issue if I just continue using the workaround I've done? (i.e. assigning a doNothing function to those undefined functions) Thanks a lot. > > > > ________________________________ > > From: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> [mailto:flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> ] On > Behalf Of Stephen Roy J. Tang > Sent: Tuesday, October 30, 2007 1:39 AM > To: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> > 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 flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> <mailto:flexcoders%40yahoogroups.com> > , "Stephen Roy J. Tang" > <roytang.sub@> 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> > / > <http://lordbron.wordpress.com/2007/05/01/flex-component-kit-step-by-ste <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 <http://jessewarden.com/2006/12/integrating-a-flash-interface-into-flex- 2> > .html > <http://jessewarden.com/2006/12/integrating-a-flash-interface-into-flex- <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 > > >