Skip navigation
XELAD111
Currently Being Moderated

trace()

Jun 12, 2012 6:48 AM

Hello, everyone!

I have an idea, but don't know if it is possible.

I want to make function trace() also send its answer to me (for example to some textField), not only to one of consoles. I suppose it may be extended, but how?

Please, give a hand.

 
Replies
  • kglad
    61,994 posts
    Jul 21, 2002
    Currently Being Moderated
    Jun 12, 2012 6:59 AM   in reply to XELAD111

    you can create a traceF() that executes trace() and assigns text to your textfield:

     

    function traceF(s:String):void{

    trace(s):

    your_tf.text=s;

    }

     
    |
    Mark as:
  • kglad
    61,994 posts
    Jul 21, 2002
    Currently Being Moderated
    Jun 12, 2012 7:43 AM   in reply to kglad

    the trace() function doesn't handle errors.

     

    use try/catch to direct (some) errors to a textfield.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points