Blog Archives

Frustrating Flex problems solved #2 – addChild

this.addChild(new Sprite()) looks simple enough doesn’t it? especially if you’ve been working solely in Flash AS3. But if you try this line within a Flex component, you’ll receive the error: ‘Type Coercion failed: cannot convert flash.display::Sprite@86cc0e1 to mx.core.IUIComponent.’ This is

Tagged with: , ,
Posted in Flex