Import and search of XML text

I am new to Flash programming, but have done work in PHP, ASP, and Frontier. I am trying to build a Flash file which imports an XML price list and then allows the user to enter a four-digit number. When a button is clicked, I would stay in this XML list items that match at the entrance as well as their prices. The XML file might look like this:

<? XML version = "1.0" encoding = "utf-8"? >
< prodlist >
< item >
< id > < /ID > 1001121
< > 7558 prod - 02 < / product >
< um > < /um >
< price > 10.56 < / price >
< index > Y < / index >
< / point >
< item >
< id > 1001181 < /ID >
< > 7557 prod - 02 < / product >
< um > < /um >
< price > 18.49 < / price >
< index > Y < / index >
< / point >
< item >
< id > 1001191 < /ID >
< > 7557 prod - 04 < / product >
< um > < /um >
< price > 20.69 < / price >
< index > Y < / index >
< / point >
< / prodlist >

Naturally, I have to analyze references down to four to six figures, and I think I can understand that one.

I have read in the XML file, but cannot see how to get there via a click of a button and return the items searched on. I know it's maybe a bit of a broad request, but I was hoping someone could point me at least in a sense, so I can understand that. I also do not understand how to attach an external .AS file to an individual. FLA file.

Flash 3.0 seems really cool and rugged, but the boy, for a beginner like me he is quite the learning curve!

Search through XML is much easier in AS 3.0 due to the E4X format.

See you soon,.
FlashTastic

Tags: Adobe Animate

Similar Questions

  • Handling former projects where the xml-text-files have been imported through the Panel of the chain.

    Hello Adobe support team,

    We're going to go from the Adobe flash professional CS 6 to animate CC and we have already purchased licenses for our developer team. In all our former software projects, we have imported and exported text to the screen (xml_files) through the string table to assign the ID. It was very uncomfortable for us, because all our projects are multilingual. Now, we read in the animate using the channel Panel is obsolete with CC to animate. So our problem is how to manage our current programs where all text files are based on the Panel of the chain.

    Find out here: How can I load external XML content to my HTML5 doc?

  • Access the raw text of TextFlow and search

    I'm trying to understand the best way to conduct a search in a TextFlow to locate a specific piece of text (a word or set of words).
    I had a hard time finding ways to actually access the raw text of the TextFlow responsible. Once it's loaded, I need to be able to search through the text, find the location of the text and show that the container.

    Essentially, add search capabilities to the example of Pagination.

    The only thing I can think of who looks like he can run would be to export the TextFlow in an XML file, and then search on the XML file. Once this is done, I have to understand what position in the file xml, the text was and load the container with this position...

    There must be a better way?
    Thank you, Tim

    I found a sample which is essentially what you're proposing. The example of CheckSpelling is a great place to start to browse the text in the TextFlow.
    Thank you
    Tim

  • I don't want to move to the new tab immediately when I select text and search it from the context menu.

    When I select text and right-click on it and looking for it, the new tab open and switched to immediately. I don't want that. Instead, I want to stay on the page that I am and don't want new tab to switch immediately.

    Hi Obaid.Farooq, please try the following:
    enter on: config in the address bar of firefox (confirmed the message information where it appears) and search for the preference named browser.search.context.loadInBackground. Double-click it and change its value to true.

  • Where is the text for the index and search tabs saved?

    It is specifically in RoboHelp 9 - although the answer may be the same for other versions.

    I wonder, when WebHelp is created, where to get the text to use in the indexing and search tabs?

    Specifically, I'm looking for (and change), the text in the Index tab that reads, "type in the keyword to find:" and the text in the Search tab that reads, "Type in the words to search for:

    I suspect these two phrases are in a file .lng somewhere, and just this file needs to be changed...

    Any ideas?

    The mentioned Colum .lng file are accessible more easily by clicking on file > project settings > Advanced button > LNG tab

    Under LNG, you will see everything most of the default labels for different items. It is better to work here on the source of LNG, rather than trying to change the output WebHelp that will be replaced later the next time that you build.

    Thank you

    John Daigle

    Adobe Certified RoboHelp and Captivate instructor

    Evergreen, Colorado

    www.showmethedemo.com

  • Import and run several text documents in InDesign CS3

    I have several files to plain text, where each runs several pages long I want to import into a single document in ID CS3. I want to import them and to make them sink in a framework unique block of text one after the other on several pages. With a single text of several doc page all what I have to do is select the place and hold down the SHIFT key and InDesign adds the necessary pages and run the copy until the end of the doc. However, if I move select the docs and import to try in a text frame by holding down the SHIFT key, it will just flow the first doc in the group without any indication of overset text. I tried to place several docs of text, hold down the shift and command and brings all my docs on the first page, but in the text boxes separated with text in excess for each doc. Is it possible to do this in InDesign or maybe a plugin that can do this?

    Thank you

    Randy

    I tried to find it. It was published on 21-04-08 by Peter Kahrel (I can tell because I see on my side of the discussion in my "sent" folder) in response to a post I did called "multiple files". Maybe I'm not the research archives forum correctly, or maybe it was during the time of last year when Adobe was trying (and failing) for updating the forums. In any case, I know at this time as Peter post this for public consumption, so I don't think he's going to mind if I post again:

    -------------------------------------------------------------------------

    Description: Place several textfiles as a story

    indesign #target

    default = "/ d/books/test/*.doc";

    app.wordRTFImportPreferences.useTypographersQuotes = false;
    app.wordRTFImportPreferences.convertPageBreaks = ConvertPageBreaks.none;
    app.wordRTFImportPreferences.importEndnotes = true;
    app.wordRTFImportPreferences.importFootnotes = true;
    app.wordRTFImportPreferences.importIndex = true;
    app.wordRTFImportPreferences.importTOC = false;
    app.wordRTFImportPreferences.importUnusedStyles = false;

    mask = prompt ('Enter a file path/mask.\r\r' +)
    "Examples: \r" +.
    ("d:\\books\\test\\*.rtf /d/books/test/*.rtf", preset).

    If (mask == null) exit();  Cancel the pressed

    FF = folder (file (mask) .path) .getFiles (File (mask) .name);
    If (ff.length > 0)
    {
    place = [];
    lack = [];
    = app.documents.add) (tframe. textFrames.add
    ({geometricBounds: [36, 36, 400, 400]}) ;
    placedstory = tframe.parentStory;
    app.scriptPreferences.userInteractionLevel =
    UserInteractionLevels.neverInteract;
    PB = initprogressbar (ff.length, "Loading");
    for (i = 0; i< ff.length;="" i++="">
    {
    PB. Value = i;
    Try
    {
    placedstory.insertionPoints [-1] = .silence ' £0 ';
    placedstory.insertionPoints [-1] concerned (ff [i]);
    placedstory.insertionPoints [-1] .silence = "\r\r";
    placed.push (.name ff [i]);
    }
    catch (_)
    {
    Missed.push (.name ff [i]);
    }
    }
    app.scriptPreferences.userInteractionLevel =
    UserInteractionLevels.interactWithAll;
    inform = ";
    If (placed.length > 0)
    inform = 'Placé' + ff.length + ' files (in this order): \r\r' + placed.join ('\r');
    If (missed.length > 0)
    inform += "\r\rCould no place: \r\r" + missed.join ('\r');
    delete_empty_frames ();
    alert (notify);
    }
    on the other
    Alert (mask + "is not found.");

    End

    function delete_empty_frames)
    {
    app.findGrepPreferences = app.changeGrepPreferences = null;
    app.findGrepPreferences.findWhat = "\\A\\Z";
    var empty = app.activeDocument.findGrep (true);
    for (var i = 0; i)< empties.length;="">
    Empties [i] .parentTextFrames [0]. Remove()
    }

    function initprogressbar (stop, title)
    {
    var progresswindow = new window ("palette", title);
    ProgressBar = progresswindow.add var ("progressbar", not defined, 1, stop);
    progressbar.preferredSize = [200.20];
    progresswindow. Show()
    return of the progressbar;
    }

    -------------------------------------------------------------------------

    Copy and paste everything between the lines of hyphen (excluding dash lines) in a text editor and save it with the extension .js and put it in your scripts folder. Should be something like:

    D:\Program Files\Adobe\InDesign CS3\Adobe InDesign CS3\Scripts\Scripts Panel

    After the alphabetical order of your files and put them in their own folder, copy the path and run the script. It will make a new folder and place all of your files in a continuous narrative. I don't know how it will work with .txt files.

    Ken Benson

  • Help with excel import and delete the page script

    Hello. I will try to make it as simple as possible. I have some data from excel (saved as delimited by tabs) that I need to import in a 5 PDF page. I use the script below to import, and it works fine. All import fields and records the individual (one for each record) PDF. However, I need to extend this functionality by removing some pages before it saves the document by looking at the different boxes. The code below is what I use to import the records.

    // specify the filename of the data file
    var fileName = "/Users/MacMike/Desktop/Test.txt";  // the tab delimited text file containing the data
    var outputDir = "/Users/MacMike/Desktop/Dump/";    // make sure this ends with a '/'
    
    var err = 0;
    var idx = 0;
    while (err == 0) {
        err = this.importTextData(fileName, idx);    // imports the next record
    
        if (err == -1)
            app.alert("Error: Cannot Open File");
        else if (err == -2) 
            app.alert("Error: Cannot Load Data");
        else if (err == 1)
            app.alert("Warning: Missing Data");
        else if (err == 2)
            app.alert("Warning: User Cancelled Row Select");
        else if (err == 3)
            app.alert("Warning: User Cancelled File Select");
        else if (err == 0) {
            this.saveAs(outputDir + this.getField("Full Name (First Last)").value + "-" + this.getField("Event Title").value + ".pdf"); // saves the file
            idx++;
        }
    }
    

    As I said before you import works surprisingly well.

    My PDF consists of 5 pages (info-registration, p1 = Dir-contract = p0, p2 = contract ndarp-brand, p3 = takes-contract, p4 = agreement must be brand). My idea is that on the import of data, the script will look at a few check boxes and determine which contracts to remove on the PDF and then save. I wrote the syntax of which, in my view, what it should look like. I'm not a programmer and know just a little bit. I looked through the documentation and this is what I came with. I don't know how to combine to work. Here's the code I came up with that.

    var dir = this.getField("Associate Director"); // checkbox
    var aldir = this.getField("Alumni Director"); // checkbox
    
    var fac = this.getField("Facilitator"); // checkbox
    var alfac = this.getField("Alumni Facilitator"); // checkbox
    
    var oyb = this.getField("Optimize Your Brain"); //checkbox
    var poyb = this.getField("DVD and Workbook Previously Purchased"); // checkbox
    
    // Below are all the possible training options.
    if (dir.value=="Checked" || aldir.value=="" || fac.value=="" || alfac.value=="" || oyb.value=="" || poyb.value=="") {
        this.deletePages({nStart:3, nEnd:4})
    }
    else if (dir.value=="" || aldir.value=="Checked" || fac.value=="" || alfac.value=="" || oyb.value=="" || poyb.value=="") {
        this.deletePages({nStart:3, nEnd:4})
    }
    
    else if (dir.value=="" || aldir.value=="" || fac.value=="Checked" || alfac.value=="" || oyb.value=="" || poyb.value=="") {
        this.deletePages({nStart:2, nEnd:4})
    }
    else if (dir.value=="" || aldir.value=="" || fac.value=="" || alfac.value=="Checked" || oyb.value=="" || poyb.value=="") {
        this.deletePages({nStart:2, nEnd:4})
    }
    
    else if (dir.value=="" || aldir.value=="" || fac.value=="Checked" || alfac.value=="" || oyb.value=="Checked" || poyb.value=="") {
        this.deletePages({nStart:2, nEnd:2})
    }
    else if (dir.value=="" || aldir.value=="" || fac.value=="" || alfac.value=="Checked" || oyb.value=="Checked" || poyb.value=="") {
        this.deletePages({nStart:2, nEnd:2})
    }
    else if (dir.value=="" || aldir.value=="" || fac.value=="Checked" || alfac.value=="" || oyb.value=="" || poyb.value=="Checked") {
        this.deletePages({nStart:2, nEnd:2})
    }
    else if (dir.value=="" || aldir.value=="" || fac.value=="" || alfac.value=="Checked" || oyb.value=="" || poyb.value=="Checked") {
        this.deletePages({nStart:2, nEnd:2})
    }
    
    else if (dir.value=="Checked" || aldir.value=="" || fac.value=="" || alfac.value=="" || oyb.value=="Checked" || poyb.value=="") {
        this.deletePages(none) // I realize this is incorrect. Just showing that this option results in no deleted pages.
    }
    else if (dir.value=="" || aldir.value=="Checked" || fac.value=="" || alfac.value=="" || oyb.value=="Checked" || poyb.value=="") {
        this.deletePages(none) // I realize this is incorrect. Just showing that this option results in no deleted pages.
    }
    else if (dir.value=="Checked" || aldir.value=="" || fac.value=="" || alfac.value=="" || oyb.value=="" || poyb.value=="Checked") {
        this.deletePages(none) // I realize this is incorrect. Just showing that this option results in no deleted pages.
    }
    else if (dir.value=="" || aldir.value=="Checked" || fac.value=="" || alfac.value=="" || oyb.value=="" || poyb.value=="Checked") {
        this.deletePages(none) // I realize this is incorrect. Just showing that this option results in no deleted pages.
    }
    
    else if (dir.value=="" || aldir.value=="" || fac.value=="" || alfac.value=="" || oyb.value=="Checked" || poyb.value=="") {
        this.deletePages({nStart:1, nEnd:2})
    }
    else (dir.value=="" || aldir.value=="" || fac.value=="" || alfac.value=="" || oyb.value=="" || poyb.value=="Checked") {
        this.deletePages({nStart:1, nEnd:2})
    }
    

    How to combine these two so that I can create a document temp import my data, check the boxes to check off and delete the appropriate pages and save the file and then go to the next record? I got the first part done. It imports large and has the right, but I don't know what to do next. Thanks for any help!

    Or y at - it another way to do this?


    Michael

    Wow. Ok. I had it works beautifully. There was a lot of trial and error. Because the script as it was would have, would open the original PDF, delete the pages needed, then save the file. While it would be to go to the next record is missing pages in PDF and bomb to open. I hunted and searched for a way to do this. I found "this.insertPages" in the documentation. Finally, what worked was so move the "save under" in the service and put it under every variation of check. So now when checking the boxes, he performs the check, removes the mandatory pages, stops, insertions of back in deleted pages from the original file, leave the service and finally goes to the next record.

    Here is my final script:

    // This code looks at an excel (tab delimited) file, imports the records into a PDF form 10 Pages long.
    // Then checks a series of checkboxes and deletes the pages that aren't associated with first page.
    // After it deletes these pages it reinserts the deleted pages so it can do the checks for the next record in the (tab delimited) file.
    
    // variables for importing excel data
    var err = 0;
    var idx = 0;
    var fileName = "/Users/MacMike/Desktop/Test.txt";  // the tab delimited text
    var outputDir = "/Users/MacMike/Desktop/Dump/";    // make sure this ends with a '/'
    
    //Checking a bank of 6 checkboxes and determine which pages need to be deleted, save the file, and the insearch the deleted pages again.
    function seekandDestroy() {
        if (dir.value=="Checked" && aldir.value=="Off" && fac.value=="Off" && alfac.value=="Off" && oyb.value=="Off" && poyb.value=="Off") {
            this.deletePages({nStart:6, nEnd:9})
            this.saveAs(outputDir + this.getField("Full Name (First Last)").value + "-" + this.getField("Event Title").value + ".pdf")
            this.insertPages({nPage:5, cPath:"/Users/MacMike/Desktop/TT Reg & Contracts.pdf", nStart:6, nEnd:9 });
        }
        else if (dir.value=="Off" && aldir.value=="Checked" && fac.value=="Off" && alfac.value=="Off" && oyb.value=="Off" && poyb.value=="Off") {
            this.deletePages({nStart:6, nEnd:9})
            this.saveAs(outputDir + this.getField("Full Name (First Last)").value + "-" + this.getField("Event Title").value + ".pdf")
            this.insertPages({nPage:5, cPath:"/Users/MacMike/Desktop/TT Reg & Contracts.pdf", nStart:6, nEnd:9 });
        }
    
        else if (dir.value=="Off" && aldir.value=="Off" && fac.value=="Checked" && alfac.value=="Off" && oyb.value=="Off" && poyb.value=="Off") {
            this.deletePages({nStart:3, nEnd:9})
            this.saveAs(outputDir + this.getField("Full Name (First Last)").value + "-" + this.getField("Event Title").value + ".pdf")
            this.insertPages({nPage:2, cPath:"/Users/MacMike/Desktop/TT Reg & Contracts.pdf", nStart:3, nEnd:9 });
        }
        else if (dir.value=="Off" && aldir.value=="Off" && fac.value=="Off" && alfac.value=="Checked" && oyb.value=="Off" && poyb.value=="Off") {
            this.deletePages({nStart:3, nEnd:9})
            this.saveAs(outputDir + this.getField("Full Name (First Last)").value + "-" + this.getField("Event Title").value + ".pdf")
            this.insertPages({nPage:2, cPath:"/Users/MacMike/Desktop/TT Reg & Contracts.pdf", nStart:3, nEnd:9 });
        }
    
        else if (dir.value=="Off" && aldir.value=="Off" && fac.value=="Checked" && alfac.value=="Off" && oyb.value=="Checked" && poyb.value=="Off") {
            this.deletePages({nStart:3, nEnd:5})
            this.saveAs(outputDir + this.getField("Full Name (First Last)").value + "-" + this.getField("Event Title").value + ".pdf")
            this.insertPages({nPage:2, cPath:"/Users/MacMike/Desktop/TT Reg & Contracts.pdf", nStart:3, nEnd:5 });
        }
        else if (dir.value=="Off" && aldir.value=="Off" && fac.value=="Off" && alfac.value=="Checked" && oyb.value=="Checked" && poyb.value=="Off") {
            this.deletePages({nStart:3, nEnd:5})
            this.saveAs(outputDir + this.getField("Full Name (First Last)").value + "-" + this.getField("Event Title").value + ".pdf")
            this.insertPages({nPage:2, cPath:"/Users/MacMike/Desktop/TT Reg & Contracts.pdf", nStart:3, nEnd:5 });
        }
        else if (dir.value=="Off" && aldir.value=="Off" && fac.value=="Checked" && alfac.value=="Off" && oyb.value=="Off" && poyb.value=="Checked") {
            this.deletePages({nStart:3, nEnd:5})
            this.saveAs(outputDir + this.getField("Full Name (First Last)").value + "-" + this.getField("Event Title").value + ".pdf")
            this.insertPages({nPage:2, cPath:"/Users/MacMike/Desktop/TT Reg & Contracts.pdf", nStart:3, nEnd:5 });
        }
        else if (dir.value=="Off" && aldir.value=="Off" && fac.value=="Off" && alfac.value=="Checked" && oyb.value=="Off" && poyb.value=="Checked") {
            this.deletePages({nStart:3, nEnd:5})
            this.saveAs(outputDir + this.getField("Full Name (First Last)").value + "-" + this.getField("Event Title").value + ".pdf")
            this.insertPages({nPage:2, cPath:"/Users/MacMike/Desktop/TT Reg & Contracts.pdf", nStart:3, nEnd:5 });
        }
    
        else if (dir.value=="Off" && aldir.value=="Off" && fac.value=="Off" && alfac.value=="Off" && oyb.value=="Checked" && poyb.value=="Off") {
            this.deletePages({nStart:1, nEnd:5})
            this.saveAs(outputDir + this.getField("Full Name (First Last)").value + "-" + this.getField("Event Title").value + ".pdf")
            this.insertPages({nPage:0, cPath:"/Users/MacMike/Desktop/TT Reg & Contracts.pdf", nStart:1, nEnd:5 });
        }
        else if (dir.value=="Off" && aldir.value=="Off" && fac.value=="Off" && alfac.value=="Off" && oyb.value=="Off" && poyb.value=="Checked") {
            this.deletePages({nStart:1, nEnd:5})
            this.saveAs(outputDir + this.getField("Full Name (First Last)").value + "-" + this.getField("Event Title").value + ".pdf")
            this.insertPages({nPage:0, cPath:"/Users/MacMike/Desktop/TT Reg & Contracts.pdf", nStart:1, nEnd:5 });
        }
        else if (dir.value=="Checked" && aldir.value=="Off" && fac.value=="Off" && alfac.value=="Off" && oyb.value=="Checked" && poyb.value=="Off") {
            this.saveAs(outputDir + this.getField("Full Name (First Last)").value + "-" + this.getField("Event Title").value + ".pdf")
        }
        else if (dir.value=="Checked" && aldir.value=="Off" && fac.value=="Off" && alfac.value=="Off" && oyb.value=="Off" && poyb.value=="Checked") {
            this.saveAs(outputDir + this.getField("Full Name (First Last)").value + "-" + this.getField("Event Title").value + ".pdf")
        }
        else if (dir.value=="Off" && aldir.value=="Checked" && fac.value=="Off" && alfac.value=="Off" && oyb.value=="Checked" && poyb.value=="Off") {
            this.saveAs(outputDir + this.getField("Full Name (First Last)").value + "-" + this.getField("Event Title").value + ".pdf")
        }
        else if (dir.value=="Off" && aldir.value=="Checked" && fac.value=="Off" && alfac.value=="Off" && oyb.value=="Off" && poyb.value=="Checked") {
            this.saveAs(outputDir + this.getField("Full Name (First Last)").value + "-" + this.getField("Event Title").value + ".pdf")
        }
    }
    
    // Imports records does the above function then go the next record, all the while doing error reporting.
    while (err == 0) {
        err = this.importTextData(fileName, idx);    // imports the next record
    
        if (err == -1)
            app.alert("Error: Cannot Open File");
        else if (err == -2)
            app.alert("Error: Cannot Load Data");
        else if (err == 1)
            app.alert("Warning: Missing Data");
        else if (err == 2)
            app.alert("Warning: User Cancelled Row Select");
        else if (err == 3)
            app.alert("Warning: User Cancelled File Select");
        else if (err == 0) {
            var dir = this.getField("Associate Director"); // checkbox
            var aldir = this.getField("Alumni Associate Director"); // checkbox
            var fac = this.getField("Facilitator"); // checkbox
            var alfac = this.getField("Alumni Facilitator"); // checkbox
            var oyb = this.getField("Optimize Your Brain Site Coordinator"); //checkbox
            var poyb = this.getField("DVD and Workbook Previously Purchased"); // checkbox
            seekandDestroy(dir, aldir, fac, alfac, oyb, poyb); //performs the above function
            idx++; //goes to next record
        }
    }
    
  • How the automatic placement of the xml text

    How to import the xml file into indesign and automatic placement of text using javascriprt without model

    Hai

    Please try this:

    var doc = app.documents.add ();

    xmlRoot = doc.xmlElements.item var (0);

    xmlRoot.markupTag.name = "Properties";

    with (doc.xmlImportPreferences) {}

    importToSelected = false;

    importStyle = XMLImportStyles.mergeImport;

    createLinkToXML = false;

    allowTransform = false;

    repeatTextElements = true;

    ignoreUnmatchedIncoming = false;

    importTextIntoTables = false;

    ignoreWhitespace = true;

    removeUnmatchedExisting = false;

    importCALSTables = true;

    }

    xmlRoot.importXML (file (Folder.desktop + "/ sample.xml"));

  • DTD, Python, TEI, and Berkeley DB XML

    Dear experts BDB XML,

    I'm developing a web application (Django database) which uses python to manipulate and search documents TEI based in a BDB XML container.

    I'm loading in the container XML documents contain a reference to an external DTD, which in turn refers to the .ent files. The documents contain references to entity requiring a resolution.

    I can successfully XML documents in the container, if I include the content of the DTD in each file, but the process will fail if I do not understand the content of the DTD of the XML document and instead try to make reference to the DTD via a reference. XQuery queries also do not seem to work properly if the DTD content is included in each XML document.

    I found references in forums in the following JAVA code that appears to allow the BDB XML in the file system of the database to refer to an external DTD (I could be wrong on that though):

    XmlManagerConfig config = new XmlManagerConfig();
    config.setAllowExternalAccess (true);
    Manager of XmlManager = new XmlManager (config);

    My query is, can even be achieved using python? Documentation of BDB specifies this as a single operation of JAVA and does not mention possible using python.

    Thanks for reading
    AL

    Hi AL,.

    I have gathered some experience with Python bindings now, but I was not exactly in your situation. My experience has been pretty much everything you can do in Java you can do this in Python, but sometimes the syntax is a little different. I see Python doesn't have a XmlManagerConfig class but rather indicators given in the XmlManager constructor used. To do what you want to do, I think you want (assuming that of dbxml import *)

    mgr = XmlManager(env, DBXML_ALLOW_EXTERNAL_ACCESS)
    
  • How can I find and remove a specific text in a PDF document?

    Hello. Sorry for my English (I'm from the Russia))

    There is the problem - how to find specific text in a document (in my case, it - all the numbers (0-9)) and remove, using javascript?

    And I would like to know also - is a function of search with regular expressions?

    And more importantly - how to remove the text based?

    is this possible?

    document is so great, that if I manually delete the numbers - I'll do it for a month!))

    Thank you!!!

    You can use a regular expression with the "words" individual who is returned by JavaScript.

    Suggestion of Leonard, in Acrobat 10 select: Tools > Protection > Search & delete text (sorry, I don't know what it would be in Russian)

  • Index and search does not not in Hebrew RH8 project

    While locating

    English project Robohelp 8 in Hebrew (WebHelp output), we met a few crucial questions: despite the fact that our perfect and hhc files were translated only Table of contents appears in Hebrew in the generated help, Index pane is empty, and search pane displays gibrish. When I use English original perfect index file can display English and Hebrew entries, no luck with the search. We used several times discussed RTL workaround RH7. It seems that it totally unsuitable RH8, so my shutters are not aligned correctly and so on, but these questions we can set aside. Search and Index seem to be most important. Any ideas?

    Hello

    Probably something in the language file, but I'm not big on that. In the output, open whfhost.js. The first fourteen lines contain text for the search option.

    Take a bow

    Willam

  • Selection of the menu XML text problem

    Hi all

    I built a video menu xml that displays a simple text of my XML document in a movieclip that is added to a sprite called btnContainer, the btnContainer is then added to the scene. Once these buttons are selected, they load the appropriate video. The problem I have is that I want the selected button to change color. There are three different XML files loaded according to 3 static buttons on the stage, that is to say 2009 / 2008 / 2007. By default the code 2009 XML file is loaded. My code works fine the first time that the script runs - when one of the XML buttons is selected it changes color and returns all other buttons to their default color - but when I click on the button 2008 or 2007 and load their XML files, and the buttons do not change their color. Then when I click on back button 2009 and 2009 XML load button changes color but the rest of the buttons do not change in their default state? My code is below

    Thanks in advance for any help

    Fl.video import. *;

    Import gs.*;

    Gs.easing import. *;

    //----------------------------------VARIABLES--------------------------------

    var vid:FLVPlayback;

    vid = new FLVPlayback();

    VID.source = "video/press_long_beach_2009.flv";

    VID. Width = 480

    VID. Height = 360

    VID. Skin = "SkinUnderPlayStopSeekMuteVol.swf";

    vid.skinBackgroundColor = 0 x 000000;

    vid.skinBackgroundAlpha =.5

    addChild (vid)

    VID.x = 385

    VID.y = 80

    var myLoader:Loader = new Loader();

    var container: MovieClip = new MovieClip;

    var xml = new XML;

    var xmlList:XMLList = new XMLList;

    var xmlLoader:URLLoader = new URLLoader;

    var dateLoader:Loader

    var dateBtn:mcDateBtn

    var items_array:Array = new Array();

    var btnContainer:MovieClip = new MovieClip;

    var boxContainer:Sprite = new Sprite();

    //-------------------------------------------ADD LISTENERS------------------------------

    xmlLoader.load (new URLRequest("data/2009videos.xml"))

    xmlLoader.addEventListener (Event.COMPLETE, xmlComplete)

    yearBtnContainer.btn09.addEventListener (MouseEvent.CLICK, showYearBtns)

    yearBtnContainer.btn08.addEventListener (MouseEvent.CLICK, showYearBtns)

    yearBtnContainer.btn07.addEventListener (MouseEvent.CLICK, showYearBtns)

    //------------------------------------------FUNCTIONS------------------------------------

    function showYearBtns(event:Event):void

    {

    if (this.contains (btnContainer))

    {

    for (var i: int = 0; i < xmlList.length (); i ++)

    {

    btnContainer.removeChildAt (0);

    }

    }

    if(event.target == yearBtnContainer.btn09)

    {

    xmlLoader.load (new URLRequest("data/2009videos.xml"))

    }

    other if (event.target == yearBtnContainer.btn08)

    {

    xmlLoader.load (new URLRequest("data/2008videos.xml"))

    }

    other if (event.target == yearBtnContainer.btn07)

    {

    xmlLoader.load (new URLRequest("data/2007videos.xml"))

    }

    }

    function xmlComplete(event:Event):void

    {

    xml = XML (event.target.data);

    xmlList = xml.children ();

    for (var i: int = 0; i < xmlList.length (); i ++)

    {

    trace ("working")

    dateBtn = new mcDateBtn;

    items_array.push (dateBtn);

    btnContainer.addChild (dateBtn)

    dateBtn.x = 20;

    dateBtn.y = i * 60 + 100;

    dateBtn.name = xmlList [i] .attribute ("videoURL")

    dateBtn.dateTxt.htmlText = xmlList [i];

    dateBtn.dateTxt.wordWrap = true

    dateBtn.dateTxt.width = 270;

    dateBtn.dateTxt.height = 90;

    dateBtn.dateTxt.background = true;

    dateBtn.dateTxt.backgroundColor = 0 x 333333;

    dateBtn.mouseChildren = false;

    dateBtn.buttonMode = true;

    dateBtn.id = i;

    dateBtn.addEventListener (MouseEvent.CLICK, showImage)

    trace ('underneath')

    }

    addChild (btnContainer)

    }

    function showImage(event:MouseEvent):void

    {

    for (var j: int = 0; j < xmlList.length (); j ++)

    {

    //trace(event.target.id)

    if(j==event.currentTarget.id)

    {

    trace ("working color")

    TweenLite.to (event.target,.3, {tint: 0xFFDB00, ease:Strong.easeOut});})

    }

    to another if(!event.currentTarget.select)

    {

    trace ("working without color")

    ([ //trace(items_array[i])

    items_array [j]. Select = false;

    items_array [j] .mouseEnabled = true;

    TweenLite.to (items_array [j],.5, {tint: 0xFFFFFF, ease:Strong.easeOut});})

    }

    }

    vid.source = event.target.name

    }

    It's not like you're clearing items_array()

  • How to search the selected text with a default search engine?

    Hello

    Before the recent update of the search bar, you can select your 'current' search engine, and a search for the selected text (right click on the selection) would use this engine.

    Now, it seems that you can only search for the selected text using the default engine. If that is correct, it's a big step backwards for me. For example, I can't have Google as my default search engine and the search for a text selected on eBay!

    Or am I missing something?

    Thank you!

    R.

    I find this extension very useful for selected items in the web pages. It offers all your search engines with select > right click.
    https://addons.Mozilla.org/en-us/Firefox/addon/context-search/?src=search

  • How to remove toolbar icons and just leave the text?

    In previous versions of "Firefox", you could-'text only' or 'text and icons' in the toolbar.

    In the most recent version 32.0.2, options is no longer available, you get icons and text. Just, it clutters the toolbar and restricted the number of URL for quick access.

    I want to just 'Text' only.

    Thank you

    John O

    Add code to the file userChrome.css below default @namespace.

    @namespace url("https://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */
    
    #PlacesToolbarItems > .bookmark-item > .toolbarbutton-icon { display:none !important; }
    

    The file userChrome.css (UI) customization and userContent.css (Web sites) are located in the folder of chrome in the Firefox profile folder.

    You can use this button to go to the Firefox profile folder currently in use:

    • Help > troubleshooting information > profile directory: see file (Linux: open the directory;) Mac: View in the Finder)
    • Create the folder chrome (lowercase) in the .default < xxxxxxxx > profile folder if the folder does not exist
    • Use a text editor like TextEdit to create a userChrome.css (new) file in the folder chrome (file name is case sensitive)
    • Paste the code in the userChrome.css file in the Editor window
    • Make sure that the userChrome.css file starts with the default @namespace line

    Be sure to save the file in plain text format and not as rich text.

  • After downloading the 23.0.1 version I've lost all the history, but no bookmarks. How can I recover ancient history? Recovery of "import and backup" does not help

    My story memorable and kept going back quite a few months. After the release of Firefox for 23.0.1 I lost all my history and Firefox keeps only the websites visited once the new version has been installed. My favorites were selected. I tried to get back in "Import and backup", but it goes back only to the date of the new facility. I tried places.sqlite "Roaming", but there is only one with the current date. Is there a way to recover the lost history? Why Firefox was losing it? It's going to happen averytime that updates Firefox?

    Manually back up your bookmarks. If you have used the 'import', you have already lost some information by overwriting. As a matter of course you should always save current bookmarks manually before using any restorations.

    This way you can make sure you are able to restore the current set. Your backup .json file put a safe off-trail program or Firefox profile. The desktop of Windows or the removable media would be appropriate.

    Firefox creates a bookmark, but does nothing about backup history. Fortunately Windows probably backup previous versions of your files places.sqlite and this is the database with the history and bookmarks in it. See if you can recover a recent version of this, it will restore your story up to the date of the restored file.

    Then import your latest bookmarks from anywhere where they were rescued. Import replaces the slightly older bookmarks from the Windows file.

    You my wish also can install and run the addon places maintenance.

    That can be used to check and repair the places.sqlite database. It will give a brief report. Note If the places.sqlite runs out of space, he begins removing history.

    In the future you my wish to regularly create occasional backups of your profile or at least your places.sqlite

Maybe you are looking for