3 Replies Latest reply on Aug 24, 2013 5:40 AM by kglad

    [i].iva = i;

    Ron Colmen Level 2

      This doesn't work:

      var dDraggedMC:Array = [_root.b_mc, _root.bb_mc, _root.a_mc, _root.ab_mc];

      var dDroppedMC:Array = [_root.b_mc.lxSD_mc, _root.bb_mc.lxSC_mc, _root.a_mc.lxSB_mc, _root.ab_mc.lxSA_mc];

       

      this._parent.stopDrag();

                          for (i=0; i<dDraggedMC.length; i++) {

                                    dDraggedMC[i].iva = i;

       

                          if (this._parent.hitTest(dDraggedMC[i])) {

       

                                    if(tf_mc._parent==tl){

                                              var mc:MovieClip = dDroppedMC[this.iva];

       

       

      but this works

      this._parent.stopDrag();

               //for (i=0; i<dDraggedMC.length; i++) {

                   // dDraggedMC[i].iva = i;

       

               if (this._parent.hitTest(_root.b_mc)) {

       

                     if(tf_mc._parent==tl){

                         var mc:MovieClip = _root.b_mc.lxSD_mc;

       

       

      (There are NO errors in the output panel) What's wrong here? how can i fix it?