Flash Search Bar

Hello, 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. Any help would be very helpful. Here is the code given:
stop();
var testText0:String = "this is some test text one";
var testText1:String = "this is some test text two";
var testText2:String = "this is some test text three";
var testText3:String = "this is some test text four";
var textArr = new Array();
textArr[0] = _level0.testText0;
textArr[1] = _level0.testText1;
textArr[2] = _level0.testText2;
textArr[3] = _level0.testText3;
function goPage(page){
_root.gotoAndStop(page);
var keyword = new Array();
_root.search.onRelease = function(){
_root.linkText = "";
for(j = 0; j < textArr.length; j++){
_level0["count"+j] = 0;
var p:Number = j+1;
keyword = textArr[j].split(" ");
for(i = 0; i < keyword.length; i++){
if(keyword[i].charAt(keyword[i].length-1) == ","){
l = keyword[i].lastIndexOf(",")-1;
wordmatch = keyword[i].substring(0,(l+1));
}else if(keyword[i].charAt(keyword[i].length-1) == "."){
l = keyword[i].lastIndexOf(".")-1;
wordmatch = keyword[i].substring(0,(l+1));
}else if(keyword[i].charAt(keyword[i].length-1) == "?"){
l = keyword[i].lastIndexOf("?")-1;
wordmatch = keyword[i].substring(0,(l+1));
}else{
wordmatch = keyword[i];
if(_root.searchTxt.toLowerCase() == wordmatch.toLowerCase()){
_level0["count"+j]+=1;
if(_level0["count"+j] <= 1){
_root.linkText += ("<a href=\"asfunction:goPage,"+p+"\">page "+p+" contains the word <font color=\"#FF0000\"><B><I>"+wordmatch+"</I></B></font></a><br />");
The original .fla file can be dowloaded here:
http://www.flashkit.com/movies/Scripting/flash_si-Andrew_B-10884/index .php

For the error message if there is no word match, put one more else condition at the bottom of the else if chain to have it display a message saying their search was not found.  As for multiple words, I'm sure there is probably an easier way to do this but you can use if statements with the or condition.
For example, say the key words that you have within the movie are "pie", "cake" and "muffin".  You can have a statement basically saying
if searched term contains "pie" or "cake" or "muffin" then do action x y or z.
Not too sure of the syntax, but hopefully this at least gives you a little bit of direction on where to go next.

Similar Messages

  • Hi. There is a ghost search bar on my iMac screen which flashes constantly, even during start up and shut down. How can i make this go away? Please help. x

    Hi There is a ghost search bar on my iMac that flashes continually, even during start up and shut down. How can i make this go away? Please help. x

    Please read this whole message before doing anything.
    This procedure is a test, not a solution. Don’t be disappointed when you find that nothing has changed after you complete it.
    Step 1
    The purpose of this step is to determine whether the problem is localized to your user account.
    Enable guest logins* and log in as Guest. Don't use the Safari-only “Guest User” login created by “Find My Mac.”
    While logged in as Guest, you won’t have access to any of your documents or settings. Applications will behave as if you were running them for the first time. Don’t be alarmed by this behavior; it’s normal. If you need any passwords or other personal data in order to complete the test, memorize, print, or write them down before you begin.
    Test while logged in as Guest. Same problem?
    After testing, log out of the guest account and, in your own account, disable it if you wish. Any files you created in the guest account will be deleted automatically when you log out of it.
    *Note: If you’ve activated “Find My Mac” or FileVault, then you can’t enable the Guest account. The “Guest User” login created by “Find My Mac” is not the same. Create a new account in which to test, and delete it, including its home folder, after testing.
    Step 2
    The purpose of this step is to determine whether the problem is caused by third-party system modifications that load automatically at startup or login, by a peripheral device, by a font conflict, or by corruption of the file system or of certain system caches.
    Please take this step regardless of the results of Step 1.
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards, if applicable. Start up in safe mode and log in to the account with the problem. You must hold down the shift key twice: once when you turn on the computer, and again when you log in.
    Note: If FileVault is enabled, or if a firmware password is set, or if the startup volume is a software RAID, you can’t do this. Ask for further instructions.
    Safe mode is much slower to start up and run than normal, with limited graphics performance, and some things won’t work at all, including sound output and Wi-Fi on certain models. The next normal startup may also be somewhat slow.
    The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    Test while in safe mode. Same problem?
    After testing, restart as usual (not in safe mode) and verify that you still have the problem. Post the results of Steps 1 and 2.

  • After updating to FireFox 16.0.1 in Windows, the address bar stopped working, as well as the search bar, though not immediately. Reinstall didn't fix it.

    Initially I downloaded an AOL-optimized version, but when the problems came up I reinstalled the regular version and it was fine. Two days ago it randomly started again. Address bar won't go anywhere with enter or pressing the arrow button, and the search bar has no search engine. Trying add a search engine by clicking "manage search engines" doesn't help; the "add search enginges" button is unresponsive and there are none in the list to choose from. I uninstalled everything including my customizations and personal settings and reinstalled, which still didn't help. I tried disabling all the plugins and that didn't work either. I even tried searching from the FireFox home page search, since at that point it was the only page I could get to, and even that wouldn't search. The most recent add-on I downloaded was the Evernote Web Clipper I think, but it didn't seem to coincide with the start of the problems.
    Update: I ran a malware program (MalWareBytes) and it came up with nothing. I also got back into FireFox to get the Troubleshooting Information and added it in. In addition, here's my complete plugin/extension list:
    Plugins:
    Foxit Reader Plugin for Mozilla 2.2.1.530
    Google Earth Plugin 6.2.0.5788
    Google Update 1.3.21.123
    Java Deployment Toolkit 7.0.90.5 10.9.2.5
    Java (TM) Platform SE 7 U9 10.9.2.5
    Microsoft Office 2010 14.0.4761.1000
    Microsoft Office 2010 14.0.4730.1010
    Microsoft Windows Media Services 4.1.0.3917
    Shockwave Flash 11.4.402.287
    Silverlight Plugin 4.1.10329.0
    Windows Live Photo Gallery 14.0.8081.709
    Extensions:
    avast! WebRep 7.0.1473

    Sorry you are having problems. First of all try Fifrefox's safemode.
    *[[Troubleshoot Firefox issues using Safe Mode]]
    If that works post back for further advice.
    Next step, if safe mode did not work.
    <u>First: Try a clean install, <sub>(you have had a none standard version installed previously)</sub></u><br /> that involves deleting the program files. Then if necessary try troubleshooting by creating and using a clean empty Firefox profile.
    See
    * this recent post [/questions/940399#answer-377134]
    * http://kb.mozillazine.org/Standard_diagnostic_-_Firefox#Clean_reinstall
    <u>Second: try a New Profile</u>
    *http://kb.mozillazine.org/Profile_Manager#Creating_a_new_profile
    * this will be an additional profile, it is still worth backing up any existing or currently working profile on a regular basis
    **[[Back up and restore information in Firefox profiles]]
    * Until you are absolutely confident about the repercussions I suggest
    ** always use an empty folder when creating a new profile
    ** never delete or rename profiles, just disable or remove shortcuts
    ** after creating a new test profile open it and check for any addons or plugins that may be have been included by default

  • Firefox 3.6.9 - xmarks runs but does not complete; google search bar does not work

    my xmarks will not synch - it just runs continually
    my google search bar does not search - it just returns and does nothing - i read that having personas causes this - but i had them before
    i understand there are other issues with incompatibilities in 3.6.9 - are fixes on way

    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]
    Your above posted system details show outdated plugin(s) with known security and stability risks.
    *Shockwave Flash 10.0 r22
    Update the [[Managing the Flash plugin|Flash]] plugin to the latest version.
    *http://www.adobe.com/software/flash/about/

  • When I click the URL bar or the search bar, it doesn't select the text or show the cursor like it used to.

    AS the question says, when I clicked the search bar in previous versions, "Google" would disappear and I would see the flashing cursor. When I clicked in the URL of a blank tab, it would select all the text, and I would see a cursor when I typed or backspaced to remove the selected text. Now, none of that happens.
    After a bit of troubleshooting, it appears that any theme I use causes this issue.
    In the previous version of Firefox, I used the exact same plugins add-ons and theme, and never had this issue.
    I went thru and tried disabling all the add-ons and plugins, and unless I run in safe mode, I have the same result. None of the add-ons or plugins causes this. It seems to be any theme I use that causes this.

    Firefox 15+ will still display the grayed placeholder text if you click an input field or text area.<br />
    The placeholder text will only disappear after you have typed at least one character.
    Does a present URL get selected if you click or double-click the location bar?
    There are some prefs to set what will happen if you click the location bar:
    * browser.urlbar.clickSelectsAll
    * browser.urlbar.doubleClickSelectsAll
    *http://kb.mozillazine.org/about:config
    *http://kb.mozillazine.org/About:config_entries

  • Somehow my firefox icon at the google search bar is missing. it happened once before. don't remember how I fixed it. had to do with add-ons or plug-ins. it was a real easy fix to restore but don't remember

    Somehow my firefox logo is missing at the google search bar. I used to see the firefox logo when I opened firefox. Now all I see is the box to put the search terms in, nothing else. This happened once before and there was a real simple fix - but don't remember. it had to do with plug-ins or add-ons. I'm using xp

    same problem here for the past two days till this morning when I created a new profile and removed ALL addons from the default profile. With the new profile with NO addons, I got to the sites with video that I had problem with and flash player did work.
    Now, I only have three addons that have not created the problem; adblock, flashgot, and flashblock.
    Create a new profile and check it out.

  • Flash menu bar won't show up when i upload the site to the web

    I've made a flash e bar using Adobe Flash Catalyst and exported it using "deploy to web". I placed the folder in my dreamweaver site and insert->media->swf and choose main.swf. The weird thing is that it works when i press f12. site: http://martin.venaas.org/ptf/character_vulturous.html                                                                                                                                                                                                                                                                                   
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    <style type="text/css">
    body {
         background-image: url(bilder/1063-stylized-minecraft-dirt-wallpaper-wallchan.jpg);
         background-repeat: no-repeat;
    </style>
    <script src="../Scripts/swfobject_modified.js" type="text/javascript"></script>
    </head>
    <body>
    <table width="1000" align="center" cellpadding="0" cellspacing="5">
      <tr>
        <td height="633" align="left" valign="top"><table width="1000" cellspacing="0" cellpadding="0">
          <tr>
            <td height="50" colspan="4" align="left" valign="top"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="1000" height="50" id="FlashID" title="menu characters">
              <param name="movie" value="../Main.swf" />
              <param name="quality" value="high" />
              <param name="wmode" value="opaque" />
              <param name="swfversion" value="6.0.65.0" />
              <!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. -->
              <param name="expressinstall" value="../Scripts/expressInstall.swf" />
              <!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
              <!--[if !IE]>-->
              <object type="application/x-shockwave-flash" data="../Main.swf" width="1000" height="50">
                <!--<![endif]-->
                <param name="quality" value="high" />
                <param name="wmode" value="opaque" />
                <param name="swfversion" value="6.0.65.0" />
                <param name="expressinstall" value="../Scripts/expressInstall.swf" />
                <!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
                <div>
                  <h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
                  <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" width="112" height="33" /></a></p>
                </div>
                <!--[if !IE]>-->
              </object>
              <!--<![endif]-->
            </object></td>
            </tr>
          <tr>
            <td width="400" rowspan="2" align="left" valign="top"><img src="bilder/vulturous_main.jpg" width="400" height="600" alt="vulturous" /></td>
            <td width="362" rowspan="2" align="left" valign="top"> </td>
            <td width="238" height="169" colspan="2" align="left" valign="top"> </td>
          </tr>
          <tr>
            <td height="413" colspan="2" align="left" valign="top"> </td>
          </tr>
        </table></td>
      </tr>
    </table>
    <script type="text/javascript">
    swfobject.registerObject("FlashID");
    </script>
    </body>
    </html>

    I don't see any Flash code in your link.
    You do realize that Flash Menus are not web & user friendly, right?  They are invisible to non-flash supporting devices like iPhones/iPads, language translators, screen readers and search engines. When people without Flash land on your page, what will they do?
    The best advice I can offer is to ditch flash for navigation and use CSS styled text or the Spry Menus that come with DW.
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb

  • Blank TOC and Search Bar

    What would cause the TOC and top Search bar in the Flash Help
    I've generated to be blank on some user's local PCs and not others.
    I've search the KB and internet and can't find anything. Is it
    something to do with Flash Settings? IE? Has anyone experiened the
    same thing?

    What version of RH? Are there any special characters or
    spaces in your project name? If so, try removing them by renaming
    the project (File > Rename Project).
    In previous threads, when I've suggested enabling the file
    location where your files are generated in the
    Flash
    Player Security Settings page, no one tells me if that solves
    the problem. If the first solution doesn't work, give this a try,
    and please post back whether it works or not.
    @writerIndy500 (welcome to the forums, by the way), does the
    index problem have anything to do with the problem in
    this
    thread? The problem there comes from typing a word beginning
    with "A." Apparently, it was fixed in RH7.
    --Ben

  • I can't get my search bar to change.

    I did an update for my flash player and I had unchecked the box that says make Bing my default search engine. (I hate when my search engine is changed) anyways, everything seemed fine but when I went to search for something it went to Bing. My search bar says Google search and my preferences is set to Google but it still goes to Bing. I have no more ideas. Please help me get Google back.
    Thank you for your time,
    Chelsea

    >>I did an update for my flash player and I had unchecked the box that says make Bing my default search engine.
    It sounds as if you may have been misled into installing genieo/installmac adware/malware from a fake Flash Player update - where did you get this from ?.
    There are detailed manual removal instructions for the genieo scam here and here
    as well as an automated script available from this page
    You should also check for any Safari extensions in Safari - Preferences - Extensions.

  • Can't see scroll arrows and all of text in search bar.

    Okay, if you look at the screenshots below, that explains it all.
    http://img189.imageshack.us/img189/1153/itunesprob.jpg
    It seems like an innocuous problem but I don't know why it is happening. One thing I would say is that when I load iTunes up, everything is fine, but then this problem kicks in randomly. I can still navigate the scroll arrows (even though they're not showing) and make out the text in the search bar but it isn't fully showing. :/
    Message was edited by: andrew.moss
    Message was edited by: andrew.moss

    Is 8 gbs not enough to copy 2000 frames ?
    I have 7.5 gbs free, so every frame should be at least 3.75 mbs to not to fit in RAM
    Also i tried to do as you say, Flash really CAN copy 700 frames, but when i put all the 2000 frames to a symbol, Flash can't put this symbol in the workplace (

  • I lost my search bar, File bar, Bookmarks, and the one where you drag stuff onto, also my Norton bar because i closed them then it would not let me turn them back on!!! Help!!!!

    I lost my search bar, File bar, Bookmarks, and the one where you drag stuff onto, also my Norton bar because i closed them then it would not let me turn them back on!!! Help!!!!

    '''<u>Menu Bar</u>''' (File, Edit, View, History, Bookmarks, Tools, Help) , see: <br/>
    http://support.mozilla.com/en-US/kb/Menu+bar+is+missing
    * Press F10, Menu bar will appear, click View, click Toolbars, click Menu bar
    * Press ALT, the Menu bar will appear, click View, click Toolbars, click Menu bar<br />
    * Hold down the ALT button while pressing V+T+M
    '''<u>Navigation Toolbar</u>''' (Back/forward, Refresh...Home, URL/Location Bar, Search Bar): Do one of the following
    #click View > Toolbars, click on "Navigation Toolbar" to place a check mark, OR#right-click the Menu Bar, click "Navigation Toolbar" to place a check mark. See: <br />
    #*https://support.mozilla.com/en-US/kb/Back+and+forward+or+other+toolbar+items+are+missing
    #*http://support.mozilla.com/en-US/kb/How+to+customize+the+toolbar
    #*http://kb.mozillazine.org/Toolbar_customization
    #*http://kb.mozillazine.org/Bookmarks_history_and_toolbar_buttons_not_working_-_Firefox
    #*http://support.mozilla.com/en-US/kb/Navigation+Toolbar+items
    '''<u>Bookmarks Toolbar</u>''': Same procedure as Navigation Bar except click "Bookmarks Toolbar".<br />
    '''<u>Status Bar</u>''': click View, click Status Bar to place a check mark<br />
    '''<u>Full Screen Mode</u>''': If you have no Toolbars or Tab Bar: Press F11 (F11 is an on/off toggle). See: http://kb.mozillazine.org/Netbooks#Full_screen<br />
    Also see: http://kb.mozillazine.org/Toolbar_customization_-_Firefox#Restoring_missing_menu_or_other_toolbars
    <br />
    You need to update your plugins. It is important to keep them updated due to continuing security fixes and improvements in those plug-ins:
    * Shockwave Flash 10.1 r82
    * Next Generation Java Plug-in 1.6.0_20 for Mozilla browsers
    #'''Check your plugin versions''': http://www.mozilla.com/en-US/plugincheck/
    #*'''Note: plugin check page does not have information on all plugin versions'''
    #'''Update Shockwave Flash'''
    #*Use Firefox to Download and SAVE to your hard drive from one of the links below; '''<u>the links take you directly to the download and you avoid the "getplus" download manager and "extras" (i.e., toolbars, virus scan links, etc.) on the main Adobe page.</u>'''
    #*SAVE to your Desktop so you can find it
    #*After download completes, close Firefox
    #*Click on the file you just downloaded and install
    #**Note: Vista and Win7 users may need to right-click the installer downloaded and choose "Run as Administrator"
    #**Note: Most browsers other than IE will also get updated with this one download
    #**Note: To update IE, same procedure '''<u>but use IE</u>''' to go: http://fpdownload.macromedia.com/get/flashplayer/current/install_flash_player_ax.exe
    #*After installation, restart Firefox and check your version again.
    #*'''<u>Download links and other information</u>''':
    #** https://support.mozilla.com/en-US/kb/Managing+the+Flash+plugin#Updating_Flash
    #** '''<u>or</u>''' you can download, save, then run the manual installers for IE, then for Firefox (and all other browsers) from here: http://kb2.adobe.com/cps/191/tn_19166.html#main_ManualInstaller
    #* Also see: http://support.mozilla.com/en-US/kb/Installing+the+Flash+plugin
    #* Also see (if needed): http://kb2.adobe.com/cps/191/tn_19166.html#main_Uninstall
    #'''Update Java:'''
    #* Download and update instructions: https://support.mozilla.com/en-US/kb/Using+the+Java+plugin+with+Firefox
    #* Removing old versions: http://www.java.com/en/download/faq/remove_olderversions.xml
    #* After the installation, start Firefox and check your version again.

  • Google disappears on list of search engines on search bar

    I used to have Google as the default search engine on Firefox search bar. After Firefox was upgraded to 3.6, I noticed the search bar shows Yahoo as the search engine instead of Google. Google also disappeared from the list of search engine available on the search bar.

    See if you can get back the missing search engines if you left-click the search engines icon and open Manage Search Engines and click Restore Defaults
    You can try to delete search.sqlite and search.json in the [http://kb.mozillazine.org/Profile_folder_-_Firefox Firefox Profile Folder]
    See also http://kb.mozillazine.org/Unable_to_search_or_add_new_engines
    You should check your plugins. You have two Flash plugins and two PDF plugins plus a few more plugins that need to be updated.<br />
    You can check that via https://www.mozilla.com/plugincheck/<br />
    # Shockwave Flash 10.1 r53
    # Macromedia Shockwave for Director Netscape plug-in, version 10.1
    # Shockwave Flash 9.0 r28
    # Adobe Acrobat Plug-In Version 5.00 for Netscape
    # Adobe PDF Plug-In For Firefox and Netscape
    # Next Generation Java Plug-in 1.6.0_18 for Mozilla browsers
    You can find the old Flash 9.0 plugin file NPSWF32.DLL in the plugins folder within the Firefox program folder (C:\Program Files\Mozilla Firefox\plugins\) and remove that file.
    Also remove the flashplayer.xpt file in the components folder.

  • I just downloaded firefox 5 and now I have no search bar in the top right. How do I get it back?

    After restarting the computer when firefox 5 had been downloaded the search bar in the top right is now missing.

    See if it is on the Customize Toolbar window. If so, while the Customize Toolbar window is open, drag it to the location you want it. To open the Customize Toolbar window, do one of the following:
    *click Firefox button > Options > Toolbar Layout
    *using the Menu Bar: View > Toolbars > Custonize
    *HOLD down the ALT key while pressing the keyboard letters VTC
    *right-click on a blank space on a toolbar or at the end of the Tab Bar and choose "Customize".
    If "Search" is not on the Customize Toolbar window, click "Restore Default Set" at the bottom of the Customize Toolbar window and look again.
    <br />
    <br />
    '''You need to update the following.''' The Plugin version(s) shown below was/were submitted with your question and is/are out of date. You should update to avoid known security issues with the version(s) you have installed. Click on "More system info..." to the right of your question to see what was included with your question.
    *Adobe Shockwave for Director Netscape plug-in, version 11.5.9.620
    #'''''Check your plugin versions''''' on either of the following links':
    #*http://www.mozilla.com/en-US/plugincheck/
    #*https://www-trunk.stage.mozilla.com/en-US/plugincheck/
    #*'''Note: plugin check page does not have information on all plugin versions'''
    #*There are plugin specific testing links available from this page:
    #**http://kb.mozillazine.org/Testing_plugins
    #'''Update Shockwave for Director'''
    #*NOTE: this is not the same as Shockwave Flash; this installs the Shockwave Player.
    #*Use Firefox to download and SAVE the installer to your hard drive from the link in the article below (Desktop is a good place so you can find it).
    #*When the download is complete, exit Firefox (File > Exit)
    #*locate and double-click in the installer you just downloaded, let the install complete.
    #*Restart Firefox and check your plugins again.
    #*'''<u>Download link and more information</u>''': http://support.mozilla.com/en-US/kb/Using+the+Shockwave+plugin+with+Firefox

  • How do I search for a specific artist in the itunes store? I can't find a search bar.

    I am trying to find a specific artist who's music I want to purchase but I can not locate a manual search bar to input the artist name. I do not want to nor do I have the time to look through all featured artists to locate the specific artist to purchase. At this point I'm about to go to a brick and mortar store and just buy the CD.
    This is very irritating.
    Chuck D.

    If you are missing the Search field you may be missing the entire top section, together with the progress bar when playing and the red, yellow and green buttons. This can happen if iTunes overlaps the top of the screen (which of course it shouldn't do).
    If this is the case, click and drag on the very bottom right-hand corner of the window (when in Library/Music or the iTunes Store) and drag upwards to reduce the height of the window. Then click on the bottom bar and drag downwards.

  • How can I implentate a search bar in TableViewController iOS

    How can I implentate a search bar in my TableViewController? Code:
    //  ViewController.m
    //  Movie List
    //  Created by Damian on 20/02/15.
    //  Copyright (c) 2015 Tika Software. All rights reserved.
    #import "ViewController.h"
    @interface ViewController ()
    These outlets to the buttons use a `strong` reference instead of `weak` because we want
    to keep the buttons around even if they're not inside a view.
    @property (nonatomic, strong) IBOutlet UIBarButtonItem *editButton;
    @property (nonatomic, strong) IBOutlet UIBarButtonItem *cancelButton;
    @property (nonatomic, strong) IBOutlet UIBarButtonItem *deleteButton;
    @property (nonatomic, strong) IBOutlet UIBarButtonItem *addButton;
    // A simple array of strings for the data model.
    @property (nonatomic, strong) NSMutableArray *dataArray;
    @end
    #pragma mark -
    @implementation ViewController
    - (void)viewDidLoad
        [super viewDidLoad];
         This option is also selected in the storyboard. Usually it is better to configure a table view in a xib/storyboard, but we're redundantly configuring this in code to demonstrate how to do that.
        self.tableView.allowsMultipleSelectionDuringEditing = YES;
        // populate the data array with some example objects
        self.dataArray = [NSMutableArray new];
        NSString *itemFormatString = NSLocalizedString(@"Movie %d", @"Format string for item");
        for (unsigned int itemNumber = 1; itemNumber <= 0; itemNumber++)
            NSString *itemName = [NSString stringWithFormat:itemFormatString, itemNumber];
            [self.dataArray addObject:itemName];
        // make our view consistent
        [self updateButtonsToMatchTableState];
    #pragma mark - UITableViewDelegate
    - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
        return self.dataArray.count;
    - (void)tableView:(UITableView *)tableView didDeselectRowAtIndexPath:(NSIndexPath *)indexPath
        // Update the delete button's title based on how many items are selected.
        [self updateDeleteButtonTitle];
    - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
        // Update the delete button's title based on how many items are selected.
        [self updateButtonsToMatchTableState];
    - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
        // Configure a cell to show the corresponding string from the array.
        static NSString *kCellID = @"cellID";
        UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:kCellID];
        cell.textLabel.text = [self.dataArray objectAtIndex:indexPath.row];
        return cell;
    #pragma mark - Action methods
    - (IBAction)editAction:(id)sender
        [self.tableView setEditing:YES animated:YES];
        [self updateButtonsToMatchTableState];
    - (IBAction)cancelAction:(id)sender
        [self.tableView setEditing:NO animated:YES];
        [self updateButtonsToMatchTableState];
    - (void)actionSheet:(UIActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex
        // The user tapped one of the OK/Cancel buttons.
        if (buttonIndex == 0)
            // Delete what the user selected.
            NSArray *selectedRows = [self.tableView indexPathsForSelectedRows];
            BOOL deleteSpecificRows = selectedRows.count > 0;
            if (deleteSpecificRows)
                // Build an NSIndexSet of all the objects to delete, so they can all be removed at once.
                NSMutableIndexSet *indicesOfItemsToDelete = [NSMutableIndexSet new];
                for (NSIndexPath *selectionIndex in selectedRows)
                    [indicesOfItemsToDelete addIndex:selectionIndex.row];
                // Delete the objects from our data model.
                [self.dataArray removeObjectsAtIndexes:indicesOfItemsToDelete];
                // Tell the tableView that we deleted the objects
                [self.tableView deleteRowsAtIndexPaths:selectedRows withRowAnimation:UITableViewRowAnimationAutomatic];
            else
                // Delete everything, delete the objects from our data model.
                [self.dataArray removeAllObjects];
                // Tell the tableView that we deleted the objects.
                // Because we are deleting all the rows, just reload the current table section
                [self.tableView reloadSections:[NSIndexSet indexSetWithIndex:0] withRowAnimation:UITableViewRowAnimationAutomatic];
            // Exit editing mode after the deletion.
            [self.tableView setEditing:NO animated:YES];
            [self updateButtonsToMatchTableState];
    - (IBAction)deleteAction:(id)sender
        // Open a dialog with just an OK button.
        NSString *actionTitle;
        if (([[self.tableView indexPathsForSelectedRows] count] == 1)) {
            actionTitle = NSLocalizedString(@"Are you sure you want to remove this movie?", @"");
        else
            actionTitle = NSLocalizedString(@"Are you sure you want to remove these movies?", @"");
        NSString *cancelTitle = NSLocalizedString(@"Cancel", @"Cancel title for item removal action");
        NSString *okTitle = NSLocalizedString(@"OK", @"OK title for item removal action");
        UIActionSheet *actionSheet = [[UIActionSheet alloc] initWithTitle:actionTitle
                                                                 delegate:self
                                                        cancelButtonTitle:cancelTitle
                                                   destructiveButtonTitle:okTitle
                                                        otherButtonTitles:nil];
        actionSheet.actionSheetStyle = UIActionSheetStyleDefault;
        // Show from our table view (pops up in the middle of the table).
        [actionSheet showInView:self.view];
    - (IBAction)addAction:(id)sender
        [self.dataArray addObject:@"New Movie"];
        // Tell the tableView about the item that was added.
        NSIndexPath *indexPathOfNewItem = [NSIndexPath indexPathForRowself.dataArray.count - 1) inSection:0];
        [self.tableView insertRowsAtIndexPaths:@[indexPathOfNewItem]
                              withRowAnimation:UITableViewRowAnimationAutomatic];
        // Tell the tableView we have finished adding or removing items.
        [self.tableView endUpdates];
        // Scroll the tableView so the new item is visible
        [self.tableView scrollToRowAtIndexPath:indexPathOfNewItem
                              atScrollPosition:UITableViewScrollPositionBottom
                                      animated:YES];
        // Update the buttons if we need to.
        [self updateButtonsToMatchTableState];
    #pragma mark - Updating button state
    - (void)updateButtonsToMatchTableState
        if (self.tableView.editing)
            // Show the option to cancel the edit.
            self.navigationItem.rightBarButtonItem = self.cancelButton;
            [self updateDeleteButtonTitle];
            // Show the delete button.
            self.navigationItem.leftBarButtonItem = self.deleteButton;
        else
            // Not in editing mode.
            self.navigationItem.leftBarButtonItem = self.addButton;
            // Show the edit button, but disable the edit button if there's nothing to edit.
            if (self.dataArray.count > 0)
                self.editButton.enabled = YES;
            else
                self.editButton.enabled = NO;
            self.navigationItem.rightBarButtonItem = self.editButton;
    - (void)updateDeleteButtonTitle
        // Update the delete button's title, based on how many items are selected
        NSArray *selectedRows = [self.tableView indexPathsForSelectedRows];
        BOOL allItemsAreSelected = selectedRows.count == self.dataArray.count;
        BOOL noItemsAreSelected = selectedRows.count == 0;
        if (allItemsAreSelected || noItemsAreSelected)
            self.deleteButton.title = NSLocalizedString(@"Delete All", @"");
        else
            NSString *titleFormatString =
            NSLocalizedString(@"Delete (%d)", @"Title for delete button with placeholder for number");
            self.deleteButton.title = [NSString stringWithFormat:titleFormatString, selectedRows.count];
    @end

    Make sure that you do not run Firefox in full screen mode (press F11 or Fn + F11 to toggle; Mac: Command+Shift+F).
    *https://support.mozilla.org/kb/how-to-use-full-screen
    Make sure that toolbars like the "Navigation Toolbar" and the "Bookmarks Toolbar" are visible.
    *Firefox menu button > Options
    *View > Toolbars (press F10 to display the menu bar)
    *Right-click empty toolbar area
    Use Toolbar Layout (Customize) to open the Customize window and set which toolbar items to display.
    *check that "Bookmarks Toolbar items" is on the Bookmarks Toolbar
    *if "Bookmarks Toolbar items" is not on the Bookmarks Toolbar then drag it back from the toolbar palette into the Customize window to the Bookmarks Toolbar
    *if missing items are in the toolbar palette then drag them back from the Customize window on the toolbar
    *if you do not see an item on a toolbar and in the toolbar palette then click the "Restore Default Set" button to restore the default toolbar setup
    *https://support.mozilla.org/kb/How+to+customize+the+toolbar
    *https://support.mozilla.org/kb/Back+and+forward+or+other+toolbar+items+are+missing

Maybe you are looking for

  • IMac or Macbook Pro? Help

    Okay, so I need a new mac. I run Logic Pro 8 on my 1.33gHz Powerbook G4 w/ 1.25GB RAM, and basically My computer is soo slow its affecting my creative juices. I Know I knwo... I should have upgraded a long time ago. I am Debating Whether to get a new

  • Crys Reports - Mark the Legend Labels and Chart bar - values custom names

    Hai, I want to change the default names/labels of the chart elements (for e.g. bar chart - the labels and values) , in my reports the labels are directly taken from the database columns, how can I change this?, Someone please help... Thank you in adv

  • JNLP app using ejb - OutOfMemoryError

    I have an application, fully signed, that connects to a database on the same intranet, using ejb's. When the user clicks on icons, the system loads data from the database into various tables. each data object type does a separate access to the databa

  • Extract name from pdf digital signature

    I'm looking for info on extracting the digital signature name from a digitally signed field already in the pdf. I can see the signature when I open the file in Adobe Reader, but when I read the fields using cfpdfform, the digital signature field and

  • Little contact photo when receiving a call (just like on the commercials)

    I keep seeing the iPhone commercials where the person plays with some features of the phone and then receives a call at the end. Instead of it showing their photo all blown up and huge, it shows their wallpaper in the background and has their photo a