-
WHAT DID I DO WRONG? I'm sure its an ez answer
Here is the problem I'm tiring to change the Var: name in this code below to "text123"
----------------------
Original
----------------------
loadVarsText = new loadVars();
loadVarsText.load("../../text/sd_text2.txt");
//assign a function which fires when the data is loaded:
loadVarsText..onLoad = function(success) {
if (success) {
trace("done loading");
//Now that we know the data is loaded,
//set the text content of the Text Field
//with the instance name "scroller" equal to the
//contents of the variable
_root.bad.text = this.Text;
} else {
trace("not loaded");
}
};
----------------------
New
----------------------
loadVarstext123 = new loadVars();
loadVarstext123.load("../../text/sd_text2.txt");
//assign a function which fires when the data is loaded:
loadVarstext123..onLoad = function(success) {
if (success) {
trace("done loading");
//Now that we know the data is loaded,
//set the text content of the Text Field
//with the instance name "scroller" equal to the
//contents of the variable
_root.bad.text = this.text123;
} else {
trace("not loaded");
}
};
----------------------
Any Idea why this isn't working?
-Cheers
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|