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




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.



KirupaForum > Flash > ActionScript 1.0/2.0
Posted on: 02-01-2004, 04:10 PM


View Complete Forum Thread with Replies

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

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.

HELP: Button Inside Text Field?
Good morning guys

I've got a text field where I load text and pic thumbs dynamicly from actionScript...

I've got the code which is working that when I click the thumb it will appear bigger pic next to the text field.
The problem is that I've got the stage sise small and I would like to open the big picture in new swf...

Code:
myTextBox.htmlText = "<a href="asfunction:imageLink,image1_large.jpg"><img src='thumbs/image1_small.jpg'></a><b>Prodám-</b> na MITSUBISHI PAJERO 2.8TD INTERCOOLER, 1999, : přední náprava 2,900Kč, zadní náprava s uzávěrkou 5,900Kč, <b>P</b>řevodovka 9,900Kč a jiné...<br><br><br><br><br>"+"<a href="asfunction:imageLink,image2_large.swf"><img src='thumbs/image2_small.jpg'></a><b>Prodam-</B> na JEEP R6V laděné výfukové svody na Off-Road 2.900Kč";
//
this.createEmptyMovieClip("container", 0);
container._x = 350;
container._y = myTextBox._y;
var activeImg:String = "";
//
function imageLink(largeImg:String) {
if (activeImg != largeImg) {
activeImg = largeImg;
container.loadMovie("largeImages/"+largeImg);
}
}
I am trying to do something like this???

Code:
function imageLink(largeImg:String) {
if (activeImg != largeImg) {
activeImg = largeImg;
}
}

function openNew (imageLink) {
getURL("flashimg/bazar/","_blank");
}
oh well.. and it is still not working...

Finding A Text Field Inside A Button?
I've created a SWF that contains a button. Inside of that button, I placed a Dynamic Text area using the text tool in flash.

Now in actionscript, I'm trying to find that text field by iterating over the children of the button, but unfortunately, I can't seem to figure out how.

The button itself is coming through as a SimpleButton class, which is not a DisplayObjectContainer, and therefore has no children.

Additionally, the button doesn't have a named property where the text field is.

Any ideas where the text field exists and how i can get to it?

Thanks!

Dynamic Text Field Inside Button
Hey guys,

I could have sworn I did this before but now I can't seem to get it to work.

I am loading some text from an xml file and I can get it to display within a dynamic text field. I need to create just a simple link that when you rollover it the text color changes.

I have tried to put the dynamic text field inside the but and set the up and down stated but i lose the text being loaded in dynamically. Here is what I am doing in a nutshell.

load my text from xml
I have a dynamic text field named d_Txt (if I leave this outside the button it works fine)
I have put the text field into a button named my_btn

then on the up state I have the d_txt with a specific color and then in the over state i have placed the d_txt field with a different color.

In theory I thought this should work, but it doesn't. I have also tried place the dynamic text field inside a movie clip and then adding onRollOver and onRollOut to the movie clip to change the text but that doesn't seem to work either.

Can anyone help me out? Thanks!

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

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

How To Search Text From Inside Swf's
Does anyone know how could I create a searchable site that uses swf files?

I was wondering if using XML or TXT files will be my only answer. Any examples out there?

Thanks

[F8] Can I Search Inside Another .swf Text?
Hi there..
I know I can load an external swf inside my main movie. But, can I search inside? (I remember reading something about "after it loads, all objects are available to actionscript).

Thank you!!

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

Flash - Search Inside Documents
Hi,

I'm developing one ebook, and i want to know if it's possible to make a search engine in flash that searches inside external documents, i would prefer in pdf documents since they are both from adobe, or is there any other format faster and easier to use in the documents (xml, doc)?

Best regards and thanks

Search Engine Inside Flash Movie
hello to everyone
i want to create an interactive cd, it will be loaded with text and i want to create a small search engine to make my users' life easier

i want to know if someone on the net has created something like this, or if you can give me advise, i think yes of course! since it's almost a 'default' feature for anything containing large texts

any link or suggestion will be very appreciated, thanks for your help

Button Inside Movie Clip Inside Scrollpane Doesn't Work In Xml
This is sorta odd but I'm hoping somewhat easy to fix. This is in AS2 and is the last problem I have in a very small project of mine.

I have button called button01 inside a movieclip called movieclip01 which is the contentPath for a scrollpane called scrollpane01. I'd like the button to work, and depending on the code it will work in the normal .swf but won't when I embed my movie into xml.

If I put the code inside movieclip01

button01.onRelease=function(){
_root.gotoAndPlay("Frame Name");
}

It will work when I test it but not in the XML. So what I want to do is go to the main timeline where the scrollpane is and write the code there. That is where I'm stuck.

I've tried scrollpane01.movieclip01.button01 and tried movieclip01.button01 and also tried scrollpane01.button01. Just for giggles I also tried scrollpane01.movieclip01 but none of that works

Last night I had a similar problem with buttons inside a movieclip that was on the root stage. They worked in the swf but not when I embedded the file - so I found this which worked (typed in the root stage)

movieclip01.button01.onRelease=function(){

Rotating Movieclip Inside A Button, Inside A Scrolling Menu Bar
Hi all,

I'm pretty new to actionscript, and I'm kinda moving along; up until now.

I've used the the infinite scrolling menu tute at kirupa.com, created my own button graphics, and have a nice scrolling menu. On the buttons, I'm adding an image (which seems to need to be a movie clip to work), so when you rollover the button, the image will spin.

The code for the spinning works. I've tested it on the root frame of a new movie, and in the button of the infinite scrolling menu movie. I've added the code to spin the image on the "over" frame of the button timeline. With the button scene open, I run "test scene", stop it, and move between the frames. When I advance to the rolloever frame, the image spins like a top, but when I test it from the root of the movie, the image does not spin. I've also added a color change "that works" from the root when you rollover the button, but the not the spinning image.

I've added the image by editing the button from the library. I select the image, and add the code inside an onClipEvent(enterFrame) action.

I've also tried adding the code to the keyframe of the root scene in layer 1, and tried calling the image by the full path (_root.one_button.buttons.button1.spin1._rotation= blah) thinking it needs to know exacty where the image(movie clip) is at in the heirarchy to no avail. I've even went back and gave everything an instance name up unto the button I'm trying all this on.


Any help would be appreciated, since I'm about ready to shed tears over this.



Thanks!

-Sam

Rotating Movieclip Inside A Button, Inside A Scrolling Menu Bar
Hi all,

This question is going ignored in some other boards, so I thought I'd try here....

I'm pretty new to actionscript, and I'm kinda moving along; up until now.

I've used the the infinite scrolling menu tute at kirupa.com, created my own button graphics, and have a nice scrolling menu. On the buttons, I'm adding an image (which seems to need to be a movie clip to work), so when you rollover the button, the image will spin.

The code for the spinning works. I've tested it on the root frame of a new movie, and in the button of the infinite scrolling menu movie. I've added the code to spin the image on the "over" frame of the button timeline. With the button scene open, I run "test scene", stop it, and move between the frames. When I advance to the rolloever frame, the image spins like a top, but when I test it from the root of the movie, the image does not spin. I've also added a color change "that works" from the root when you rollover the button, but the not the spinning image.

I've added the image by editing the button from the library. I select the image, and add the code inside an onClipEvent(enterFrame) action.

I've also tried adding the code to the keyframe of the root scene in layer 1, and tried calling the image by the full path (_root.one_button.buttons.button1.spin1._rotation= blah) thinking it needs to know exacty where the image(movie clip) is at in the heirarchy to no avail. I've even went back and gave everything an instance name up unto the button I'm trying all this on.


Any help would be appreciated, since I'm about ready to shed tears over this.

Attached is the zipped fla file



Thanks!

-Sam

Behavior On Buttons Inside A Movie Clip Inside A Button.
I would like t create an animated button with menu inside, how do i do it.

something like on here http://www.demarchelier.net

hidden menu on left side (contents) but on flash. I have flash 8. any tutorial that explain how to do that ?

Tween Inside A Button Inside A Movie Clip
Say I have 3 squares, from left to right, blue, red, yellow. The 3 squares together are a MC that move from off the stage on right, across the stage to line up on the left. Now say I want to make the left blue square a button so that when you roll over it, it has a orange frame and then when you press down on it it dims, and a larger version of it shows up above it. how would I do this? What i've done so far is made a button inside the MC, then on the down state of the button made a graphic button for the blue square, but it doesn't stay dimmed, and I don't even know how to make the larger blue square appear.

Is this too confusing?
please help.
thanks

Picture Inside A Text Field...
Hello,
I am pretty new to flash and I have encountered a small problem. I am trying to insert a picture inside a text field and have them both be together. and then I want to insert a scroll bar from the components menu inside the field, so that when I move the scroll bar up and down, the text moves as well as the picture inside the text field. The only thing is that I don't know how to put the picture inside the text field and make a part of my text so that it moves up and down with the text when scrolled. If you know how to do this, please help me, if you know of any other way to do this, please let me know, Thank you
Bach Dragon

Text Field (inside MC) Won't Display Anything
I have several dynamic text fields inside a MC. They all work except for one. I've tried embedding the font (see image) but it still shows nothing. I've done a trace, to make sure the variable has something in it, which it does. I've rechecked the path name a hundred times. The other fields work! This one doesn't. Here's the actionscript that feeds the text field (this exists on the "aircraft" movie clip" with an onClipEvent(load).

tag.VlarsoDisplay = Math.round(Math.sqrt(((560 - target._x)*(560 - target._x))+ ((300 - target._y)*(300 - target._y))))/10;

This code all works, and tag.VlarsoDisplay has a value, confirmed with TRACE. The path IS correct. Why on earth won't the value display in it's field?

Tabs Inside A Text Field
I'm NOT talking about the tab index, im talking about adding the ability to put tabs in a text field and then be able to pass it to a php file for a mailer program.

i have no problem storing line breaks or anything like that.

here's some as code im trying


Code:
myText.text = "Hello Gary,

What's Up?";
keyListen = new Object;
keyListen.onKeyDown = function()
{
//if tab is pressed
if (Key.getCode() == 9)
{
myText.text += " ";
}
}
Key.addListener(keyListen);
the problem is not passing the tabs to php. the problem is keeping focus on the text field and putting the edit cursor in the right place.

i only want this to work when focus is set on the text field. you have to click outside the text field to exit focus.

if someone knows how to diable tab from changing focus that would be helpful!

thanks

Pop-up Link Inside Text-field.
Hi! Is it possible to make a pop-up link inside a textfield i flash?

I've got this guestbook which loads the text using php. But it quickly fills up... so I want to have a link at the bottom of the textfield opening a pop-up window containing old posts. I tried using a javascript pop-up function, but it wouldn't work.

Is this possible?

Pop-up Link Inside Text-field.
Hi! Is it possible to make a pop-up link inside a textfield i flash?

I've got this guestbook which loads the text using php. But it quickly fills up... so I want to have a link at the bottom of the textfield opening a pop-up window containing old posts. I tried using a javascript pop-up function, but it wouldn't work.

Is this possible?

Forcing Text To Fit Inside A Field
Hi,
I have an input text field, and a dynamic text field. When the user inputs more characters than will fit in the dynamic field, I would like the text to autosize so it will fit in the field. For example, if the user inputs 20 characters, but the field will only show 10 of them at normal size, how can I get the text to resize so that all 20 characters will display in the dynamic text field?

Thank you!

Buttons Inside The A Scroll Text Field
I want a scroll box that has buttons that can change from frame to frame. I have a list of 30 titles of poems and I don't want to put them all the page but be able to scroll down and select a title. Can someone help?

Position Of Certain Character Inside Text Field
Hallo everyone
I have TF align right (has to be) that's fed from outsource text file.(subject to change) I'm trying to find what is x position of first character so i can properly position TF in respect of other thinks.
-using MX
any thoughts would be appreciated. G

Having HTML Content Inside A Text Field
how can i have html content inside a flash file, particulalry inside text field? i can't use xml, since i don't know how, and since school doesn't want to use xml...

can anyone help?

Access Text Field Inside Movie
I want to address a text field ("/ann_input") which is located inside a mc ("/ann_mov"). How do I do that? This is what I've tried out already:



Code:
onClipEvent (enterFrame) {
if (ann_mov._currentFrame == 2 AND ann_mov.ann_input != "") {
this.gotoAndStop(2);
}
}
also:

Code:
onClipEvent (enterFrame) {
if ("/ann_mov"._currentFrame == 2 AND "/ann_mov"."/ann_input" != "") {
this.gotoAndStop(2);
}
}
- naturally, neither works. HELP!

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