Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

easy-dumping contents of a var into textbox

Status
Not open for further replies.

JonnyPT

Programmer
Joined
Oct 27, 2004
Messages
21
Location
US
in a function in my first scene, data is loaded into the var "T1Q1" many frames later I have a button that i want to load the value of that into a textbox named "question"
i have tried
Code:
on(release){
    question = T1Q1;
}
Code:
on(release){
    question = var T1Q1;
}
Code:
on(release){
    question = this["T1Q1"];
}

if i put something like
Code:
on(release){
    question = "text";
}
the text displays, so i know the text box is correct
what do i need to do?
 
i loaded the var like this

Code:
var T1Q1 = "some question?";

i don't even know if that might be the problem

 
might be overkill but if you use

_global.T1Q1 = whatever

in first frame then its available everywhere

probably the problem is with scenes

scenes = the work of satan


never use them ....they are only an authoring fiction and do not exist in the published movie
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top