So, basically I need to create a toggle.
I created a dynamic textfield named "alert", with the variable as "alert'.
I then created a text file named "alert.txt" simply containing the following:
alert=red
I have a label on frame 2, "red".
Here's the actions I have on my timeline:
stop();
urlLoadVar = new LoadVars();
urlLoadVar.load("alert.txt");
urlLoadVar.onLoad = function (success){
if (success == true) {
alert.text=urlLoadVar.alert;
gotoAndStop(alert);
}
}
The text field does indeed display "red" but it don't go. Thoughts?