PDA

View Full Version : _level0. variable dynaic text


Dizzzzy
06-17-2005, 02:43 PM
Hi there, I've got a bit of a snag, I'm guessing it has something to do with the levels because I've added a dyn text box on the stage and having it load variables from a .txt file.
I'm using the instance name to associate the varible rather than the variable itself.

Problem is text box is displaying _level0.a1 where a1 is the variable lookup in the .txt file.

whats happenin ... anybody???

Gibberish
06-17-2005, 05:28 PM
if you are using the instance name for the text box you must do .text or .htmlText after the name. myTxtBox.text = a1;Or if html is set to true;
myTxtBox.htmlText = a1;

Dizzzzy
06-20-2005, 04:34 AM
this much was done...
all I simply coded was the following


in the action layer

loadVariables("text.txt",this);
a1.text=a1;

thats all folks...

i can't see whats happenin... the instance name is a1... and the variable its searching in the txt file is 'a1'... This is weird... anywayz same boring output
"_level0.a1"

HELP!

Dizzzzy
06-20-2005, 02:13 PM
btw... The File is Mx2004 pro someone referenced that script as being AS 1.0??? is this the conflict???