Hi,

Sometimes owner isn't set until createChildren().

Have you tried using 'parent' instead of 'owner'?

Mike

On Tue, Aug 19, 2008 at 4:49 PM, bryancostanich
<[EMAIL PROTECTED]>wrote:

>   Hi all,
>
> I have a custom track for a slider control. in it i'm trying to wire
> up the change for the parent slider so that when the slider changes, i
> can do some stuff. i have this in my initialize() method:
>
> Slider(owner).addEventListener(SliderEvent.CHANGE, this.parent_change);
>
> however, when i run it, i get:
> TypeError: Error #1034: Type Coercion failed: cannot convert
> mx.core::[EMAIL PROTECTED] to mx.controls.sliderClasses.Slider.
>
> but the thing is, i stopped and debugged and i saw that the owner was
> of type HSlider. I thought, well, maybe there is an inheritance issue,
> so i changed the cast to HSlider temporarily and i still got the error.
>
> am i misunderstanding something here?
>
> thanks.
> -b
>
>  
>



-- 
Teoti Graphix, LLC
http://www.teotigraphix.com

Teoti Graphix Blog
http://www.blog.teotigraphix.com

You can find more by solving the problem then by 'asking the question'.

Reply via email to