Re: [Flashcoders] Question about AS3 components

2009-03-18 Thread Glen Pike
Eric E. Dolecki wrote: I have a component I am building that has a default size set with an "avatar" clip. When it's placed on stage by hand, it uses that dimension and it removes that clip. Great. I have overriden height and width mutators and accessors. When I resize the component on stage, it

Re: [Flashcoders] Question about AS3 components

2009-03-17 Thread Eric E. Dolecki
This is not for Flex, this is straight AS3 and using the IDE to generate the SWC. I am subclassing Sprite. On Tue, Mar 17, 2009 at 2:33 PM, Merrill, Jason < jason.merr...@bankofamerica.com> wrote: > I was asking about the required method overrides for AS3 components in > Flex to do some similar t

RE: [Flashcoders] Question about AS3 components

2009-03-17 Thread Merrill, Jason
I was asking about the required method overrides for AS3 components in Flex to do some similar things, and Muzak posted this here back on Feb 2nd - even if you're not using Flex, much of this is likely still relevant. Unfortunately, Adobe doesn't really have great documentation on this: Flexcoders

Re: [Flashcoders] Question about AS3 components

2009-03-17 Thread David Hershberger
What class are you subclassing to make your component? UIComponent defines a protected measure() function which some other internals use to figure out how big a component is. Maybe you need to implement an override of that? The docs show InteractiveObject having a "focusRect" property, but they

[Flashcoders] Question about AS3 components

2009-03-17 Thread Eric E. Dolecki
I have a component I am building that has a default size set with an "avatar" clip. When it's placed on stage by hand, it uses that dimension and it removes that clip. Great. I have overriden height and width mutators and accessors. When I resize the component on stage, it works correctly, but I ha