syntax for variable condition
Flash MX 2004 Pro
Actionscript 2
Hi
Ive got a generic button which is produced dynamically for various variables. I want all of these buttons to go to the same point in the timeline except for 1 button. So i need to be able to check the variables and if the variable is "quicklinks" then it goes to a different point on the timeline.
I think i am making a mistake with my syntax in the variable recognition part straight after the if statement.
if (sectionName+"Section_"+numberVar+"Var")=="quickli nks"{
_root.gotoAndPlay("MAIN");
}
Im sure its a very simple correction required, like square brackets or something.
Any suggestions?
Many thanks
M