Moved app specific code oue of the DisplayObject class.