PDA

View Full Version : trace(escrevaAqui)


rfl
03-24-2002, 09:31 AM
hi
In my main time line i've 2 frames: one with a textbox as input text called "escrevaAqui" and a script frame with the following code:
"var escrevaAqui;". Both are on frame 1.
When i preview the movie and write something in this box, nothing appears in the output window.
What am i doing wrong?

Rupert
03-24-2002, 11:56 AM
I think you might need to use the debug window if you want to keep an eye on the contents of a variable as it changes. As I understand it the output window and trace() will not constantly update unless you loop it.

Cheers,

rfl
03-24-2002, 12:28 PM
how do i loop it?

red penguin
03-26-2002, 12:47 AM
If there is a button which you would have the user hit to set that variable, you can just trace it there...This is an input textfield, right?, so then you have named it "escrevaAqui"..now you'd need to set this input that the user enters to another var...

on(release){
myNewVar = escrevaAqui;
trace("myNewVar: " + myNewVar);
}

If you want "escrevaAqui" to appear in the field, you'd set that first...
escrevaAqui = "escrevaAqui";