cannot detect if it is has only 1 item in the drop-down list box?

I have an array of strings to put them in the drop-down list box, a drop-down list box. I will select an item in the drop-down list box drop-down list and press the button 'delete '. It removes the item from the drop-down list box. but when I come to the last drop-down list box, im unable to remove offshore because it does not get pass this line...

myEntries.selectedItem.label is myArray [i]

Why do myEntries.selectedItem.label is not detected in the last element?

Entries.addEventListener (Event.CHANGE, EntriesChange)

               }

          }

"" var str_entries:String = "";

//set default

function EntriesChange(e:Event):void {}

for (var i = 0; i < myArray.length; i ++)

               {

{ if (myEntries.selectedItem.label == {myArray [i].)}

str_entries = myArray [i];

trace ("str_entries =" + str_entries)

                    }

               }

          }

You can not able to delete the index 0th, the code below, did the trick:

delbtn.addEventListener (MouseEvent.CLICK, delfn);
function delfn(e:MouseEvent):void {}
var str:String=String(Entries.selectedItem.label).toLowerCase();
for (var i = 0; i)<>
var str1:String=String(myArray[i]).toLowerCase();
If (str == str1) {}
Entries.removeItem (Entries.selectedItem);
If (Entries.length == 0) Entries.removeAll ();
str_entries = myArray [i];
}
}
}

Tags: Adobe Animate

Similar Questions

  • How can I change the automatic country setting that is displayed in the payment gateway billing address? There is only one country in the drop-down list, not my current country

    How can I change the automatic country setting that is displayed in the payment gateway billing address? There is only one country in the drop-down list, not my current country

    A few changes/Verify account https://forums.adobe.com/thread/1465499 links that can help

    -html http://helpx.adobe.com/x-productkb/policy-pricing/change-country-associated-with-adobe-id.

  • RH7: Project showing only Times New Roman in drop-down list of fonts

    Hello

    I have problems with a project which has been very well a few weeks ago. For now, the only option in the drop-down list selection of fonts is "Times New Roman"... a nice font, but we write our documentation in Arial, so it takes a little that for the moment we can't select any font for our documents, only TNR.

    I'm not very experienced with HR, but I checked the style sheet (seems to be linked properly and the content is the same as style sheets to projects that have no problems), the models seem ok too... I'm puzzled.

    Other things happening (apparently at random):

    -new themes are created without associated style sheet

    -new topics have TNR 12 as default font size (our models wear 9 Arial)

    -old open subjects without a style sheet; Add in the HTML code required for the style sheet doesn't seem to help.

    All this happened on my colleague PC, I can't replicate them on mine. Whatever it is, on our two PC the only display of fonts is TNR.

    This can be important: projects have been added recently to Robo SourceControl. Can it be linked to that?

    I'd appreciate any help, especially since we have a big release coming next week and all documentation must be in top form by then

    I have reproduced this problem by deleting the file rhfontset.apj in a test project (and the removal of the DPC). Theoretically, you should just be able to copy the file from one of the samples project.

  • I disabled the menu and cannot access the drop-down list to get back them

    I disabled all the menus to make a screenshot and now I can't access the drop-down list to get back them

    This has happened

    Just once or twice

    is today

    You can hide the menu bar in Firefox 3.6 on Windows, on "view > toolbars" or via the contextual right click menu on a toolbar.
    Press in and hold the Alt key to display the menu bar.
    Go to "view > toolbars", right click on the menu bar, or press Alt + V T to select the toolbars to show or hide.

    See also what happened to the file, edit and view menus?

  • I downoladed and tried to install CS6 on my computer after that machine has been upgraded to Windows 10.  I get a message that says "serial number is not for the product." The drop-down list does not contain CS6 Design and Web Premium.  What should I do

    I downloaded and tried to install CS6 on my computer after that machine has been upgraded to Windows 10.  I get a message that says "serial number is not for the product." The drop-down list does not contain CS6 Design and Web Premium.  What should I do to get loaded and enabled on my computer?

    That fall down, and the serial number you provide must identify the previous version that you upgraded because CS6 is an upgraded version in your case.

    Error "this serial number is not for a product calling it" | CS6, CS5.5, CS5

    http://helpx.Adobe.com/Creative-Suite/KB/error-serial-number-qualifying-product.html

  • Old laptop has only WEP in the drop-down list of options wifi, I need to do using WPA2-PSK. How to do it?

    It's an old Toshiba laptop Satellite Pro M10 with an Intel PRO/wireless LAN 2100 3B Mini PCI adapt (whatever that means!), I did all the updates of Windows, but when I try and establish a connection wifi encryption options of data only from the drop-down are 'disabled' and 'WEP '.

    I checked on the Toshiba site and downloaded the latest wifi and internet updates, I even tried Intel Update site, but they have nothing appropriate (something to do with Toshiba, make changes to drivers for Intel do not offer updates).

    It connects to the internet without problem if I use a cable, but it's not really practical, wifi would be much better.

    Can anyone suggest something to make my laptop use/recognize the WPA2-PSK?

    Thank you very much

    I talked to Toshiba, very nice chap called Daniel spent 30 minutes on the phone and found a very old and apparently obscure update for me to download. Once this has been done the phone was able to connect to the router WPA2-PSK using WEP. Not too sure exactly what the update does but at least it will now connect to modern wi - fi, even if it is only at 11 Mbit / s. apparently, it's as much as the material can handle!

  • Hide the drop-down list when you print only when "PLEASE SELECT" is selected (unused field).

    Our form has several drop-down lists that by default the option "Choose", and not all of them are used whenever the form is used.  When we print a copy of each document, we would like the (unused) field "Choose" to disappear when printing - to make a copy of paper filter.  Is there a script for this?  I tried to use only the general framework ' Visible but does not print ", but of course, the field prints any - we need to print only when there was one another option as the default"Select"is selected.  Thanks in advance for your help.

    Coleen

    You can use a custom validation script, something like:

    Event.Target.Display = event.value = "choose"? display.noPrint: display.visible;

    To put this into effect, you will need to make a different choice and place it back to "choose." Another option would be to place as a custom Format script.

  • The drop down menu boxes that appear under the heading of Firefox do not fill. A form of box on the screen, but it is empty. Given zero no has not solved the problem.

    The file, editing, display and help tabs that were on the previous version of FireFox Menu bar top are apparently incorporated into the "FireFox" drop-down box in the latest version of the browser. I was unable to open those tabs earlier, so by the recommendation of the Support Forum, I have Firefox on my laptop. Now not only the tabs above are missing after this reset, but the drop down menu does not open in any submenus. What I see now is a box on the surrounded black screen, but sub menu selections such as save as, print, copy etc are not shown in the box. This is why the Navigator is not functional in its current state.
    Does anyone have a fix for this problem that will not delete my favorites and other content stored on Firefox? Please save me to return to Internet Explorer.
    AJJC

    Try disabling hardware acceleration in Firefox.

  • Microsoft Silverlight cannot be activated. There is no option to select only activate because it is impossible to select the drop-down list even if it is the most recent version

    I can't activate Microsoft Silverlight. I've attached a screenshot of control. This is the only plugin that says "disabled" next to him. I've updated to the latest version and there is no option on the page of the plugins to acivate because he says 'never activate' and no other selection is selectable.

    Unfortunately, your screenshot is not come through. You can link it to a reply in this thread if you wish.

    If you exit Firefox and it starts again since installing Silverlight, please try this in case a file is locked.

    Can also see you in the editor preferences as follows:

    (1) in a new tab, type or paste Subject: config in the address bar and press ENTER. Click on the button promising to be careful.

    (2) in the search above the list box, type or paste the npc and make a pause so that the list is filtered

    (3) If you find a preference for the plugin.state.npctrl preparing to something other than one, try to double click on it and set it to 1. For reference:

    • 0 = > never activate
    • 1 = > ask to activate
    • 2 = > always activate

    If the preference has a different status from 'the user game' as 'locked', which would indicate a different problem.

  • Satellite Pro M70: WMP only on the drop-down list of media buttons

    Hey there.

    I have the Satellite Pro M70. I know where to go if I want to change my toshiba media buttons works with, but when I go there it only shows Windows Media Player on the menu drop down.
    I tried to install and reinstall my Itunes but nothing seems to work.
    I have to go through a complicated procedure to make my Itunes appear there or something?

    Please help... I feel that these buttons are useless if I do not use them. Laughing out loud.

    Thank you very much. appreciate your help.
    -Paul-

    Command buttons Toshiba supports only the Windows Media Player (if the CD inserted) or DVD to win (if available DVD player and DVD inserted)
    You cannot use it with an application of part 3 as ITunes.

  • iMovie not show iTunes in the drop-down list. IMovie 09 and El Capitan 10.11.5 running. This has happened only. Previously worked well.

    Previously, I was able to access the library iTunes in iMovie 09 without problem but now when I click on the icon of music in iMovie to access my music all I see are pre-loaded sound effects and not the content of my iTunes library. I'm under El Capitan 10.11.5.

    The latest version of iTunes 12.4.0 is not compatible with iMovie version 9 and will appear only in iMovie 10.1.x. You must export the music that you want to use in iMovie 9 and made drag in iMovie. Also, be aware that iMovie 9 is not compatible with El Capitan, so you could experience problems with frames display, black picture in the viewer etc.

  • Only update the drop-down list without refreshing the entire page

    Hi all

    I use javascript to refresh the combo but it also refreshes the whole page.

    When I choose element in a list window select will be open when I close the window pop up, I want to refresh only select list not the whole Page.

    Thank you.

    Hi Dan,.

    I did all the steps, but did not work.

    still have same problem.

    Apex. Oracle.com credentials (name application training)

    work-apex_example namespace name

    [email protected]

    Pass-Disiz$ 1234

    Kind regards

    Arianne.

    I followed the idea of Dene that precede and modify your function

    check your application.

    1. create a hidden point P2_HIDDEN_ITEM with protected vale only

    2. the value of 0 to P2_HIDDEN_ITEM at the opening of your modal page.

    added to your opening of your modal dialog function

    Apex. Item ("P2_HIDDEN_ITEM") .setValue ('0');

    3 position 1 P2_HIDDEN_ITEM so that the closing of your modal page.

    added to your close your modal dialog box function

    Apex. Item ("P2_HIDDEN_ITEM") .setValue ('1');

    4 creates a dynamic action to refresh lov point on the evolution of P2_HIDDEN_ITEM value equal to 1

    Hope this helps you,

    Kind regards

    Jitendra

  • Adobe Audition... only says: "The waiting" in the drop-down list CC...

    Help, please.

    I installed a trial of CC hearing on my last machine but never used.

    Since I bought a new Macbook Pro and now need to start.

    Hearing is not installed on my machine, so I logged on to get it.

    Cannot go beyond that:

    Screen Shot 2015-10-31 at 16.00.48.png

    Restart your computer and try again.

  • Why has the drop-down list of search engines under a simple list to a field of identical icons?

    Until the most recent update from the drop-down list of the available sites in the search box was easy to read and simple to use. Being able to target its research so easily and conveniently was one of the attractive features of Firefox.

    Now, I am faced with a range of more often indecipherable and in many icons that can lead to confusion of case. I hate it and I want my simple ad verbal back!

    Yes, mousing over the icons and hovering will reveal what they represent. But to have to do this each time which was a quick routine and practice irritating slow and clumsy.

    Please give us at least choose to have icons or a list. Please...

    Open Subject: config and toggle this false preference

    browser.search.showOneOffButtons

  • Cannot download the Vista Setup program because it is not in the drop-down list OS everything?

    Could someone tell me where to download the Dutch programme of appropriate installation and the most recent available for Adobe Acrobat Reader for Windows Vista 32 bit?

    Because someone had the wonderful idea to completely remove the Vista operating system from the drop down menu on the page "get.reader"...?

    Adobe Acrobat Reader DC installeren - Alle versies

    incredible...

    Thanks in advance!

    Hi ThaPlayah ,

    Would like to inform that Acrobat Reader DC & XI is not compatible with Windows Vista, Acrobat Reader X is compatible with this Version of the OS & you can install this version using this link:- ftp://ftp.adobe.com/pub/adobe/reader/win/10.x/

    Let me know if it works,

    Kind regards

    Christian

Maybe you are looking for