I use Adobe Flash CS3. I want search a string in the as of a sprite. I use "edit"-->"find and replace", the editbox are: "current document", type--"text", text---"trace". and I click "search all. I can't fine anything, but the string is in one of the sprites.
Haw can I find the string in the sprites,
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.
Is it possible to change the text property of a text field that is contained within a sprite? I've been trying but can't come up with the right syntax. Here is what I'm doing:
I've created a sprite named "lessonSprite" and added a text field to it in one function. Now, in another function, I'd like to change the text in the field.
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.
I am trying to build something where users can search a pdf for a string of text and have the script draw a circle around the result. Embedding a pdf initself seems difficult - as I have been searching online for a way.
i have a site entirely built on flash. its basically an e-magazine with lots of textual data. i need to implement a full text search where the user enters search terms in a text field and i need to highlight the occurrence of this search term within the textual contents inside this e-magazine
in a way its similar to what you do within a browser search or pdf search where after typing your search term they highlight all occurrences of this search term within the webpage / pdf document
what is the best way to do this? any ready component / solution / code available?
I don't know how to resolve this very simple action.I've made a program and at this point I've a list on the stage.I want to see if the selected list item has particular value.
Like: myList.selectedItem.label (this is current selected item of the list)
here, I want as3 to check if that label has " , " (comma) or not.
Like: if (myList.selectedItem.label contains == ","){ trace("comma found");
I'm making a glossary. The glossary terms and definitions are in an xml file. I have read the terms (the words to be defined) into an array. I have included a search field, such that when I enter a term in the search field, a function loops through the array of terms and if the string I entered in the search field matches an item in the array, Flash traces out "match" (in this early part of coding).Here is my problem: If one of the terms in the glossary is "India Pale Ale", with capital letters, then a search on "india pale ale" turns up no matches.How do I remove case sensitivity in this scenario?
I'm trying to port an application created in another language to Flash. I'm trying to implement a boolean function that simply tells me if a word I pass in as an argument is contained in the text field. So I am wondering if Flash includes a built-in function such as "find" or "contain?" which are common in other languages for determining if a word is in a text field?
I'm playing around with a messaging type of application. Does anyone know how, or of any tutorials on to "appending" html text to text areas in flex and flex mobile projects? And specifically how I could take that and basically "append" a sprite inline to the text when i need to? Something simple like:Username: some text right here!So, Anyone have any experience "appending" sprites or simple text formatting?how to solve these issues!EDIT:Based on an answer below it was sugguested that it's as simple as...textAreaInstance.htmlText += "<b>Username:</b> some text right here!";But its not. you can't do .htmltext with a text area. you can on a text field, so i tried
var TF:TextField = new TextField(); TF.width = 200; TF.height = 200;
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.
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.
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)
It seems that AIR doesn't come packaged with the powerful FTS module for Sqlite (its a hot requested feature)
What are the some other alternatives I can use? I want to be able to do simple boolean and phrase queries. Support for stemming would be great but not required. I am targeting the mobile platforms.
So far I've thought of three options:
Write a simple inverted index and a scorer Do search on server side (last resort b/c it messes up offline capability) Somehow install FTS module with AIR. First indication from googling is that its not feasible (looks like loading of modules is disabled in air)
I want write app with flash the receive string of user and search string into dynamic/static textbox but i want search with AND/OR feature, now How to write this app??
I have a file with html text and html code. I load this (test.txt) into a dynamic textfield. Then I want to do this with String functions: String Str1 contains the value I want to search for in the textfield. Str1 = "<script language="javascript">AC_FL_RunContent = 0;</script> <script src="AC_RunActiveContent.js" language="javascript"></script>" Search textfield after Str1 remove Str1 value from textfield My goal is to clean my html-file/textfield after all script java tags. The tags that Flash CS3 automatic puts into HTML file to activate AC_RunActiveContent.js
I'm planning to make a game that gives players the choice to search a word when selecting a character, and if that word is found, they get to play as them. I don't even have a clue what, where and how I am gonna put the list in the game for something to search it. I'll try to give an example:
A user puts "horse" into the input field, presses the "Search" button, and Flash searches the word "horse" in a list of maybe 30 or so words. If it returns no results, a message says, "keyword not found". If it is found, a picture of a horse comes up in the character preview box.
Is there a way in actionscript to search through a block of text and extract certain sentences for example or pieces of information that match a certain criteria. What im thinking of doing is loading in some data from an XML file and searching through to see if it contains a link and/or an URL
I'm having trouble setting my text box correctly after I do a search and replace. Should be obvious but my variable that I'm passing in is called songTitle and the text box instance name is songTitle_txt. Here is my current code.[code]
I'm trying to extend the text input that comes in flex to support an icon, just like mac os x search text input has a grey circle aligned to the right, the text input has a addChild method, but it didn't work for me.
how to take what a user inputs into a s:TextInput and use that as a variable in a JSON data request? Basically, I want to have a user enter a search term, like "math" and then have that placed into a variable so I can use it in a JSON request. Something like public var q:String, except that my search box (and hence user input) is on another "view" of the application. I've just started with Flex Mobile applications and I might be way out of my league.
I have a bunch of pdf files in a specific location on my site (mysite.com/pdf).
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 (mysite.com/pdf/myfile.pdf).
how to implement a text search in a multi-framed flash movie similar to what flash paper does. It searches all text included frames and upon hitting "enter" movies to that frame-> text occurance.