Hi All!

Error "Implicit coercion of a value of type
com.my.controls:TextInputLabel to an unrelated type
flash.display:DisplayObject." appears in compile time when using
<mx:AddChild> override. This bug is difficult to reproduce. Sometimes
it happes, sometimes not. Initially I have found it when there was no
<mx:target> property tag within the child declaration:

<mx:AddChild>
    <mx:TextInputLabel />
</mx:AddChild>

I have added <mx:target>:

<mx:AddChild>
    <mx:target>
        <mx:TextInputLabel />
    </mx:target>
</mx:AddChild>

And bug disappeared, but only "for a while"...

Sergey.

Reply via email to