# Output text as class

**URL:** <https://forum.kirupa.com/t/output-text-as-class/214847>\
**Category:** Uncategorized\
**Created:** [February 1, 2007, 2:06pm UTC](https://forum.kirupa.com/t/output-text-as-class/214847 "2007-02-01T14:06:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![randomagain](https://avatars.discourse-cdn.com/v4/letter/r/35a633/32.png) [@randomagain](https://forum.kirupa.com/u/randomagain)\
**Post date:** [February 1, 2007, 2:06pm UTC](https://forum.kirupa.com/t/output-text-as-class/214847/1 "2007-02-01T14:06:00Z")

</div>

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 😛

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

```

thanks for any help
