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

Frustrating Flex problems solved #1 – dropEnabled

I set up a drag-drop interaction between two components – from a custom ‘dragMe’ component i set up(extending Canvas) to a Tree component, but couldn’t work out why my Tree wouldn’t allow dragMe to drag over it. Until I started

Tagged with: , ,
Posted in Flex

line width

i was creating a dashed line function which basically drew a short line, then moved on a few pixels. i was trying to display this line with one pixel width. what i discovered was that if the dash was three

Tagged with: ,
Posted in Flash, Flex