473,788 Members | 2,735 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

actionscript: populate variables based on parameter

daJunkCollector
76 New Member
My code is posted below. I have function that is being executed from an external interface. The parameter is passed to the function based on an external html combo box.

I need the variables in the function to populate based on the paramter that is passed. In this example parameter1 will equal a State's name. Could you please provide with some recommendations :

Expand|Select|Wrap|Line Numbers
  1. function externalZoom(parameter1) {
  2.   stateZoom = true;
  3.   usa._xreg = variable1;
  4.   usa._yeg = variable2;
  5.   zoomMap (_root.variable3, _root.variable4);
  6.   stopButtons();
  7.   variable5._alpha=100;
  8.   countyGone = variable6;
  9.   fadeCounties (_root.variable6);
  10.   _root.stateLabel = variable7;
  11. }
As you can see, the Variables 1-7 will be different for every state.

Final Briefing:
Just to clarify, this function already exists in my code and I pass a parameter for each of the 7 variables in the function. I now have a problem because I can only pass one parameter (the State's name).

Thanks for any and all feedback.
Aug 17 '07 #1
1 1621
daJunkCollector
76 New Member
I am considering using a super long switch statement. Any feedback is still appreciated.
Aug 17 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
1963
by: Matt | last post by:
Hello, I am attempting to get a software prototype UI/demo built in Flash to talk with existing C++ (so I can exchange data and commands between the application-software already developed in the C++ source with its prototype UI/demo to be built in Flash). Can anyone provide examples or guidance for such an effort? More details:
1
2439
by: Yodel99 | last post by:
Greetings, I have a form (Form1) based on a parameter query (Query1). I want the value that the user enters in the parameter window to populate a field in the form. I've been able to use the following to capture the value if the qry is satisfied, and put it in a column in the qry. PARAMETERS value Text (255); SELECT DISTINCTROW ., AS Expr1 FROM Table1 WHERE (((Table1.lastname)=));
3
2700
by: Yul | last post by:
Hi, We are in the process of designing an ASP.NET app, where a user will enter some 'Customer ID' to be queried in the database. If the ID is valid, several stored procedures will be called to populate multiple webpages containing customer information. There isn't a one-to-one correlation between the stored procedure and a webpage. In other words, a webpage may have to refer to 1 or more DataTables to populate itself. Therefore, a...
114
7887
by: Jonathan Wood | last post by:
I was just wondering what naming convention most of you use for class variables. Underscore, "m_" prefix, camel case, capitalized, etc? Has one style emerged as the most popular? Thanks for any comments. --
1
1969
by: Adam Chapman | last post by:
Hello, I am trying to make an application with a flash interface which does calcultaions in the more powerful c++. Basically I want to be able to draw a shape in flash and do some structural analysis on that shape (it's for an engineering website). Im new to both flash and c++ but i have used other programming languages before.
0
1859
by: Vijayasekar | last post by:
Hi, I am quite new to this kind of implementation, would appreciate if I could get any help in this regard. I am in need of using parameters to transmit data from Java to SWF. Like... the ActionScript code should fetch the value from that parameter. For example: I am using a test.swf and am embedding it to the HTML as follows; <EMBED src='test.swf?uname=" + username + "' />
1
3150
by: jxt1303 | last post by:
Hello, I need to populate a listbox, based on the result from a parameratized query, which gets its parameter from the ActiveX Calendar control. So first, I don't know how to execute a parameratized query using VBA. Then also, the Calendar Control doesn't have a click event, so I don't know how to program it to requery everytime they click a different date. Help!! Thank you.
4
7362
nathj
by: nathj | last post by:
Hi, Well the title of the thread is the question. I have tried searching for this and after several days of getting nowhere with it I decided I would ask. So here's the deal. I am using Flash 8, I have a movie that reads information from an XML file. The trick is that depending on a selection on my web page I want the move to read a different XML file. This sounds simple enough right? I thought so, pass the variables over to the...
0
9656
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9498
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10177
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9969
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8995
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7519
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6750
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
2
3677
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2897
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.