Home Tutorials Forums Articles Blogs Movies Library Employment Press
Prev Previous Post   Next Post Next
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
 


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 07:05 AM.

///
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.