ActionScript 2.0 :: Integrate A Search Feature?
Nov 18, 2010
I have a XML file which I am trying to integrate a search feature. I have attached a zipped folder of my working example.In this XML file is a collection of modules: 1.1, 1.2, 1.3 etc...
Each module is broken down further:
1.1has: 1.1.1, 1.1.2, 1.1.3
1.2has: 1.2.1, 1.2.2, 1.2.3, 1.2.4 etc...
I have a search feature that is searching the XML, then outputting the content if found.Now this is working OK for a specific module listed above, for example, in my zipped example, I can get it to search 1.1.1, 1.1.2, 1.1.3 etc...
What I can�t seem to get working is how to search all of the modules sections: eg: 1.1: 1.1.1-1.1.x, 1.2: 1.2.1 � 1.2.x and so on depending on how much content is sorted in my XML.
View 14 Replies
Similar Posts:
Dec 18, 2010
i have successfully integrated Google earth with Flex using ExternalInterface.call("javascriptMethodName") method and writing the javascript stuff in the html file which embeds the swf file. it ran and loaded Google earth successfully.
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>
<script src="http://earth-api-samples.googlecode.com/svn/trunk/lib/kmldomwalk.js" type="text/javascript"> </script>
[Code].....
this is a snippet of that html file but when i add something like to the html file:
var directionsService = new google.maps.DirectionsService();
View 1 Replies
Sep 12, 2010
Now it can only be done with the FMLE. Is there somewhere I can check the development plan for FMS besides here?
View 4 Replies
Dec 13, 2005
just wondering if there is a way of setting out a text input box and a go button and using an EXCEL Sheet FULL of data (uk postal codes) to create a search application???
View 1 Replies
Mar 31, 2011
how to output the error messages I'm seeing in my output screen in the IDE to a text area, so I can see if such errors are occurring in production What I found is that the forum search feature is not working at all. I received no results for the words "error", "movie", "flash" and "text", items which are obviously ones which should return SOME results.I couldn't find any way to contact Adobe about this, so I am hoping someone who works for Adobe and watches the forums will pass this along.
View 2 Replies
Oct 8, 2010
how, i repeat, how to make a search text feature like this:url...are they using Flash? i think so, but i'm totally clueless how.
View 6 Replies
Jan 30, 2009
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??
View 0 Replies
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
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
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
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
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
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
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
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
Sep 10, 2009
I have a very simple project. I just need a flash video that has a sound file and a button to turn on/off.
View 1 Replies
Feb 25, 2009
I am trying to create a security feature for my SWF's.I have a .txt file named security.txt.It has a variable called permissionGranted and is set to false
Code:
permissionGranted=false
Here is my AS:
Code:
Stage.showMenu = false;
Stage.scaleMode = "noscale";[code]..........
This doesn't work though,it traces true of false correctly but won't touch the if statement.
View 1 Replies
May 25, 2011
I am building a flash website, but want my clients to be able to FTP upload from the website. For example if they want to submit a picture or file.
View 3 Replies
Sep 20, 2009
On the creative pro website [URL].. they have a block at the top with images that change. It is titled 'today on creative pro' Does anyone know how they created it? Was it with Flash?
View 3 Replies
Feb 21, 2010
I am very interested in any information about the new Packager for iPhone feature for cs4 flash professional.
View 5 Replies
Aug 12, 2010
I'm making a map with Adobe Flash Professional CS5, using Actionscript 1 & 2, and I'm trying to add the ability to drag and pan while zoomed in. For the zooming, I put a button in either corner: a zoom out icon, and a zoom in icon. For the zoom-in icon, I used the code on (rollOver){ setProperty ("BG", _xscale, "200"); setProperty ("BG", _yscale, "200");} (BG being the name of the instance used for the background of the map, which is a movie clip.) Now, this zooms me in well to one corner, but then i want to be able to drag and pan to be able to see more of the map. I've found some good examples, but the code is way over my newbie head, and I can't get any examples of code I find to work, no matter what I've tried.
View 20 Replies
Jul 5, 2011
do you know how to use the embed fonts feature and css? or anti-alias the text that is styled using css? i have tried to set:
titlefield.embedFonts = true;
titlefield.stylesheet = sheet;
but it does not work. if i comment out the embedFonts the css works fine but the text is very aliased. but as3 does not support the embed font property within css.
View 5 Replies
Nov 18, 2010
I heard that ArrayCollection on Flex, so how can I use ArrayCollection like feature in ActionScript 3.0 and Flash IDE.
View 2 Replies
Dec 30, 2011
Does anyone know of an online demo of the new flash AEC feature ?
View 1 Replies
Mar 18, 2008
How can I add a zoom to selection feature to this?
I just want a basic marquee zoom. Like draw a rectangle on the map and zoom into the rectangle.. just like on this map
View 4 Replies
Jan 8, 2010
I'm new to Flash and I just noticed that the custom font that I used for my menus is not being displayed on machines that do not have this font, only a default font is shown there.I tried to include the font in the library (Library -> New Font), but it still doesn't workDo I have to start from scratch with the imported font? Or was I supposed to checksomething/add some settings (like "Export for ActionScript" or "Export for runtime sharing"?).
View 10 Replies
Nov 16, 2009
Is there a library for SSH in ActionScript 3? If not, how to have Flash integrate with SSH.I have a Flash prototype programmed out, and my client wants to see some minimal integration with an SSH server. What is needed is basically: connectauthenticate send a few basic commands I can't just have these commands be sent out blindly, as I need Flash to be aware of the SSH feedback and let the user know if the authentication, commands, etc were successful.
View 1 Replies
Feb 20, 2010
tutorials (e.g. ) show how to integrate Flash and MySQL. Also Flash can manipulate and sent this back to serverTo integrate flash and MySQL one can do the following:(1) MySQL -> php -> Flash (e.g. What is the most robust way to set up (1) and (2) to work at scale - as quickly as possible? What are the server loading implications? Is there any other way to do (1) and (2) more effectively?
View 2 Replies
Jun 16, 2009
I'm working on building a personal portfolio site right now. I wanted to add a scroll feature to one the pages. I wasn't sure how to build it, so I down loaded one off here [URL] and just plugged my own graphics into it. It scrolls up and down just fine, but when I try to put a mask over it, it doesn't work. In the content the author wrote for his movie he says "Note: If you want to have a mask over the content: copy MC:frame and make it a mask for MC:Page. If you do so, notice that "non-anti-alias text" is not possible anymore. This is a common thing in a Flash Movie. I keep trying that and it just blocks everything out all together. So what am I doing wrong?
View 1 Replies
Jan 20, 2010
After I make changes and publish file, the fullscreen feature does not work in any browser.
Full file can be found here. link
I am using CS4 to edit.
View 9 Replies