Drawing board how to add text, shapes

Hi guys I’ve been hunting through the forum and tutiorials but still have some headaches.

(MX2004)
I have made a ‘whiteboard’, users can draw on it, change width of pen, clear it.

I need to:

  1. allow users to add text as well as lines
  2. allow them to add a circle or a square
  3. clear last stroke/shape
  4. save the drawing
  5. email it or print it

=== fixed now, see replies below ====

Thanks Canadian !
My users can now add lines, circles, squares etc.

Now I need to allow them to add text within the whiteboard.

So far I’ve tried using [COLOR=red]createTextField [/COLOR][COLOR=black]to add an input field at the mouse position, like this:[/COLOR]

_root.createTextField(“mytext”,1,_xmouse,_ymouse,300,100);
mytext.type= input;
mytext.multiline = true;
mytext.wordWrap = true;
mytext.border = true;
myformat = new TextFormat();
myformat.color = 0xff0000;
myformat.bullet = false;
myformat.underline = false;

   mytext.setTextFormat(myformat);

Which draws a blank field, now how do we type into it ?

Puzzled, Queensland.