[AS3][Flex] new Resize() on Sprite object

I’m making a resize function that has to resize a Project object that extends Sprite.

But I keep ketting a type coercion error:
[COLOR=“Red”]TypeError: Error #1034: Type Coercion failed: cannot convert AS:: Project@318ff89 to mx.core.IUIComponent.[/COLOR]

I’ve tried casting the Project object to an UIComponent or DisplayObject, but this also throws a TypeError.

[AS]var resizeTarget:UIComponent = new UIComponent();
resizeTarget = UIComponent(target.getChildAt(0));
var myResize:Resize = new Resize(resizeTarget);[/AS]

So basically should I try avoiding the use of Sprites in Flex? Or are there solutions?

Thx.