PDA

View Full Version : Reading Variables from asp.NET pages


Teriander
06-02-2005, 08: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.

madgett
06-04-2005, 06:52 PM
I don't see a call to the asp page. Did you put reply_lv.load(url); somewhere in your actionscript?

ihoxha
02-26-2008, 07:17 AM
can you tell me how to load asp.net variables into flash? I would really appreciate if you give me a working example. Thank you