Output text as class

Hi

I have got all my code working, including this display function, however “totwaste” does not appear in output text…

btw i am just using a textfield I have put on the fla manually…and yes I have called it “output”

i plan to create the text field dynamically, however it didn’t work :stuck_out_tongue:

 
public function display(totwaste:Number) {
  output.text = "You have wasted this much time..."+totwaste+".";
  trace("displaying")
  trace(totwaste)
 }

thanks for any help