Actionscript 3.0 :: Create A Sort Of Search Relevancy Within Flash?

Aug 19, 2009

I'm trying to create a sort of search relevancy within flash and actionscript 3. The goal is to have a person's search return results that match the most user input search terms. For example, if a person searches for "apple pie", I don't want pictures of just apples, and just pies to show up first. I have, what I believe is a good system so far. I basically go through each item in an XMLList (consider it to be all the items that will be searched), and see how many of the terms return true. I add this number to a variable I called "relevance", and then push it to an array.

So now I have my XMLList and matching relevancy array. My big question: Is there a way to sort my relevancy array numerically, and have the XMLList(or a temporary copy of it) sort to match the relevancy array? In other words, when my relevance array sorts itself, I want the xml list to copy the resorting.

View 1 Replies


Similar Posts:


ActionScript 2.0 :: Create Some Sort Of Loop To Search Though The String?

Nov 27, 2007

I have a string that looks something like this:

TestString - "1,0,0,0,0,0,1,0"

I need to create some sort of loop (I think) to search though the string and look to see if it contains any 1's.

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

ActionScript 2.0 :: "Search Listing" And "sort Name" Function In FLASH ?

Nov 16, 2005

My question is i need to do a "Search Listing" and "sort name" function in my FLASH cd rom. In this cd rom will have 1000 of names, A - Z of names,

1) user can search the name by typing it.

2) or, user can sort the name list by click A.

View 2 Replies

Create A Search Button In Flash .exe?

Oct 12, 2009

I am in need of creating a search button for my flash project. I have created a single .fla file and from that I publish a single executable file. Within this project are various amounts of information on diffferent frames. How can i create a search box on my maing frame that when inputted into it will search my project for the text entered?

View 2 Replies

Professional :: Create A Search Bar Within Flash?

Aug 9, 2010

I am trying to create a search bar within flash which will generate links to frames within my flash project based off of given text. I have found a flash project online which does almost exactly what I need, but it only allows for searching a single word rarther than a full term or sentence. It also gives no error message when no word match is found. I am not very good at actionscript or I would be able to midify myself. 
 
stop();
var testText0:String = "this is some test text one";
var testText1:String = "this is some test text two";

[Code]....

View 2 Replies

IDE :: Create A Search Field Using Flash 5?

Mar 20, 2002

create a search field using Flash 5. I am currently using the search robot, just like the kirupa website. On registering your website, they give you a HTML code, which you put inside the variables of the search field. So when the user types in what he's searching for, he clicks "go" and then the next page is "Powered by and then the results of the search.Now I wanna know how I can simulate this in Flash 5, with the search results displayed in a normal HTML file, once the "go" button is clicked.I am creating an input text field and then a button saying "go". How do I set the variables in the search field to look up the search robot?

View 4 Replies

Professional :: How To Create Search Engine On Flash

Mar 7, 2012

I do a catalog in flash (swf) and I need to put in an internal search engine to looking for the images by their part number. How can I do that?

View 1 Replies

ActionScript 2.0 :: Create A Flash Site Search Swf?

Nov 18, 2010

I'm trying to create a search box in a flash website. The search box will display contain a search text entry field and a search button. When information is entered into the field and the Search button is clicked, a movie clip containing a Datagrid will display resulting the Page name (clickable) and a few lines of text in the page.

I'm building this against a WP database using Flash8 / PHP / MySQL.

I'm experienced at developing Flash / PHP / MySQL websites (not using XML) that display MySQL results so I'm not a newby in this area, however, I'm new to having Flash input information and retreive results in a DataGrid

I already have a PHP script displaying the results from a search that works and now I need to complete the Flash frontend

View 3 Replies

ActionScript 2.0 :: Create A Search Function And Show The Results By Goin To That Particular Frame Within A Flash File ?

Sep 28, 2003

Is it possible to create a search function and show the results by goin to that particular frame within a flash file ?

The data is not dynamic....and it is not server/web based....

View 11 Replies

ActionScript 2.0 :: Create A Sort Of 'flex' Effect For A Box

Oct 17, 2003

I need to create a sort of 'flex' effect for a box, with a circle at each end. If on one side of the movie clip I want the end to go upwards or downwards towards the mouse. Sort of like rubber, and I need it to be anchored at the center, sort of like a piece of rubber that is held at the center.

View 14 Replies

ActionScript 2.0 :: Create A Multidimensional Array That Will Act As A Sort Of Archive.?

Mar 18, 2006

I'm trying to create a multidimensional array that will act as a sort of Archive.

I have 3 different values that are assigned to a single-dimensional array. This array, called currentarray, is very dynamic and changes often. But now I want to create a whole new array while saving the information from the first array, and then I want to be able to switch in between both arrays, loading them up, changing them, saving the information into the Archive array.

So basically, the Archive array must eventually look something like this:

archivearray = [[item1, item2, item3], [item1, item2, item3]]

Since I want to shorten the code as much as possible, I made it so that Item3 in the archivearray is the position of that group of items. In English, that means that the Archive array would be like this:

archivearray = [[item1, item2, 0], [item1, item2, 1]]

Still with me? Good. So my code right now is this:

archivearray[currentarray[2]] = currentarray

View 4 Replies

ActionScript 3.0 :: Create A Sort Of SMOOTH Transition Between Swfs?

Sep 6, 2011

ok so im trying to create a sort of SMOOTH transition between swfs.

the problem im having is, targeting a specific label when i need it.

what i mean is, i can target it fine by tpecasting my external as a MC, but...it doesnt give me the desired effect.

for example, i want it so that when a button is pressed, go and play the "outro" frame inside the external swf, at the end of that same external swf, theres an " end" label, when that label is reached. something happens etc.

my problem is that when i hit the button, at the time of that event firing, the "end" is null or rather undefined because it hasnt reached there yet and i get an error or if i do a if/else statement, then i get the else part firing off since again, "end" isnt reached yet when the button is pressed.

i dont know how to make it fire when the "end" label is reached.

i tried while loops but...no good lol. thing froze flash for a bit until it did fire, by then it was a mess lol.

heres my code:

Code:
stop();
var loader:Loader = new Loader();
var urlReq:URLRequest = new URLRequest("indexCoontentLoad.swf");

[Code].....

ive added a " here i get lost" comment to indicate the part im lost in/cant figure out how to write.

overall, what i hope to achieve is that when the "end" label is reached, something happens. else, just keep playing until it is reached.

View 2 Replies

ActionScript 2.0 :: Gallery + Sort By List + Sort By Thumbs : 3 XML Files?

Mar 25, 2005

I need help with page "Thumbs" (as first frame), page "List" (as second frame) and Image gallery (as third and base). So, every frame have one own XML file...When you choose some thumb or list line, you must came to this image in the gallery. Easy, sure.. but i don't know what Function exactly i need to use.It's one flash move, hence it doesn't work with getURL or loadMovie...Some exemple with 3 separate pages here: yuri.fr

View 1 Replies

ActionScript 2.0 :: [FMX] Create Some Sort Of Typewriter Which Loads Its Content From An External File?

Oct 31, 2011

I wanna create some sort of actionscripted typewriter which loads its content from an external file, but i can't seem to get the code to work properly!

This is what i got till now:

2 layers:
- one with a textfield called 'textbox'
- one with the actions

A textfile which contains: waarde=Wannaloadtextfromanexternaltextfile!

4 frames, in the first frame i load the textfile this way:

[AS]q = 1;
loadText = new loadVars();
loadText.load("data.txt",this);
loadText.onLoad = function(success) {

[code]...

The problem is that when i assign the value of "text" in the first frame this way : <-- text = "Wannaloadtextfromanexternaltextfile!"; --> (witout the comment tags ofcourse) the typewriter works fine but when i load the var from the textfile nothing happens, the trace works fine and displays the contents of the var but the typewriter displays nothing.

the weird this is that when i add this after all the code in frame 1 it works fine: text = "azerty";
But when i add this it doesn't: text = "a";

So when i overwrite the var with the azerty value suddenly it contains the correct value in the next frame, when i assign only one character to it the script doesn't work anymore.

View 3 Replies

ActionScript 2.0 :: Create A Sort Of Slide Show With Several SWFs And 1 Html Page?

Jan 31, 2008

Anyone know how I can go about doing this:

I want to create a sort of slide show with several SWFs and 1 html page. The SWF itself has FORWARD and BACK buttons (its a long story, but I can't just have FORWARD and BACK coded in the html), and upon hitting them, i would like the SWF to call another SWF to replace itself. (again another long story, but each SWF has a low size maximum, which is why I just cant make the entire thing one large SWF).

Annnnd, to make it all smooth and easy, I would like the forward and back buttons to be coded not with the specific SWF that they are calling, but rather with a function which will determine which SWF is currently displayed and then call the appropriate next or previous SWF from an array or list....

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

ActionScript 3.0 :: Sort An Array By Two Or More Sort Thingy's

Nov 27, 2010

I have an array that is structured like so.

[Code]....

Normally, I'd just like to sort the array alphabetically using the name field, which is easy enough using the following code. However, I'd like to create a radio button called 'loadedRadioButton' and when it's click on, I'd like to sort the array on the loaded value first(any items with loaded=true should be at the top, sorted alphabetically), then afterwards, any other items with loaded=false, sorted alphabetically should follow afterwards, how can I do it?

View 0 Replies

ActionScript 3.0 :: Sort Function - Sort The Video By Last Name

Mar 5, 2010

Here is a website that needs a sort function to sort the video by Last name. [URL] I would like to have a link that popped up videos sorted by last name. Please take a look at the following site for an example. [URL] When you click on seconds in the menu below, it opens a pop-up window that sort the videos in a certain way. If you are willing to,I will give you the source file of what it currently has on [URL]

View 1 Replies

ActionScript 3.0 :: Way To Create Search Engine

May 11, 2010

How to create a search engine in Flash. My website has an embedded swf top navigation in HTML.

how to create a search box in the swf top navigation. So when a user clicks on a "Search" button, it would direct him to a new page in my website, listing out the relevant URLs of my website.

View 0 Replies

Possible To Create Workable Search Bars On Site?

Apr 20, 2009

Can we create a search bar that could search through our site?

View 1 Replies

ActionScript 3.0 :: Create A Search Engine That Runs Inside An Swf?

Feb 8, 2009

Is there anyway to create a search engine that runs inside an swf and that will index and search an entirely flash based website?[url]...

View 0 Replies

ActionScript 2.0 :: Create A Search Form That Will Work Offline

Jan 15, 2003

I have a little problem. I need to create a search form that will work offline. I mean, ...when you type a file name, it will find it and open it for you.how to do it in flash, swish, or swift ?

View 2 Replies

ActionScript 3.0 :: Create A Function Which Will Search The Cuepoints For A Specific Time?

May 24, 2010

I have the following XML file structure:

Code:
<VideoData>
<CuePoints>[code]....

And I am trying to create a function which will search the cuepoints for a specific time, I'd also like the function to be re-useable, so I could just feed it a xml tree path and a search term then it would return a reference to the matching node.So far I have only managed to return what is in the node:

Code:
public class Search
{
public static var returnData:Array = new Array();[code].....

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

Flex :: Sort Collection And Sort Remains In Place When Adding To Collection?

Jun 30, 2011

When I get a collection back from the service tier, I create an ArrayCollection and apply a sort. When I add an item to the collection later on, the sort is still in place? It seems to be the case. I thought I was only sorting it once, not applying a sort that will stick??Here is the method for adding an item:

private function onAddNewClick():void
{
var fileTemplate:FileTemplateDetailDTO = new FileTemplateDetailDTO();

[code].....

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

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







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