Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Search Field



hi everyone,
i wanna make a search field in flash which connected to SQL data base sever
is it possible ? or it's just illuision to me !
thx for ur time



FlashKit > Flash Help > Flash ActionScript
Posted on: 08-04-2005, 06:32 AM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Flash Search Field - Atomz Search
I currently use Atomz for their search engine. A clients site as of now is all HTML, however I am buidling some flash elements which will incorporate a simple "search" field and submit button.

I will include the HTML, however I am unsure how to make a form in Flash to be able to include the hidden fields, etc. I hope this makes sense, and thank you in advance!

<form method="get" action="http://search.atomz.com/search/" name="search">

<input name="sp-q" class="textbox" id="sp-q" value="Search" size="15">
<input type="hidden" name="sp-a" value="sp1002ad5d">
<input type="hidden" name="sp-p" value="all">
<input type="hidden" name="sp-f" value="ISO-8859-1">

<input type="submit" name="Submit" value="Submit">
</form>

If someone could create a small file, or let me know where to place what code where, please let me know. Any help is greatly appreciated! As well, if you have paypal, I can send a little something for the help!

Search Field
How do I make a search field? When I say this I mean one of those ickle input boxes where you type stuff, then click search and your results are shown on your screen.

Cheers.

Search Field
Hi every one,


Any idea how to create a search field for the flip book which accesses data from XML?

I want to highlight all the appearences of the word at once which is searched?

I have the code of text finder but it searches and highlights the word one bye one. I want them to be highlighted altogether.


Pls help!!!


Thanks,

Trupti

Search Field?
I'm trying to sort out a "search tool" in one of my movies but not sure how I could do that so users can search for particular words inside dynamic text (or other) and also have that word highlighted in the swf?

Has anyone done this before?

Y

Search Input Field
I am trying to create a search feature for my site. I want to be able to input the search terms on my site and when the button is pressed, the term will be entered into Amazons search field and queryed. I can get all the way to the cursor being placed into Amazons search field but it stops there. The variable for my input text field is holding me up. So, how do I dertimine what needs to be put as my variable?

Creating A Search Field ?
Does anyone know if its possible to create a search box in flash, so that it will take the user quickely and easily to the information they require depending on what they type in the box?

Or do you hav to use a database or PHP or something along side for it to work?

Search In Text Field
I want a search in dynamic text field. I find this code of Jesse, but i don't know how to make it work. Any helps? If the textField has the searchWord, the text is highligh in red, else the "not found" text appear in the search result.

Quote:




In the code below the
(which is the standard newline delimeter for Flash) spearates one paragraph from another:

ActionScript Code:
searchWord = "bleh";
longText = "Paragraph one is blah blah blah
Paragraph two is bleh bleh bleh
Paragraph three is blah bleh blorg";
longAr = longText.split("
");
resultsAr = new Array();
for (var j = 0; j<longAr.length; j++) {
if (longAr[j].indexOf(searchWord) != -1) {
resultsAr.push(longAr[j]);
}
}
This breaks a given string down into an array, then checks each array entry for the search word. Those entries which have the search word (not it's case sensitive) are added to the results array.

Search Field In Flash
Hello,

Right now I have a input text field with an instance name "searchfield" within an MC "search" and a button that onPress pass whatever a user enters in "searchfield" to a URL like this "http://www.blahbla.com/searchType=blahblah&query=STRING"

For example, if a user enters "bananas for monkeys" in "searchfield", it needs to be passed to the URL as: http://www.blahbla.com/searchType=blahblah&query=bananas+for+monkeys"

On the button I have this action: _root.search.loadVariables("http://www.blahbla.com/searchType=blahblah&query=","GET");

And this is as far as I got.

Help... =(

Atomz.com Search Field?
I was looking at this tutorial:
http://www.kirupa.com/developer/mx/atomzsearch.htm

It's about creating your own search field on your site in combination with use of the Atomz.com website.

The tutorial looked very easy and this would be a great solution for the current website I'm working on.

The thing is, when I go to the link http://www.atomz.com/search/trial_account.htm (given in the tutorial) I notice it is ded.

So I try to go to atomz.com and notice it's a different site, I signed up looked around for like 40 minutes and thougt, perhaps the forums would help!

I hope I was right

Flash XML Search Field
I'm trying to create a flash searchfield that refers to an xml file to do the search. My problem is that xml doesn't seem to allow specific characters like é, ê, õ, etc... my question is how do I get xml to ignore there characters and still work? Does anyone know the solution for this? I tried using CDATA, but it still doens't work.

Thank you in advanced for any reply that might help me figure this out.

Atomz Search Field ?
hello . just wanted to ask that will atomz search work if it is inserted into a full flash site !

Flash Search Field With Html
Is it possible to have a search field made in flash that searches an access database and displays the results in a html page.

Another question. I want to make a navigation menu and search field in flash and then insert it into a html page. But i don't know how to make it fit exactly in with the html page. How do you insert it into the html page to make it exactly fit as you want it.

Thanks in advance,
Darren

Search Dynamic Text Field
I have a dynamic text field connected to a scroll bar and I want to know if it's possible to make a search function so that someone could do a simple word search in that field?

Pass Search Field Into CFMX
I have created a search engine in CFMX. I now want to create the dynamic box in flash. Do I just created a dynamic text box in flash and then when the button is clicked send to searchResults.cfm using post?

Could this be the actionscript needed?

on (release) {
if (SearchField eq "") {
stop();
} else {
loadVariablesNum("searchResults.cfm", 0, "POST");
gotoAndStop(52);
}
}


Can it be this easy?

Thanks

Macromedia Search Text Field
I was wondering if anyone knew how macromedia made the search field highlight green when you click in it (in flash mx2004). I'm trying to make the textInput component highlight when someone clicks in it to type something (again in flash mx2004). Any help would be appreciated. Thanks.

Search For A Char In Atext Field
i am using actionscript 2 .i have a dynamic text field ,i want to search for a certain char in this field can any one help me
thanks alot

Search Text Field For Certain Character?
Hello!

My mission is to do some kind of textfield validation, IF there's a character from a-z AFTER a "."-character, you will get to the next page, and if a character from a-z is missing, a warning text will appear. How to get to the next page and how to show the warning text is already solved.

The thing I need help with is to search the textfield-content for a "." character and then search if there's a character from a-z AFTER it.

( My first thought is to break the content in the textfield into an array and then search the array for a "." and then use that number in substring.

The problem with that is that I cant do that in practice )

Thanks for any answers!

Search Text Field For Known Words
I have a glossary of terms using a dynamic text field with the text in an external text file. So far so good. The client wants a row of buttons that are the letters of the alphabet which when pressed will have the text field scroll to that part of the glossary. I got it working but only by hard coding in the line number to jump to for each button. Obviously when the external text file changes the line numbers I hard coded will be off. I need to find a way to search the text field for the first word in each letter's section ( which is known, the glossary starts each letter's section with "A...", "B...", "C...", etc. ) and return the line number. Any thoughts?

Search Field Inside Button
Hi Everyone.

Finally I've been compelled to post a question.. The last time I did was two years ago (but I was a guest, so I'm a re-virgin).

I realize that this may be posted somewhere, so if it is, please send me the link. I've been pulling my hair out!!

Is it possible to create a search button inside of a "button" symbol? aaaaaaand have it only appear on the "over" state of the button?

What I want to do is have an image and then when the mouse hovers over it, it reveals (over the image) a search field where you can then enter information and search.

I don't want the search box to be revealed when the mouse isn't hovering over it. I've tried alpha, everything.

Please tell me there's a way to do this. I'm losing my mind!! I know it's probably simple, but

Thanks for your help.

Search A Dynamic Text Field
How can I search a dynamic text field for the number of accurancy's of a particular word, then display how many matches I found.

Search Field Inside Button
Hi Everyone.

Finally I've been compelled to post a question.. The last time I did was two years ago (but I was a guest, so I'm a re-virgin).

I realize that this may be posted somewhere, so if it is, please send me the link. I've been pulling my hair out!!

Is it possible to create a search button inside of a "button" symbol? aaaaaaand have it only appear on the "over" state of the button?

What I want to do is have an image and then when the mouse hovers over it, it reveals (over the image) a search field where you can then enter information and search.

I don't want the search box to be revealed when the mouse isn't hovering over it. I've tried alpha, everything.

Please tell me there's a way to do this. I'm losing my mind!! I know it's probably simple, but

Thanks for your help.

Search And Remove Characters In Text Field
I got this to work, so I thought I'd provide it for anyone in need:


//In this example, I remove all characters that are not alphabetic

//put text into array of letters
letterArray = nameIn.text.split("");

//remove non-alpha characters from name
for (i=0; i<letterArray.length; i++) {
&nbsp;&nbsp;l = letterArray[i].charCodeAt(0);
&nbsp;&nbsp;if ( (l < 65 || (l>90 && l<97) || l > 122) && l != 32) {
&nbsp;&nbsp;&nbsp;&nbsp;letterArray.splice(i, 1);
&nbsp;&nbsp;}
}
//enter new string into text field
nameIn.text=letterArray.join("");

Search Field With A Lotus Notes Database
I can get this to work in HTML, here is the code for that.

<form action="http://server/Lotus/cd_directory.nsf/ViewSearchGeneric?CreateDocument" method="post" name="form1" id="form1" >
<p style="margin-top: "> <font size="2" color="808080" face="Arial, Helvetica, sans-serif">NatureWorks Directory Search</font><br />
<font face="Arial, Helvetica, sans-serif">
<input name="SearchString" size="25" />
<input name="ViewToSearch" value="Last Names" type="hidden" />

Now let say I use "Smith" for the item to be searched. The address field will display the following.
http://server/Lotus/cd_directory.nsf/Last%20Names?SearchView&Query=FIELD+Display_Name=s mith*

This is much different from the above code. How can I get the same results in a flash file? I've been working with the following ActionScript that someone gave me.

in root U place textfield with var=searchstring
on submit button :
on(replace){
getURL("http://server/Lotus/cd_directory.nsf/ViewSearchGeneric?CreateDocument" ","POST")
}


Thanks

Search For Words In An Input Text Field
Hi,

Does anybody know what code I need to search for certain words from a sentence in an input text box? I guess the code would need to search each word before it moves onto the next until it reaches the end of the sentence, searching for the words that I have stated. I am relatively new to programming and think this is possible so if someone could help me in the right direction, that'd be great.

Creating A Wesbit Icon For The Search Field?
I have a web site that i would like to have my logo appear in the the search field when you come to my site. Much the same as flash kits website..they have a logo in the search field of their site. I kow this isnt that hard to do i would really appreciate any help...of tutorial files anyone knows of thanks
BRady

Search From Text Field Using The Keyboard Enter Key
Hi,

I was mainly wondering what was the correct code to make the keyboard enter key work when I type into a text field the number to be searched?

Thanks,
Gary

Search From Text Field Using The Keyboard Enter Key
Hi,

I was mainly wondering what was the correct code to make the keyboard enter key work when I type into a text field the number to be searched?

Thanks,
Gary

Senocular XML Search Tutorial (search Query Case Sensitive)
Hi
I've just tried senocular's xml tutorials.

http://www.kirupa.com/web/xml/examples/searchbestof.htm

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.

Senocular XML Search Tutorial (search Query Case Sensitive)
Hi
I've just tried senocular's xml tutorials.

http://www.kirupa.com/web/xml/examples/searchbestof.htm

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.

Search Engine -user Can Search His Pictures With Keywords- HELP
I was reading about search engines and I came across a post. Being fairly new to flash I do not know how to develop this. I have a client who owns a small furniture store. I am setting up his site. He wants it to be all flash based. He has about 300 pictures of his products.I need to make a search engine in Flash so that the user can search his pictures with keywords. I read a suggestion that would fit my needs- create an array of picture names then use a loop to check if the keyword is in the array. I have been going through tutorials with no luck- can someone please help. Maybe start the code the person is talking about so I can just expand on that.

How To Build A Search Engine To Search Ur Own Flash Site?
Hey its Stuart here again.
How do you build a search engine to search ur own flash site?
Do you guys have any links?

How To Build A Search Engine To Search Ur Own Flash Site?
Hey its Stuart here again.
How do you build a search engine to search ur own flash site?
Do you guys have any links?

Search Page With Search Result From Text File
I want to make search page with search result In Flash, Data will be come frrom TXT file. can any body help my or give me source(FLA)??

Search In Flash Using Atomz Search Services
does anyone have any information on using atomz search service using flash? please reply....
thank you

Search Flash Content In Search Engines
Do you have any experiance how to optimize flash site for search engines?

If swf contains text an links, how can i constrain search engines like Google,... to find this?

Thanks

Search Flash Content In Search Engines
Do you have any experiance how to optimize flash site for search engines?

If swf contains text an links, how can i constrain search engines like Google,... to find this?

Thanks

Search Help Text Search In Flash
Hello, i'm realy stuck, and I need help... read dead end , i need to make a search on my site in flash, and also i need to explain ... what i need , example, whole site is in flash, and i need when someone wonna to find something just type word or sentence and then find on my site, but not google find or something like that... i wonna something easy, like CTRL + F, but label with find button... if anyone can help me or give me a guide i will be so happy, so thanks

sorry for my english... I hope it's readable )

No Search On Search Engines How To Do It
i i made some sites of well known people a site for their family party and they do not want all the world to see it just friends how can i have it on the net and stop the search engines from finding it
i saw it once one can code in no search or no index or something ,does anyone know
id appreciate it
thanks
faith

Calculating Input Text Field To Dynamic Field (easy Action Script)
hi. i'm trying to learn action script and i need help with this bit. i'm trying to use action script to calculate my brothers ages based on my own.

using flash MX. i have an input field called "my_age" and two dynamic fields called "eli_age" and "jacob_age". eli is 4 years younger and jacob is 6 years younger. i want to be able to enter my age in the "my_age" input field and then click a button that will calculate their respective ages.

here's the fla if i haven't been clear.

thanks for any/all help,
josh

Input Field Multiline> When Dynamic Multil Field Shows That Data From Mysql But No Wr
Hi,

A form with an input field that is multiline and called "description" send data to a MySql database (PHP).
Another Flash page contains a dynamic field that is also multiline and that displays the content entered in the form.
This dynamic field has a vertical scrollbar.
The problem is that the content displayed in the dynamic field DOESN'T wrap at all (the dynamic field is but on MULTILINE) and so you miss all the text that is larger than the dynamic field.
How can I fix this?

Thanks in advance.

Getting MySQL Field Data Into Dynamic Text Field In Flash
Hi, im having some trouble as to how to retreive data from a mySQL database field and putting the values into a dynamic text field in Flash... im quite new to this so any help will be appreciated! thanks.

Form Field Validation, Specially Email Field. Any Ideas?
Hi. I have a simple flash form designed for my website i have all things done but i am not getting the idea how to validate the "Email" field like you validate it in JavaScript for an "@" and a "." to be present in the finally submitted form. I need to do it in ActionScript as the other form validation is done in it as well. Please let me know if you can help. Thanks

[FMX04] AS - Showing Text Field As HTML Field With XML/CDATA.
Hey all -

Trying to get a text field in my Flash MX movie to pull from and XML file with CDATA tags to show as HTML. I've checked the box to render as HTML for the text data field... but I'm having problems with the Actionscripting.

The field from this line is what I need to recognize as HTML reading CDATA tags:

this.ref["textField"+i].text = subnodes[3].firstChild.toString()

I know I need to do more than just change it to ".html" instead of ".text" and have tried a couple things, but nothing seems to work.

Any help greatly appreciated!


Code:
//Create the XML Object
myXML = new XML ();
myXML.load(newXml);
myXML.ignoreWhite = true;

//Load XML file
myXML.load("PBintro.xml");
//Make a reference to current timeline
myXML.ref = this
// Parse XML and fetch
myXML.onLoad = function(success){
if(success){
var root = this.firstChild ;
nodes = root.childNodes
for(var i=0; i<nodes.length; i++) {
this.ref["Title_txt"+i].text = nodes[i].attributes.name
subnodes = nodes[i].childNodes
this.ref["Comments_txt"+i].text = subnodes[0].firstChild.toString()
this.ref["Link_txt"+i].text = subnodes[0].firstChild.toString()
this.ref["Link_txt"+i] = subnodes[1].firstChild.toString()
this.ref["holder_mc"+i].loadMovie(subnodes[2].firstChild.toString())
this.ref["textField"+i].text = subnodes[3].firstChild.toString()
this.ref["textField"+i] = subnodes[4].firstChild.toString()
}
} else trace("Error loading XML document")
}

[F8] MySQL Field Value Into Dynamic Text Field In Flash
Hi, im having trouble as to how to retreive a value in a field of a MySQL database and putting it into a dynamic text field in flash... i have no idea as how to do this... any help? thanks

Asp Database Field Loaded Into Dynamic Text Field -HELP
Hi all,
after much trial and error and still having troubles i thought i would ask people that maybe know what there doing.
Im using Flash 8 pro, and have placed textarea component on stage and gave it an instantce name, need to pull a single record from a record database using asp.

This is my approach but if there is an even easier way let me know.

I have created the following pages.
webpage.asp (end result web page that shows the text field to user)
script.asp( asp script that sends data back/forth to flash

i used the FlashVars param to pass a variable into the flash movie.
variable is named auto_num. im using this to then pass it back out of flash to filter the recordset.

then on the flash movie.swf. all on root level. i have the following code

var text_value; //(this is the value sent back from asp page string)
//not sure if i needed to declare it but did anyways.

var_sender = new LoadVars();
myData = new LoadVars();

var_sender.auto_number = auto_num //(auto_num is loaded flashvars param)

myData.onLoad = function() {
my_text_1.text = this.text_value
};
myData.sendAndLoad("http://www.********.com/script.asp", myData ,"POST");

on the script page i have a record set that filters for form variable named auto_number. all of code is in asp. I call a response.write to write the text_value back to the flash movie.

here is the heart of the script.asp code. not showing the record set filtering stuff.

<% Dim text_value
text_value = "text_value="&(Recordset1.Fields.Item("long_des"). Value)

response.write(text_value)
%>

but i get undefined and can never get the variables to load into the flash movie. i want to export as flash player 6 or 7. what am i doing wrong here?

So in a nutshell, i have an asp page that shows a record and would like to display the long description field of that record in a flash dynamic text box.

I can make it work by passing the entire long description from record set within the flashvars param but that seems like a real clunky way to do it pasing that much text within the flashvars param.

Does anyone know of simple database connectivity kits that extend flash for the semi-programmer guys?

Form Field Validation, Specially Email Field. Any
Hi. I have a simple flash form designed for my website i have all things done but i am not getting the idea how to validate the "Email" field like you validate it in JavaScript for an "@" and a "." to be present in the finally submitted form. I need to do it in ActionScript as the other form validation is done in it as well. Please let me know if you can help. Thanks

[F8] Date Field Component, Clear Field
ok when the date field intially loads it does not show the dat. This is fine.
If i date is then selected i would then like to be able to clear the date feild with a reset button so that it goes back to it's intail blank state.

Ho do i do that?

Thanks

Dynamic Field Vs Input Field
whats the question?

Storing Data From One Field To Another Field
Hi,

Can anyone have solution for this? I don't have much knowledge about flash scripting.

Let me explain my problem...I want to call data from some external source file (txt file or from any database) into flash (in a text field). Right now I am using txt file to store my data.
I am able to display the data in flash but if I am changing the location of the swf file it's not showing me the text in the flash file, as it need the source file (txt). I dont't want to carry the txt file whenever I am changing the location of the swf file.

I think this can be achived if I store the data coming from the txt file in some field in flash itself (hidden field).

Can anyone please help me...I hope I am able to make my problem clear..

Tulica

Copyright © 2005-08 www.BigResource.com, All rights reserved