# Need help figuring my own code(lol)

**URL:** <https://forum.kirupa.com/t/need-help-figuring-my-own-code-lol/192568>\
**Category:** Uncategorized\
**Created:** [June 29, 2006, 1:54pm UTC](https://forum.kirupa.com/t/need-help-figuring-my-own-code-lol/192568 "2006-06-29T13:54:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lone\_wild\_wolf](https://avatars.discourse-cdn.com/v4/letter/l/3da27b/32.png) [@lone\_wild\_wolf](https://forum.kirupa.com/u/lone_wild_wolf)\
**Post date:** [June 29, 2006, 1:54pm UTC](https://forum.kirupa.com/t/need-help-figuring-my-own-code-lol/192568/1 "2006-06-29T13:54:24Z")

</div>

Hi guys,  
I know this is kinda wierd,but i need some explaination of my own code ;).  
I was hoping someone could help me out:

```auto

stop();
_global.enemies = _root.enemydata;
_global.enemyno = _root.enemynumber;
_global.enemDataArray = [[]];
_global.phase = 1;
for (i=0; i<_global.enemyno; i++) {
 enemy = _global.enemies*[0];
 tempAr = [select, _global.enemies*[1]];
 _global.enemDataArray.push(tempAr);
 var im:MovieClip = _root.createEmptyMovieClip(i, _root.getNextHighestDepth());
 var ins:MovieClip = _root.im.createEmptyMovieClip("ins", _root.getNextHighestDepth());
 _root.im.ins.loadMovie(enemy+".swf");
 with (_root.im) {
  _root.im.onPress = function() {
   _root.enemystatus = "alive";
   _root.atkbut._visible = true;
   _root.enemy = 'difined';
   _global.enemies[this._name][1] -= 10;
   _root.curmon = this._name;
   trace("You Hit Enemy:"+_root.curmon);
   _root.onEnterFrame = function() {
    _root.enemhp = _global.enemies[_root.curmon][1];
    _root.enemyno = _global.enemyno;
    _global.i = i;
    if ((_global.enemies[_root.curmon][1]<=0) && (_root.enemystatus == "alive")) {
     _root.enemystatus = "dead";
     _global.enemyno--;
     unloadMovie(_root.curmon);
    }
   };
  };
  _y = 100+(50*i);
  _x = 100+(5*i);
 }
}

```

BTW i mean where and how are the movies loaded!  
:snooze:
