ActionScript 2.0 :: Compare The VAR Entered By The User In The Search Box With The DESCRIPTION From The XML

Mar 12, 2007

I started a search engine in flash for a small 15 pages website,and in these cases I think it's best to create an XML file as a database... I need to say that I am a beginner in using actionscript and Macromedia Flash as I used other software before. here is the progress so far: Search engine and here is the XML file to get an idea: XML file and the actionscript: Actionscript TXT or Actionscript PDF there are some words in Romanian in the search engine link

1).I need to compare the VAR entered by the user in the search box with the DESCRIPTION from the XML, what I was able to do is to compare if they are equal, that means you need to enter the exact description to get a result, what I need to obtain is for example to enter "goo" and still get the result for GOOGLE, or "gle" or whatever...

2). I also need to use the search button as a trigger and also the key ENTER, I was able to do it but not together, it was either ENTER or the button, I need to specify here that the function from the onRelease command of the button is a very complex one.

View 1 Replies


Similar Posts:


ActionScript 2.0 :: Find The Similar Characters That The User Entered?

Jan 10, 2005

I've two text boxes to enter two string. How can i find the similar characters that the user entered

For example

First text box : jain
second text box : claton

Two "a" appers on the two strings. That is in the first entry's second position and the second entry's third position. How to find out any similar characters inside the entry

View 3 Replies

ActionScript 2.0 :: Login Box To Appear Then Once The Correct User Name And Password Is Entered

Jun 14, 2010

I'm trying to create a simple login for a flash site written in AS2. This should be extremely simple. I don't want to use PHP and MySQL, that would be overkill. On the home page of the site, I want a login box to appear, then once the correct user name and password is entered, I want to gotoAndPlay(whatever) I have three text boxes setup with following instance names assigned:

[Code]...

View 2 Replies

ActionScript 3.0 :: Isolate Words Entered By User Into 'Input Text'

Nov 22, 2009

I'm trying to isolate words entered by the user into an "Input Text" (command). In a function that executes every time a key is pressed, I set a string, "newTxt", to the text entered.[code]This works fine; I'm able to check the string "newTxt". However, this checks the entire command rather than one word. When I replace line 2 with:[code]it freezes. In theory, it should add every letter until it reaches a space or ends, right? Could anyone find my mistake? Also, how would I go about checking for the second word (after a space)?

View 2 Replies

ActionScript 3.0 :: Register Button - User Login With Entered Username / Password

May 5, 2009

I want to make a file that that has a register button where the user can put in their name, username and password. Then I want the user to be able to be logged in with the username and password they put in.

View 9 Replies

ActionScript 2.0 :: Playing Specific Sound Files Based On Letters In User Entered Word?

Nov 19, 2006

I was thinking that it may be possible to create a primitive, yet usable actionscript based text to speech system for Flash movies (One that is platform independent).

Is it possible to right a series of actionscript commands that would play a collection of certain sound files based on what word or words the user has entered?

For example:

If the user types "Red Pen"

Can actionscript tear apart those two words and play sound files "Arr", "ee", "Dee", "Pee", "ee" and "EN"?

If it is possible, and if someone could help me out on it, then I'll start figuring out what phonetic sounds I'll need to record and program, and see if I can't build a simple text to speech program for flash movies.I have no immediate commercial application for it, and I don't plan on one.So if I can pull it off it'll be free to everyone, source code and all. Of course, it may be in my voice, but it shouldn't be hard to take what I plan to do and use it as a template for anyone else's voice recordings.

View 2 Replies

ActionScript 3.0 :: Compare User Inputted String To A Variable Already Created?

May 22, 2010

I am trying to compare a user inputted string to a variable already created.  When I do this with int it works fine but when I try changing it to strings I can't get it to work.

[Code].....

View 3 Replies

ActionScript 2.0 :: Search Box - When The User Types In A Term And Hits Submit, Go To A URL?

Sep 5, 2007

I need to have a search box, and when the user types in a term and hits submit, I want it to go to a URL and add "srch=<whatever is typed in the box>" to the URL address. In other words, if you type in "Cattle dog" as your search term, I want the URL to read "http:[url]..... This should be so easy. I have a TextInput box called "search_txt" and a submit button called "submit_txt".

View 14 Replies

ActionScript 3.0 :: Chatter Bot - Processes The User Input Text And Search For An Answer In The XML File

Feb 7, 2009

I am working in a AI project: a Chatterbot and it works fine. I work in webdesign, video, 3D and illustration and this personal project eats my free time You should set the answers and questions in the XML file called "bdenglish.xml", it contains a basic example. The bot will understand the new nodes. Actionscript(FLA) processes the user input text and search for an answer in the XML file. The bot can understand several ways to make a question. Also it can memorise the conversation subject if you use XML propierties (It is unfinished) The user can use ENTER key or the SEND button. The bot can know the genre of the user because it is male like default, but it search in a female names list. The output field answer is HTML text, also it support images, animations or sounds. The bot can chat in several languages. You can synchronize video with the answers (bot expression), I am woking in a basic function with video.

I am workin in a alternative answer motor, it would work with the XML. I want to use lipsync in the future for a talking version. How it works? - The bot converts the XML database to an multidimensional array.- The user writes a question - This input is processed in the AS code - The bot searchs in the multidimensional array - The first word must be found - The bot answer the question or it responds something if the question is not found I am not programmer and the AS3 bot was hard for me, but it works. I was trying get a good code and I am work in a better search function. I hope some criticism and comment from Kirupa masters! It is in my personal site:[URL]

View 2 Replies

ActionScript 3.0 :: Create Search Field / Where End User Inputs Text Into A Field And Flash

Aug 24, 2009

I want to make a search button on my site. I have a bunch of pdf files in a specific location on my site. I want to create a search field where the end user inputs text into a field and flash locates and opens the corresponding pdf file.

View 1 Replies

Professional :: Handling CLICK Event - If User Click Anywhere On The Stage The Search Bar Will Be NO Visible(OFF)

May 19, 2011

on clicking the Search Icon , a search bar will be visible (ON) if user click anywhere on the stage the search bar will be NO visible(OFF) OR user click on ICON again the search bar will be OFF but it Stage CLICK is triggered without clicking

[Code]...

View 1 Replies

ActionScript 2.0 :: Creating A "Tea/Benefits Chart" That Allows The User To Search For A Type Of Tea?

Mar 4, 2007

I'm creating a "Tea/Benefits Chart" that allows the user to search for a type of tea and find out what problems it can cure, or search for a problem and find out what types of tea assist with it. For this I've created 2 arrays - arrTea and arrBenefits - to store a list of the possible types of tea and benefits a user can find.

Code:

PHP Code:

var arrTea:Array = Array("lemongrass", "chamomile");var arrBenefits:Array = Array("anxiety", "cramps", "indigestion", "PMS"); 

For example, if the user searched for "chamomile" the Chart might return "anxiety" and "indigestion". If they searched for "cramps" the Chart returns "lemongrass".

View 8 Replies

Web Development :: Web Development - Search For All Tagged Photos Associated With User Some Id I All Of Facebook Users?

Nov 3, 2011

I'm using the the Adobe ActionScript 3 SDK for Facebook Platform to get all the tagged photos of the current user. Is this possible?

I've tried this:

FacebookDesktop.api("/"+uid+"/photos",getTagedPhotosHandler);

But that only gets me the photos belonging to that user.

View 1 Replies

Media Server :: End User Search Media Files?

May 22, 2010

If an end user wants to view a certain file on the server but does not know the file name how can they search/locate it?As an administrator I have access to the VOD folder, but end users do not have admin rights.How does a user find the file they are looking for?

View 4 Replies

Actionscript 3 :: Dictionary Mechanism - Dictionary Use Id To Compare If The Two Keys Are Equal, Not Use Strict Equal(===) To Compare If The Key Is The Same?

Aug 27, 2010

The dictionary use strict equals(===) for key comparison, how to change the comparison, so I can use my standard for comparison, for example, I have a class named Student:

class Student{
var id:int;
var name:String;[code]....

I want Dictionary use id to compare if the two keys are equal, not use strict equal(===) to compare if the key is the same.

View 2 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 1/2 :: How To Add Description Tag

May 24, 2009

How to add description tag.I have an xml file that loads the pictures, but I want to add a description tag for each picture. Below is the xml file for this.add a description tag that would work?

<?xml version="1.0" encoding="UTF-8"?> <galleries> <!-- **&#160;&#160;&#160; Please read this information to learn how to add more galleries to your website. **&#160;&#160;&#160; **&#160;&#160;&#160; Here are all the galleries that you can use for the website pages. Each gallery has **&#160;&#160;&#160; an index or ID. With the help of index the gallery can be connected with the definite

[code]....

View 13 Replies

ActionScript 2.0 :: Add Description Tag?

May 24, 2009

I have an xml file that loads the pictures, but I want to add a description tag for each picture. Below is the xml file for this.

<?xml version="1.0" encoding="UTF-8"?>
<galleries>
<!--

** how to add more galleries to your website.

** Here are all the galleries that you can use for the website pages. Each gallery has

** an index or ID. With the help of index the gallery can be connected with the definite

** website page with gallery type.Also this page must have galleryID which should be equal

** Each gallery consists of the list of images. Each image has and url parameter and also

** width and height parameters that define dimensions of the box for the image.**

** It is recommended to use an XML editor to make changes to this file because it�s less

** possible to make an error in the markup which can cause a not working website.

** The recommended size for image_icon=333x333 px.
-->
<gallery id="1" name="nature">
<image image_icon="22598_nature_icon_15.jpg" image="22598_nature_b_15.jpg"/>[code]....

View 5 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

IDE :: Add A Title/description To The Image?

Jan 19, 2009

I have the 3dwall feature - but i don't know how to add a title/description to the image. I have followed the instructions, - I don't understand what it is asking me to do.

View 3 Replies

Popup Item Description Windows?

Aug 5, 2011

how can I make a windows popup when I put my mouse cursor over a item? The popup should display the item name and it's characteristics. When the cursor rolls out fo the item, the popup windows disappears.

Is there a function in as 3.0 that does this?

View 1 Replies

ActionScript 3.0 :: Parse Image Description From XML

Aug 27, 2009

I've modified a flash movie that displays images in a slider control. When the user mouses over the image I display a tooltip. The problem is I cannot figure out how to parse the Description(desc) out of the image tag in XML to display as the tooltip text. Heres what I want the image tag to look like:[code]In the actionScript how could I simply parse out the description to pass in as the tooltip text?

View 1 Replies

Flex :: Method Description In Code?

Sep 16, 2011

I am new to flex and am using flex builder 3 , many a times code assist shows a lot of function but i am not sure what these functions do. How can i configure flex builder so that it also shows descriptions of the methods like the one we get in java.

View 1 Replies

ActionScript 3.0 :: Get Page Description With ExternalInterface?

Dec 2, 2009

I'm having a hard time finding a way to get the html page description into my flash, using the ExternalInterface. I'v tried this:

ActionScript Code:
var pageDESCRIPTION:String;
var metas:Array = new Array(ExternalInterface.call('window.document.getElementsByTagName("meta")'));

[Code].....

View 2 Replies

ActionScript 2.0 :: Create A Rollover Description?

Jan 6, 2006

how to create a rollover description whereby when i rollover a button a description box pops up at the bottom which either scrolls information or shows shows some text.

I've created my buttons and have used "hover captions" which have worked perfectly, however i would like a description box at the bottom of my button so when i rollover the button some text scrolls or just displays a box where i could put a lot of text.

View 4 Replies







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