Why do I get an error when the code is working?

Hi guys,
I get an error on the 'employeeList[i].id' and 'employeeList[i].label'.
Though everything works when I click the 'Search Button' (all text fields populate with the correct data).... but I still get an 1010 error.
Any idea's why?
search_txt = input textfield
name_txt = dynamic textfield
id_txt = dynamic textfield
TypeError: Error #1010: A term is undefined and has no properties.
var employeeList:Array = new Array();
// array populated in another function using
// employeeList.push({label:employeed[i], id:employeed[i+1]});
function search(e:MouseEvent):void{
    for(var i:int=0; employeeList.length; i++){
        if(search_txt.text == employeeList[i].id){
            name_txt.text = employeeList[i].label;
            id_txt.text = employeeList[i].id;
search_mc.addEventListener(MouseEvent.MOUSE_UP,search,false,0,true);
Thanks,
Sky

Probably because you have an error... when does your loop stop with what you have?
for(var i:int=0; employeeList.length; i++)

Similar Messages

  • Why do I get this error when trying to use my bluetooth headset as a listening device? There was an error connecting to your audio device. Make sure it is turned on and in range. The audio portion of the program you were using may have to be restarted.

    Why do I get this error when trying to use my bluetooth headset as a listening device? There was an error connecting to your audio device. Make sure it is turned on and in range. The audio portion of the program you were using may have to be restarted.

    I may have already resolved this issue buy removing the device from my computer and re-pairing it. It is currently working just fine.

  • Why am I getting an error when I place two OAM files one after the other in different pages?

    Why am I getting an error when I place two OAM files one after the other in different pages? They do not load or play correctly.  They are both configured to play automatically with a .125 second delay and both have a white rectangle "poster" over for a hidden effect.

    Thanks for the idea, Scott! I initially tried your idea, but my OAM files were still not loading correctly.  I tried other combinations of OAM files, and it seems to work fine.
    Back to my original OAM files: I made sure that my elements in my Edge Animate project had different names. I originally copied parts of some elements from one to another, and I think it was confusing to DPS to read it. 

  • More than maximum 5 filtered album lists trying to register. This will fail,Why i am getting this error when i pick video from Photo library.

    I am able to pick 4 videos from the Photo library in my iPhoneAPP but when i try to pick 5th one it throws an error:
    "More than maximum 5 filtered album lists trying to register. This will fail,Why i am getting this error when i pick video from Photo library."

    Hello Tate r Bulic
    I don't have any idea how to remove this error,can i pick more than 5 videos from the photo library...
    If it's then please help me and gimme idea..Thanks

  • Why am i getting an error when trying to download ios6

    Why am i getting an error when trying ios6

    I have no idea. Don't think anybody else will be able to figure it out either from the information you have provided.
    Might help if we knew the error message and/or number. It is a start anyway.

  • Why do I get this error when I want to run a test using Ant?

    Why do I get this error when I run the Ant build file?
    Testsuite: JUnit
    Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
    Caused an ERROR
    JUnit
    java.lang.ClassNotFoundException: JUnit
    at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:316)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:280)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:374)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:242)
    at org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
    at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:423)
    at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:137)

    Abder-Rahman wrote:
    In the "XML" file, I was giving the name of the test as JUnit ---> <test name="JUnit">Well, do you have a class called just "JUnit" that contains a test?

  • Why do I get server error when logging into Icloud on my pc

    Why do i get server error when i try to log into icloud control panel on my pc

    document.write(''); document.cookie = 'CTINC=1; expires=Fri, 08-Oct-2021 04:56:11 GMT; domain=.royalbank.com; path=/'; document.cookie = 'SiteStamp=XXDtZ12Ou3WtAF; expires=Fri, 08-Oct-2021 04:56:11 GMT; domain=.royalbank.com; path=/'; document.cookie = 'Persistent_id_XXDtZ12Ou3WtAF=0BD14F766ACA:1318308966; expires=Fri, 08-Oct-2021 04:56:11 GMT; domain=.royalbank.com; path=/';

  • Why do I get unknown error when I try to add to my iCloud storage

    Why do I get unknown error when I try and add storage to iCloud account ? I have funds in account but I do not have a credit card # on file.

    This didn't solve it for me. Card details already there, and iTunes purchases working fine.
    But just to be sure I' have re-entered and resaved my card info and checked, re-entered and re-checked my appleID info.
    Still not working.
    Anyone got any other suggestions?

  • Why do I get an error when I try to configure a channel with the tktds7x4 driver?

    I use the TDS754D scope. My complete function call is:
    errStatus = tktds7x4_ConfigureChannel( ScopeHandle, "CH1", 5.0, 2.0, TKTDS7X4_VAL_DC, 1.0, VI_TRUE);
    When I step through it, I see that I get an error on the driver line
    viCheckParm(Ivi_SetAttributeReal64 (vi, channel, TKTDS7X4_ATTR_VERTICAL_RANGE, 0, range), 3, "Range");
    I'm also getting an error with tktds7x4_ConfigureEdgeTriggerSource
    I just downloaded and installed this driver, and it is the first time I have tried to use it. I'm running it in Microsoft Visual C++ 6.0, but it is a C program.

    I hadn't done too much debugging when I wrote the question. All I knew was that I got a timeout error when I used that call. Over the weekend I tracked it down to a problem in the function tktds7x4_InvalidateTriggerAttributes, and specifically, the line
    checkErr( Ivi_GetAttributeViString (vi, VI_NULL, TKTDS7X4_ATTR_INSTR_COMM_TRIGGER_SOURCE, 0, BUFFER_SIZE, triggerSource));
    My scope does not have the 2C option, so there is no communication trigger function. When the driver queries the communication trigger source, the scope apparently does not return anything because it does not understand. I added the lines
    if (!strcmp(triggerSource, channelName))
    checkErr (Ivi_InvalidateAttribute (vi, VI_NULL, TKTDS7X4_ATTR_TRIGGER_LEVEL));
    checkErr(
    Ivi_GetAttributeViInt32(vi, VI_NULL, TKTDS7X4_ATTR_INSTR_OPTIONS, 0, &options));
    if (isOpt2C)
    before that line of code (at line 7360), along with a closing brace before the label "Error:"
    Also, at line 399, I added the following 3 lines:
    { "CH1" , "CH1" },
    { "CH2" , "CH2" },
    { "CH3" , "CH3" },
    { "CH4" , "CH4" },
    even though the comment for triggerSourceStringTableEntries says that it is for non-channel sources only. I am not positive that it was necessary, but I think it was.
    With those changes, the driver now works correctly for me. I have attached my updated driver source code. I am never happy to change a commercial driver, though. If someone were to re-download this driver and re-install it, all my changes would be lost, and the driver would no longer work.
    Attachments:
    tktds7x4.c ‏664 KB

  • Why do I get an error when clicking on topics in email?

    I subscribe to the forum posts that I create and by doing so I get an email when the thread has been updated. The email contains a link to the message thread but when I click I got an Apple.com webpage saying "An error has occurred". Does anyone else have this problem? How do you fix it?

    That's the truth. I get the same error when I log in
    (and it's on my Mac computers!!).
    Thanks for sharing! I was beginning to feel paranoid and think it was a Windows XP thing...

  • Why do I get this error when I try to install Reader XI in Windows 8.1?

    "Error 1303.  The installer has insufficient privileges to access this directory: C:\Program Files (X86)\Adobe\Reader 11.0\Reader.  The installation cannot continue.  Log on as an administrator or contact your system administrator."
    This is my personal home computer.  I have no administrator to contact.  I have gone through all the trouble-shooting suggestions provided by Adobe but I still get this message trying to download Reader XI or X.  I previously had Reader on this computer but it started failing so I uninstalled it and now I'm trying to re-install it.  My antivirus system is Webroot SecureAnywhere and it says there are no problems with my computer.  I'm using a 6 month old Dell computer and System Mechanic also says there are no problems with my computer.
    Any suggestions will be appreciated.

    I have the exact same problems as reported by Vector at the start of this thread.  Running Windows 8, Reader stopped responding, so I uninstalled and tried to reinstall XI, I get Error 1303, with the issue being permissions on that same directory (x86\Adobe\Reader 11.0\Reader).  If I open Explorer and try to navigate to that folder, I see it there under the Reader 11.0 folder, but if I double-click I cannot even open it, I get an "is not accessible.  Access is denied" error.  I checked the Security settings on the Reader 11.0 folder, SYSTEM, Administrators, Users, and TrustedInstaller all have Full Control.  When I go into Advanced and check the box for "Replace all child permission entries with inheritable permission entries from this object" and click Apply, I get an error for the \Reader folder (Failed to enumerate objects in the container.  Access is denied").  I tried deleting the Adobe folder on down, hoping I could just start fresh with the re-install,  but it does not allow me to.  Completely stuck.  Any ideas?

  • Can anyone tell me why I'm getting this error when trying to make visibility variables

    I have set these up in previous versions of Illustrator. CS and illustrator 10 worked just fine with Variables. Now I can't seem to switch between data sets. I just keep getting this error when I try to switch from one data set to another.

    I'll start with the permissions and see if it changes the behavior.

  • Why do I get "unknown error" when trying to download apps with my iPhone when I put the correct password in?

    I keep getting "unknown error" message come up when I try to get an app. I have put my password in correctly but I then get a message saying I've put my password in incorrectly too many times. So I change my password but I still get the "unknown error" message. I have changed my password 4 times now and nothing is working

    I received this email from Apple and this corrected the problem for me...  I only had to reset the iTunes cache
    1) Open iTunes
    2) At the top menu, click File > Preferences (iTunes > Preferences on a Mac)
    3) In the Preferences menu, click the Advanced tab
    4) In the Advanced menu, you should see a button that says "Reset Cache". Please click this button.

  • Why do I get an error when trying to use a link in the forum?

    I just tried to use the link that Varad offered in Redirect certain users with login procedure and I got an error:
    The specified thread [0] was not found.
    I got the same thing when trying to use a similar link a couple of days ago. They sound like something I might benefit from, but I can' get to them.
    The link URL looks like Re: logon username determines page that opens, how can I accomplish this?
    Any ideas?
    Thanks,
    Gregory
    P.S. I'm using Firefox 3.0.4

    Tony,
    That's what I thought, but apparently it worked for Stefan. If you go to Stefan's post (first link above) do you also see the same link as I have attempted to copy? In Stefan's post, do you see the question mark in a diamond?
    Thanks,
    Gregory

  • Why do I get this error when running the PID Control-Single Channel.vi: "Requested value is not a supported value for this property."

    Error -200077 occurred at Property Node DAQmx Timing (arg 3) in DAQmx Timing (Sample Clock).vi:1->PID Control-Single Channel.vi
    Requested value is not a supported value for this property.
    Property: SampQuant.SampMode
    You Have Requested: Hardware Timed Single Point
    You Can Select: Finite Samples, Continuous Samples
    Author: Pcorcs
    Attachments:
    PID Control-Single Channel.vi ‏53 KB

    Actually I have already tried a few things you suggested and got as far as the DAQmx Write vi. The error at the DAQmx was a buffer error indicating i needed to set it to 2 instead of the default of 1. Tried using the DAQmx Input and Output Buffer vi to change buffer, with no luck.
    Attachments:
    PID Control-Single Channel.vi ‏53 KB

Maybe you are looking for

  • I have a problem with a cd player

    My boyfriend is incarcerated and he bought a Sony cd player from Access Secure Pak in 2011. The ball bearing which he says reads the cd's and makes them play came out. I just need to know how much will it cost to get it fixed and how can he go about

  • Issue related to STO return billing

    hi expert, 1) user have created PO then created delivery then Invoice. now user have created return delivery and when user try to bill the return quentity. system give error" sales organisation is not define" so guid me where to check and its transec

  • Invoice lists

    Hi Gurus, I want to use Invoice lists, hence updated my Billing document type with Invoice list type 'LR'.  Using VF21 when i input two Billing numbers the error log shows  'Document is not relevant for invoice lists' . Can someone give me some valua

  • Automatic reminder - PO acknoledgement

    Hi, I would like to generate an automatic reminder for PO acknowledgement to vendor via email after 10 days to external vendor, and we already have the Purchasing Value Key setup in the system. However, we are struggling on the output type MAHN setup

  • Is it Possible to Grab Photos from Your E-Mail?

    I've gotten a few pics in my e-mail, but can I save them to my photos section? If so, how?