I'm writing an AS3/Flex4 game engine, and I want to have a base class for any item that can be put in the scenegraph. I wondered if extending UIComponent is the right approach, but there seems to be a whole lot of internal stuff there I don't want to get tangled up in... if possible I'd have some separation between my engine and the Flex framework. And I'm not sure if UIComponent adds overhead?
My renderable base can do fairly arbitrary things but for now consists of drawing simple shapes like lines and other primitives.
What might make a decent architecture? And also, many game engines have a "render" method to redraw the whole scene... but I imagine in a Flex app I should play with the DisplayObjectContainer or Canvas, rather than roll my own?