private var backgroundImage:Image;
protected function init():void
backgroundImage = new Image;
backgroundImage.width = 733;
backgroundImage.height = 550;
have you tried addElement, this is the spark replacement for addChild, at the moment addChild is used for mx based parents and addElement is used for spark based containers.
that worked thankyou very much. i know it may sound daft but why are there currently two namespaces? will both of these be in the final release?
mx and spark co-exist nicely, Flex4 still relies heavily on mx and I suppose until such time as spark can do absolutely everything that mx can do and mx plays no part in connectivity between adobe products then we will have both. The thing is most spark components are 'lighter' than mx so whenever possible spark is the way to go.