ActionScript 2.0 :: Search Data For A Last Name?

Nov 5, 2005

i need to be able to adjust the following code. I have too many people w/last names ending in "S," so i have to break it up into 2 groups: last names Sa - Sl, and last names Sm - Sz.

code follows:

if(lastname[x].substring(1,0) == "A" || lastname[x].substring(1,0) == "B" || lastname[x].substring(1,0) == "C" || lastname[x].substring(1,0) == "D" || lastname[x].substring(1,0) == "E" || lastname[x].substring(1,0) == "F" || lastname[x].substring(1,0) == "G" || lastname[x].substring(1,0) == "H" ||

[code]....

the data is accessed by selecting the options through a pulldown menu.

View 5 Replies


Similar Posts:


Actionscript 3.0 :: Search XML Data To Textbox?

Oct 2, 2009

i have something like this in my XML

Code: Select all<city_data>
<company name>Thunder</company name>
<address></address>

[code]...

I have 2 textbox in flash , what i need is when i type "45698" in the first textbox , "Thunder" will appear in the 2nd textbox.

View 3 Replies

ActionScript 1/2 :: Search Data From An Array?

Jun 16, 2010

You see, I would like to make a login page that retrieves the username and password from a text file. All login information is stored in an array, which looks like this:& Users =::: Name1 | username1 | passwords1 |::: Name2 | username2 | passwords2 |::: Name3 | username3 | passwords3 |I want to find in my arrayif the user is authorized. If it is authorized, I would like to send the name (Name1, for example) into a text box. How do I do?

View 3 Replies

Actionscript 3.0 :: Search XML Data To Textbox

Jul 24, 2009

every experts , i have something like this in my XML

[Code]...

I have 2 textbox in flash , what i need is when i type "45698" in the first textbox, "Thunder" will appear in the 2nd textbox. i look through google , and all is as2... How do i do that? anyone can spoon feed me?

View 5 Replies

IDE :: Search List Or Data Provider?

Feb 12, 2009

I am having trouble searching through a list component and/or dataprovider to see if an item already exists. Basically i am adding items to the list when a item is dragged on to the list. But i want to check to see if an item is already added so not to duplicate items. any ideas would be great.

View 1 Replies

Actionscript 3.0 :: Search XML Data To Display Picture?

Jul 29, 2009

i have something like this in my XML

Code: Select all<?xml version="1.0" encoding="ISO-8859-1"?>
<data>
<city_data>

[code].....

View 4 Replies

Data Integration :: Search Function For External Html Content?

Jan 22, 2007

i have got a Flash Projector which is to be deployed onDC/DVD rom. I am using an XML menu to load various chapters andsections of html content, images etc. The client is now asking forthe capability to search within the "books" content.Is there any way of doing this? I have found an Extensionthat allows me to search within a text field, but what aboutexternal content files?

View 3 Replies

ActionScript 2.0 :: Search From Access Data Base File In Flash

May 30, 2004

I am working on one CD presentation for chamber of commerce I have to make a search engine in this CD presentation. they have 8,000 company name address email website address and product details in Access data base can i make a search in flash MX or is there any possibility to search from XLS file

[Code]....

View 1 Replies

ActionScript 2.0 :: Senocular XML Search Tutorial (search Query Case Sensitive)

Dec 3, 2004

I've just tried senocular's xml tutorials. [URL] The search query seems case sensitive. How to make it accept upper and lower case characters. Actually i'm trying to make a search by myself by using the same code.

View 6 Replies

ActionScript 3.0 :: Create A Search Field To Search Keywords In XML File?

Sep 6, 2010

I am trying to create a search field in AS3 to search keywords in a dynamic text field of the same flash movie, where the text is loaded from an XML file.

View 1 Replies

Search Function To Search For Button Names?

Jun 8, 2009

I've started a project a while ago, so far it is almost done but there is something that I seem not to be able to do alone... I would like to add a search function which I don't know how to do.It will not be a normal search function so I am going to try to beak it down with an easy example:

Let's say I did a project that is embeded somewhere in a normal html page with a main menu from where you can get to different city maps (e.g. New York, Paris, Berlin). The maps are seperate swfs. On all those maps there are several buttons for historical sites (or whatever) with a mousover function and a link to a page with more information about that specific site (on html).the names of the buttons are always a letter and a number (New York: "N1","N2","N3"...; Paris: "P1","P2","P2"... instance name for P1 is p1_btn)

What I need now is a search field in the main menu where you can search for those buttons. Meaning if I type in "N2" and hit search it will take me to the New York swf and show me button "N2".

I know this might not make much sense like this but the actual version is quite different and more complicated context-wise. Therefore if possible I would like to leave it that way with the main menu, the linked swfs and the buttons.

View 1 Replies

ActionScript 1/2 :: Develop A Search Box That Will Search Through The Titles?

Nov 23, 2011

I've got a catalog of events in XML that is read into my Flash swf. I'm trying to develop a search box that will search through the titles, descriptions, presenters, etc. and return a list of related events.
 
Does anybody know a prebuilt AS2 system that does this? Or a good tutorial on how to go about this? I have googled, but haven't found much.
 
Here is my approach so far. When I load in the XML I create an array of the frequency of all the words in the nodes that I'm interested in. I figured it would be useful to do this once instead of each time a search is performed. I store that word index in another array with an index that will take me back to the original node. I was trying to figure out if there was someway to put it all into one index, but then I'm not sure how I'd link back to the original nodes.
 
When performing a search I look through the array of word indexs and check for the word and return another array of which original nodes contain the word.
 
If the search term isn't represented I generate all the permutations of the word that have an edit distance of 1 -- i.e. that have a letter changed, added, or deleted in any position. So for example if the search is for "the" the list of 1-edit would be ahe, bhe, ... tae, tbe,... tha, thb...athe, bthe,...tahe,tbhe, ....... he, te, th. If any of those are found it returns the results and puts up a "Did you mean xxxxx?" type of notice.
 
So far all of this is working rather well.
 
I'm still working on figuring out what to do if the user puts two words into the search box.
 
Also haven't figured out what to do with plurals and other "stem" type situations.
 
I want to make this pretty simple and easy for people to get the results they want.

View 5 Replies

ActionScript 2.0 :: Google Search Is Always The Same Except For The Search Variables At The End?

Jun 16, 2003

Its mostly the way google is set up that makes it so easy. I just happened to notice that the url for a google search is always the same except for the search variables at the end. http:[url]....So all I did was to add a textfield to get the variable to put on the end of the URL. (And a button to press)

on(press){
getURL("http://www.google.com/search?q=" + inputText);
}[code].....

P.S. I am going to put this into a thread too in case any one else is interested.

View 7 Replies

ActionScript 2.0 :: How To Search Use Code To Search

Dec 21, 2009

How do i search use the code to search?e.g. From Zoo, To City Hall.The zoo(hv already create the flash animate to city hall)but the problem is how to write a code to point to zoo(action script)!

View 2 Replies

Actionscript 3.0 :: Search Function - Search Through The XML?

Jul 14, 2009

I've got a flash movie that reads in an XML file and has an input text box. When you type something in the input box, I want to search through the XML and return the names of the elements that match whatever is currently in the input box, even if its only partially complete.The input box has an event listener of type Event.CHANGE on it and it runs the following function.

Code: Select allfunction searchWords(e:Event):void {[code].........

View 7 Replies

Arrays :: Search Multidimensional Array (Flash As3) Using Another Array For Search Criteria

Sep 26, 2011

Long story short: I want to search a multidimensional array in AS3 for (in this example) the location of 6 strings - all of which are stored in another unrelared array. Long story long: Once I get the locations (in the multidimensional array) of each string, i then know where it's located, and can access other atributes of that object - so if i found the string "box3" is located in element [5] of my multidimensional array, i can now target: multiArray[5][3] to return the 4th item stored (keeping in mind we're starting from 0, so 3 is the 4th position).

I can get this to work once, but I'm trying to set up a for loop based on the length of my basic string storage array - this array holds (in this example) 6 instance name strings - each time my for loop loops, i need to run a search in my multdimensional array for the next consecutive instance name. Then, once I've located all of them (and store the results in a new temporary array) I can dig around in each location for the info I need.

[Code]...

View 3 Replies

Animation After Xml Search

Oct 9, 2010

Is it possible to have a search in flash, reading from a .xml file, giving suggestions (those two i know how to do lets say) and then right after clicking that particular suggestion, or pressing enter on keyboard when typed -> an animation starts appearing beneath it lets say.[code]

View 8 Replies

ActionScript 3.0 :: Way To Search XML

Dec 21, 2011

When i search for the attribute (levelid) "3". [code]....

View 1 Replies

AS :: Search In A Array 2D?

Feb 25, 2012

The content of the array respuesta is: Africa, Europa, Norteamerica. The content of the array resultado is: Incorrect, Correct, IncorrectI created a Array to include both of them:

var contPre:Array = [ this.respuesta, this.resultado ];
and then:
for ( var row:int = 0; row & lt; contPre.length; row++ )

[code]....

View 2 Replies

IDE :: Word Search In As3

Jun 9, 2010

I am looking to develop an application to read in a list of 10000+ wordlist and create a function which efficiently and quickly checks if the word exists on the list.function shd be optimized to be called several times..

View 3 Replies

ActionScript 3.0 :: Search Through XML To Match ID?

Jul 9, 2009

I'm pulling news information from an XML file. The root node is "article", the child nodes are (for example) "date", "title", "caption", "copy", "link", etc.

Each time an article is added, a couple button (mc's) will be added to the stage. One button when clicked displays a movie clip and attempts to update the dynamic textfields within to display just the date and caption. The other button when clicked displays a different movie clip and attempts to update the dynamic textfields within to display all of the information noted above.

Being that this is dynamic and coming from an XML file, I want to avoid having to write if ... else statements for every new article (and each button).

Is it possible to search an XML document and scan for a name/ID match to create certain actions?

In other words, If I were to give an MC a name of "thisButton123" and also give an XML article node an ID attribute of "thisButton123", I could say something like if the currentTarget.name == any of these XML node attributes than pull that nodes content. Eliminating the need to compare/contrast names and ID's specifically.

View 4 Replies

ActionScript 2.0 :: Search Text In SWF?

Oct 13, 2009

I need to do a search for text in a swf file. I need a field to search, and put such text. He seeks to make the swf file and put in focus.

Like the FlashPaper does.

View 3 Replies

Make A Search Funtion In?

Mar 14, 2010

Flash cs4.

What I need to do is make a search function that will find items within the site it self.

Example...

if I have like 100 folder and all are numbered but I dont want to scroll I want to just type 86 and it should go there.

View 1 Replies

ActionScript 3.0 :: Search XML Via EX4 And Descendants

Feb 23, 2011

AS: 3.0 | Platform: Flex 3.I've been trying to figure this out for hours now and I've unable to decipher how to either correct or workaround this problem. Let me bring you up to speed. My user is doing a search, through a Tree component. To maintain the speed of the app, I convert the dataprovider to XML using the SimpleXMLEncoder (Of course this could be the start of my fall). Anyway, I have a list similar to this:[code]If that is the case, I would like the search to check those children and the grandchildren, and great grandchildren is any. So I've been trying to figure out the best method to perform this. Unfortunately, I haven't deviced a way to actually do it.I will need to be able to search the itemname and the parentid. So when I was using the descendant function I was doing this:[code]However using this method, it would never return a value, even though I know the value I am searching for is within the XML variable. So with that failure, I've decided to manually zoom through the XML to find what I am looking for. I am using a FOR LOOP to accomplish this.[code]

View 1 Replies

Flash :: Make A Search Box?

May 18, 2007

I am trying to make a search box in flash however no matter what I do I cant manage to make it work.[URL]...

View 2 Replies

ActionScript 3.0 :: Between Statement - Search For A Value That Is More Than 2 But Less Than 4

Dec 16, 2008

Does it exist in actionscript a between statement? If I would search for a value that is more than 2 but less than 4. Is there like a >2<4 statement I could do?

View 1 Replies

Professional :: Search In FLA File?

Jun 12, 2010

Is there an easier way to search for ActionScript in an FLA? I've inherited a Flash Project from a former co-worker, and have been searching for this particular source in my FLA file, but have not been able to find it:

[Code]...

I'm well aware that it's there _someplace_ and have tried going through every symbol listed in the project, to no avail. When running the movie in the debugger, I see it lsited under "Actions" for the button symbol "mpbutton". However, when "editing" that button, I see no such actionscript associated.

[Code]...

View 3 Replies

ActionScript 3.0 :: How To Search A String

Jun 17, 2010

i'm just trying to search a string!  how?! 
 
treeROOT = [];
// loop through all markers in the XML and place into ROOT array
for each (var xmlNode in xmlData.category) {

[code].....

tho i get an error here : and pretty sure it's from some bad use of .indexOf (because if i comment out that indexOf conditional, it works fine).i'm confused by the AS reference for indexOf, as it appears to be used for both Arrays and Strings.[URL]

View 3 Replies

ActionScript 3.0 :: Can't Search In Forum?

Jan 1, 2011

I really don't understand this forum.  I'm trying to search for "Flashthusiast.com" in the Flash section, but all I get is a bunch of icons in the left column with a second column that says: "in Flash".  No subject line, nothing.  Is this a bug?  Or, am I seeing something different than others?
 
Anyhow, when reading about creating in Flash in the user manual, I'm referred to Flashthusiast.com for sample AS3 code for button behaviors, but Norton Internet Explorer classify that site as dangerous.  Has anyone visited it recently??  Why would Abode refer me to that site if it is dangerous?

View 2 Replies

Professional :: Search Within A Project

Mar 25, 2011

I recently discovered the Project panel with the Flash application.  I'd like to start using it on a regular basis, but I can't seem to figure out how to do a multi-file search of all the AS files included in a Project.  From what I can tell, the search functionality within the Flash app only looks at the current document. Or is there a way to do a global search for a text string within a Project?

View 5 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved