Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 06-02-2005, 08:04 PM   #1
Teriander
Registered User
 
Join Date: Jun 2005
Posts: 2
Default Reading Variables from asp.NET pages

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.
ActionScript Code:
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.
Teriander is offline   Reply With Quote
Old 06-04-2005, 06:52 PM   #2
madgett
is my last name...
 
Join Date: May 2004
Posts: 1,051
Default

I don't see a call to the asp page. Did you put reply_lv.load(url); somewhere in your actionscript?
__________________
Anything is possible with Flash, it's just a matter of inventing the possibilities
Certified Swfwizard
madgett is offline   Reply With Quote
Old 02-26-2008, 07:17 AM   #3
ihoxha
Registered User
 
Join Date: Feb 2008
Posts: 1
Default

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
ihoxha is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:24 PM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.