Won't let me reset child index

I've got multiple images being loaded from an xml document and when they're created they add it to the stage and call a setIndex function to set it to 0. But when I try to the same object later on when they're called I get this compiler error:
I marked in bold the lines that relate. Out of the last two lines I marked bold I get this compiler error when I use the first one:
     1118: Implicit coercion of a value with static type Object to a possibly unrelated type flash.display:Sprite.
and this output error when from the last bold line:
    TypeError: Error #2007: Parameter child must be non-null.
function xmlLoaded(e:Event):void {
     e.currentTarget.removeEventListener("complete",xmlLoaded);
     myXML = new XML(e.target.data);
     xDoc = new XMLDocument();
     xDoc.ignoreWhite = true;
     xDoc.parseXML(myXML.toXMLString());
     thumbSrc = new Vector.<String>(xDoc.firstChild.childNodes.length);
     imgSrc = new Vector.<String>(xDoc.firstChild.childNodes.length);
     imgArray.push(thumbSrc,imgSrc,spriteSrc);
     //trace(xDoc.firstChild.childNodes[0].firstChild.firstChild);
     for (var i:int = 0; i < xDoc.firstChild.childNodes.length; i++) {
          var thumbTainer:Sprite = new Sprite();
          thumbTainer.name = "thumbHolder" + i;
          spriteSrc.push(thumbTainer);
          thumbSrc[i] = xDoc.firstChild.childNodes[i].firstChild.nextSibling.firstChild;
          imgSrc[i] = xDoc.firstChild.childNodes[i].firstChild.firstChild;
          if (i == 0) {
               loadThumb(i);
function loadThumb(num:int):void {
     if (getter.vector[2][num] != null) {
         stage.addChild(getter.vector[2][num]);
          setIndex(getter.vector[2][num]);
          var thumbLoader:Loader = new Loader();
          thumbLoader.load(new URLRequest(getter.vector[0][num]));
          thumbLoader.contentLoaderInfo.addEventListener("progressEvent",imgProgress,false,0,true);
          thumbLoader.contentLoaderInfo.addEventListener("complete",function(e:Event){thumbLoaded(t humbLoader,num); },false,0,true);
function setIndex(holder:Sprite) {
     stage.setChildIndex(holder,0);
function thumbLoaded(loader:Loader, num:int):void {
     var thumbBit:Bitmap = Bitmap(loader.content);
     var thumbData:BitmapData = BitmapData(thumbBit.bitmapData);
     var Width:Number = thumbData.width;
     var Height:Number = thumbData.height;
     var holder:Sprite = getter.vector[2][num];
     var rect:Rectangle = new Rectangle(0,0,Width,Height);
     var numX:Number = getNumX(num) * 325;
     var numY:Number = Math.floor(num/3) * 350;
     thumbData.pixelDissolve(thumbData,rect,new Point(400,400),2);
     holder.addChild(thumbBit);
     holder.alpha /= 2;
     holder.addEventListener("rollOver", alphaIn);
     holder.addEventListener("click",showImage);
     holder.x = stage.globalToLocal(new Point(0,0)).x - 350 + numX;
     holder.y = stage.globalToLocal(new Point(0,0)).y - 350 + numY;
     holder.z = 900;
     holder.buttonMode = true;
     loadThumb(num + 1);
     loader.removeEventListener("complete",thumbLoaded);
function showImage(e:MouseEvent):void {
     var others:Object;
     var obj:DisplayObject;
     var midStageX:Number = stage.stageWidth/2 - e.currentTarget.width/2 - 120;
     var midStageY:Number = stage.stageHeight/2 - e.currentTarget.height/2 - 155;
     for (var i:int = 0;i < getter.vector[0].length;i++) {
          if (e.currentTarget.name != "thumbHolder" + i) {
               others = stage.getChildByName("thumbHolder" + i);
               setIndex(others);
               //TweenLite.to(others,count,{alpha:0});
          } else {
               //obj = e.currentTarget as DisplayObject;
               stage.setChildIndex(obj,numChildren-1);
     TweenLite.to(e.currentTarget,count,{x:midStageX,y:midStageY});
     e.currentTarget.alpha = 1;
     e.currentTarget.removeEventListener("rollOut",alphaOut);
     e.currentTarget.addEventListener("enterFrame",zoomIn);
     e.currentTarget.removeEventListener("click",showImage);

1.  if getter.vector[2][num] is a sprite use:
setIndex(Sprite(getter.vector[2][num]));
2.  obj is null.  define it.

Similar Messages

  • HT5312 So I have a problem with iTunes not letting me download anything without first responding to some security questions which I don't remember setting up, how can fix it? Oh, and it won't let me reset the questions either!

    So I have a problem with iTunes not letting me download anything without first responding to some security questions which I don't remember setting up, how can fix it? Oh, and it won't let me reset the questions either!

    If you mean that you aren't getting the reset link, then from the page that you posted from :
    Note: The option to send an email to reset your security questions and answers will not be available if a rescue email address is not provided. You will need to contact iTunes Store support in order to do so. 
    You can contact iTunes Support in your country via this page : http://support.apple.com/kb/HT5699
    When they've been reset you can then use the steps half-way down the HT5312 page that you posted from to add a rescue email address for potential future use

  • Anyone having trouble with iCloud?  It first started on my iPhone5; it's not connecting to iCloud.  Tells me I need to reset my password, but won't let me reset my password

    Anyone having trouble with iCloud?  It first started on my iPhone5; it's not connecting to iCloud.  Tells me I need to reset my password, but won't let me reset my password

    All I can suggest is that you open that file on the MBA and save it as a new file, then see if you can open the new one on the iMac.

  • It won't let me reset my password.

    For some reason 2 days ago when trying to login to Skype it didn't recognise my password even though i'm 100% sure it was right however I tried to reset my password with a new password and when I change it it comes up with "Please Contact Customer Service"! It won't let me change it and I can't sign into Skype.. I have 2 Skype accounts and they both have the same Email on them. I'm using Windows 7 on my sisters laptop with the latest version of Skype. I need some help please anyone? 

    I have exactly the same problem on a Mac, myiphone and my iPad.  Also two accounts neither of the verified passords were accepted and neither of the two new resets worked.  Also got "conatct customer care"...totally useless and gets you into a nonseseical loop of crazy questions...I just want to SPEAK to someone at SKPYE for help. Now 6 days!
    Any advice please?

  • Apple ID won't let me reset my security questions. I don't know what I'm doing wrong?

    I have tried multiple times but it won't let me. I have to change them because I forgot what the original ones are. Help!?

          Congratulations on being the next victim of Apple's current SNAFU!      
    If you don't have a rescue email address set, then you're SoL.
    If you do, then reset your info and check in there.
    If not, you'll have to contact iTS, and wait for God knows how long for Apple to complete its pending investigation in this SNAFU.
    iTunes Store Support
    http://www.apple.com/emea/support/itunes/contact.html

  • Won't let me reset password

    Everytime i try to sign in or reset my password it says, "The information entered does not match our records. Please check your entry and try again".

    Hey TurtleTuts,
    I was able to locate your account using the e-mail address you used to register for the forum and have submitted a password reset request on your behalf. You should receive an automatically-generated message with a password reset link in the next 10-15 minutes, so make sure to keep an eye on both your inbox and junk mail folders. The link will only be valid for a short period of time, so let me know via private message if you're unable to access that e-mail right away.
    To send me a PM, simply sign into the forum and then click on either the link in my signature or the letter icon in the upper right-hand corner of the page.
    Aaron|Social Media Specialist | Best Buy® Corporate
     Private Message

  • Help we just got iPad air and it keeps telling me to set a sign in for iCloud, when I put my name in it says I use already but won't let me reset

    need help with iCloud sign up.  Says I already have sign in but when iut password reset says wrong answers.

    You need 8 characters or more to connect.

  • I can't remember my security question answers, and my account won't let me reset them either. Please help!

    I just received my new iPad, and I've been buying songs and apps with no problems until iTunes asked me my security questions... I totally forgot the answers! I've already reset my password, and that didn't help. I also tried adding a new email address and that didn't help either. Can anyone help?

    If you have a rescue email address (which is not the same thing as an alternate email address) set up on your account then you can try going to https://appleid.apple.com/ and click 'Manage your Apple ID' on the right-hand side of that page and log into your account. Then click on 'Password and Security' on the left-hand side of that page and on the right-hand side you might see an option to send security question reset info to your rescue email address.
    If you don't have a rescue email address then see if the instructions on this user tip helps : https://discussions.apple.com/docs/DOC-4551

  • What to do when you forget your ipod security questions and it won't let you reset?

    I've forgotten my security questions for my ipod and I already checked on my apple id to see if I could reset them but I can't. Does anyone know what to do?

    You need to ask Apple to reset your security questions. To do this, click here and pick a method; if that page doesn't list one for your country or you're unable to call, fill out and submit this form.
    (117683)

  • AirPort Extreme won't let me reset my password.

    When I try to reset my password, I get the following message: "Advertising a service globally using Bonjour requires a global hostname." To my knowledge, I'm not even using Bonjour for anything.

    I have exactly the same problem on a Mac, myiphone and my iPad.  Also two accounts neither of the verified passords were accepted and neither of the two new resets worked.  Also got "conatct customer care"...totally useless and gets you into a nonseseical loop of crazy questions...I just want to SPEAK to someone at SKPYE for help. Now 6 days!
    Any advice please?

  • HT5312 This won't let me fill in the questions asked here ?

    This website won't let me reset my security questions and it won't let me type it in .

    The Three Best Alternatives for Security Questions and Rescue Mail
         1.  Send Apple an email request at: Apple - Support - iTunes Store - Contact Us.
         2.  Call Apple Support in your country: Customer Service: Contact Apple support.
         3.  Rescue email address and how to reset Apple ID security questions.
    A substitute for using the security questions is to use 2-step verification:
    Two-step verification FAQ Get answers to frequently asked questions about two-step verification for Apple ID.

  • HT1414 My iphone 4 is stuck. master reset did not work. won't slide to unlock and if do get to the passcode screen, it won't recognize my entries.  I have tried connecting to itunes through a pc, but since I can't unlock my phone it won't let me do it the

    Iphone 4 is stuck.  I have tried a master reset and it didn't work.  it won't slide to unlock or power off.  I did somehow get to the passcode screen but it didn't let me enter anything.  I have also tried on a pc through itunes but since I can't unlock it, it won't let me do that either.

    http://support.apple.com/kb/ht1808

  • Every time I try to download an app it says billing info is incorrect but its all correct it won't let me sign in using a diff apple id even when I reset my phone anyone else had this problem if so how do I fix it?

    Every time I try to download an app it says billing info is incorrect but its all correct it won't let me sign in using a diff apple id even when I reset my phone anyone else had this problem if so how do I fix it?

    Amylovelyy wrote:
    Every time I try to download an app it says billing info is incorrect but its all correct ...
    Contact iTunes Customer Service and request assistance
    Use this Link  >  Apple  Support  iTunes Store  Contact
    Amylovelyy wrote:
    ...  it won't let me sign in using a diff apple id ...
    Settings > iTunes and App store > Apple ID = Sign Out... Then Sign In using the preferred Apple ID.
    It should be Noted that anything Downloaded with a Particular Apple ID is tied to that Apple ID and Cannot be Merged or Transferred to a Different Apple ID.

  • My ipod won't let me connect to wi-fi, won't let me restore or reset it, and it keeps telling me i knew a passcode for any one and I never set a password up. How do I fix this?

    My ipod won't let me connect to wi-fi, won't let me restore or reset it, and it keeps telling me i knew a passcode for any one and I never set a password up. How do I fix this? Says try again in 6180146 min. my passcode setting is off, but restrictions are on. Very frustrated. please help

    Disabled
    Place the iOS device in Recovery Mode and then connect to your computer and restore via iTunes. The iPod will be erased.
    iOS: Wrong passcode results in red disabled screen                         
    If recovery mode does not work try DFU mode.                        
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings        
    For how to restore:
    iTunes: Restoring iOS software
    To restore from backup see:
    iOS: How to back up     
    If you restore from iCloud backup the apps will be automatically downloaded. If you restore from iTunes backup the apps and music have to be in the iTunes library since synced media like apps and music are not included in the backup of the iOS device that iTunes makes.
    You can redownload iTunes purchases by:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store        

  • My iPad updated to new version for an app and during startup I accidentally hitt iCloud I don't want that want to go back to my old sign in way how to reset and not lose downloads help please it won't let me reinserted with email instead

    The question says it all I used to just sign in and I don't want cloud or to lose my apps just go back to email like before and I can't get it to let me go through questions again in setup now my mic to txt is gone and I am disabled I tried reset no data lost its different I want no cloud just back to before help me please how do I reset without loss and redo questions of how to sign in . Sorry no mic so hard to type. I want out of cloud hit it by mistake don't want to lose all though I messed up enough the search isn't same google just restart without wiping but it never lets me switch out of cloud and back to first way that's all I want no iCloud keep apps and then fix how it was set before
    Step by step please I try sleep dnc home but to sign in it goes to cloud won't let me redo startup questions all because of update help

    You can change the email address you use as your apple ID. this doesn't mean you have to delete the old email address as email.
    When you delete an email from your device, it is only removed from the device, it does not delete your emails or the email account.

Maybe you are looking for

  • HP 3800 Color LJ Prints 2 black lines. Pic Included

    Hi, I have a HP Color LaserJet 3800. Since last summer it has been printing 2 black horizontal lines across every page. They are always in the same spot, so I'm thinking it is just something that needs to get cleaned and have ruled out the cartridges

  • BAPI_DOCUMENT_CHECKIN2

    Hi all, I am using the document BAPIs for creating a document (BAPI_DOCUMENT_CREATE) and checking in it (BAPI_DOCUMENT_CHECKIN2), and although I do not get any error message, the document seems not to be checked in... does someone know if this works,

  • Safari 5 won't print backgrounds

    So I'm trying to print from Safari 5, and even though I have "Print Backgrounds" checked in the print dialog, I cannot get background no matter what. In fact, on some pages, the layout is ganked - especially horizontal nav menus printing as plain-tex

  • IE security warning- asks to install Adobe Flash Player

    We encountered this problem when running SWF created with Flash CS6 on IE8. It will show a blank page with a smaller icon at the top left corner first. Then, a dialog box "Internet Explorer - Security Warning" shows up, Do you want to install this so

  • Can I install Soundtrack Pro only from FCS disks

    can I do this using say Pacifist or some other way. I installed the rest, thinking I could but i think I made a mistake. ps