Re: [Flashcoders] instancing my own components (still new to AS3)

2009-01-28 Thread Gregory N
Yes, as allandt suggests, you should provide a default value for constructor param Unfortunately, it's not the only problem with components (at least in CS3) For me, the worst one is about [Inspectable] parameters (and their setters). As described here http://www.bit-101.com/blog/?p=1181 setters

Re: [Flashcoders] instancing my own components (still new to AS3)

2009-01-28 Thread allandt bik-elliott (thefieldcomic.com)
could you put your init() method call in a setter? On Wed, Jan 28, 2009 at 10:27 AM, Gregory N greg.gousa...@gmail.com wrote: Yes, as allandt suggests, you should provide a default value for constructor param Unfortunately, it's not the only problem with components (at least in CS3) For

Re: [Flashcoders] instancing my own components (still new to AS3)

2009-01-28 Thread Gregory N
could you put your init() method call in a setter? No :-) Actually, these [Inspectable] parameters and their setters are not a *functional* part of component. I mean that, if it's created via code (using constructor), [Inspectable] parameters are not used. However, if user has the component in