Teriander
06-02-2005, 09:04 PM
Im trying to do something that should be pretty simple.
*Objective*
A variable is set in my ASP.NET page to either English or Spanish when clicking on "English" or "Spanish" links on my page. I want my flash menu to list text in either English or Spanish based on the asp.NET variable. The asp.NET variable is called "Lang". Flash should read this variable and Goto a frame in flash that shows text in either Spanish or English.
This is what I have so far in my action script. Scene 1, Frame 1.
loadTextVariables(Lang);
var reply_lv = new LoadVars();
reply_lv.onLoad = loadTextVariables;
function loadTextVariables(Lang) {
if (Lang == spanish) {
gotoAndStop(20);
} else {
gotoAndStop(10);
}
}
stop();
What is wrong with my script? Flash doesn't jump to either English or Spanish when I click on the "English" , "Spanish" links that are in my asp.NET page.
*Objective*
A variable is set in my ASP.NET page to either English or Spanish when clicking on "English" or "Spanish" links on my page. I want my flash menu to list text in either English or Spanish based on the asp.NET variable. The asp.NET variable is called "Lang". Flash should read this variable and Goto a frame in flash that shows text in either Spanish or English.
This is what I have so far in my action script. Scene 1, Frame 1.
loadTextVariables(Lang);
var reply_lv = new LoadVars();
reply_lv.onLoad = loadTextVariables;
function loadTextVariables(Lang) {
if (Lang == spanish) {
gotoAndStop(20);
} else {
gotoAndStop(10);
}
}
stop();
What is wrong with my script? Flash doesn't jump to either English or Spanish when I click on the "English" , "Spanish" links that are in my asp.NET page.