What is TRACE!

It may be a newbie question, but what is trace and how do i get it working?

I think it is similar to JS alert(); no?

If so how does it work?

Thanks in advance,

dfx

The trace() command displays an expression’s value in the Output window. This feature should only be used in the authoring environment (Flash IDE) as a debugging tool.

Example:
h88 = “something”;
trace(h88)//returns something
trace(“h88”)//returns h88

What do you mean by “authoring environment (Flash IDE)”?

And how can I operate in it?

Thanks++

*Originally posted by darkfx *
What do you mean by “authoring environment (Flash IDE)”?

I mean by “authoring environment” is you can only use this command in Flash Workspace, not online. (There is no output window online)

Ahhhhhh found it!

It is in the Flash player under “Window” > “output”.

Thanks for the help :slight_smile:

“authoring environment (Flash IDE)” means it only works when you have Flash open and youre editing your movie. Trace will not work on a website or in the standalone flashplayer/projector. So its like an ‘alert’ but everything is put in a single window (the “output” window) and only from within Flash itself. Try it out in Flash and you can see how it works.

All it is…

A message thing that can only come up in the flash window…

It teels you if he code is wokring…
Only if you put Trace under the code you want to see is working…