Flash IF error
- Started
- Last post
- 3 Responses
- heavyarms
Someone please tell me why this isn't working.
trace(workLoad.link);
if (workLoad.link = "none"){
_root.btn.launch = "";
_root.btn._visible = false;} else {
_root.btn.launch = "LAUNCH PROJECT";
_root.btn._visible = true;
}The workLoad.link variable is output by the trace function as either none or a URL.
Also, the code works without the IF but it doesn't seem to be accessing the workLoad.link variable properly.?. It just doesn't show the LAUNCH button at all.
- unfittoprint0
(workLoad.link = "none")
sin it's within a conditional statement should be:
(workLoad.link == "none")
- heavyarms0
I should've known that. Thanks so much for the timely response!
- heavyarms0
Any idea why the same code wouldn't work in another MC? The workload. variables come from loading a CF page
using loadVars(). All the variables work and the trace is still a valid URL.