addChild problem?!

Hi. I have trouble getting my background rectangle and my textfield added to the display list. The following structure is used for my files:

  1. newsticker.FLA - - 3a. & 3b.

This means that the Controller class initalizes both the GUI and XMLData classes.
The FLA is linked to the Controller class obviously (document class).

The problem is that my background rectangle and my text field will not show ( class).
If I link the FLA directly to the class (through the Document class settings) it works perfectly. I think its just a matter of getting the addChild thingy to work properly.


package {
	import flash.display.*;
	public class Controller extends Sprite {
		private var gui:GUI;
		private var xmlData:XMLData;
		public function Controller() {
			gui = new GUI();
			xmlData = new XMLData();

package {
	import flash.display.Sprite;
	import flash.display.Shape;
	import flash.text.*;
	import flash.xml.*;
	public class GUI extends Sprite{
		private var bg:Shape;
		private var tf:TextField;
		public function GUI () {
		private function drawBackground():void {
			bg = new Shape();, 0x999999, 100);, 100);, 0, 488, 50);;
			// add shap to the display list
		/* TEXT FIELD */
		/* create */
		private function createTextField():void {
			tf = new TextField();
			tf.autoSize = TextFieldAutoSize.LEFT;
			tf.selectable = true;
			tf.defaultTextFormat = defaultFormat();
			tf.text = "Visit";
			// register listeners
			tf.addEventListener(MouseEvent.CLICK, clickListener);
			tf.addEventListener(MouseEvent.MOUSE_OVER, overListener);
			tf.addEventListener(MouseEvent.MOUSE_OUT, outListener);
			// set position
			setPos(tf, 10, 10);
			// add textfield to the display list