# Please explain this error

**URL:** <https://forum.kirupa.com/t/please-explain-this-error/187884>\
**Category:** flash\
**Created:** [May 3, 2006, 12:17am UTC](https://forum.kirupa.com/t/please-explain-this-error/187884 "2006-05-03T00:17:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![artistwantab](https://avatars.discourse-cdn.com/v4/letter/a/bbce88/32.png) [@artistwantab](https://forum.kirupa.com/u/artistwantab)\
**Post date:** [May 3, 2006, 12:17am UTC](https://forum.kirupa.com/t/please-explain-this-error/187884/1 "2006-05-03T00:17:07Z")

</div>

**Error** Scene=Scene 1, layer=a, frame=1:Line 135: There is no method with the name ‘attachMovie’.

Here is the code?

```auto
function myOnRollOver (id) {
 var boxNames = ["yb", "ob", "rb", "bb", "pb", "gb"];
 for (var i = 0; i < boxNames.length; i++) {
  var box = this[boxNames*];
  if (id == 0) {
   yelOnRollOver (box);
  }
  if (id == 1) {
   orgOnRollOver (box);
  }
  if (id == 2) {
   redOnRollOver (box);
  }
  if (id == 3) {
   pplOnRollOver (box);
  }
  else {
  }
 }
}
//Yellow Button
function yelOnRollOver () {
 var mcMenuTitles = ["yt", "ot", "rt", "bt", "pt", "gt"];
 for (var i = 0; i < mcMenuTitles.length; i++) {
  var titles = this[mcMenuTitles*];
  var yt:MovieClip = (yb.attachMovie ("yelBtn", "yt", +i, i));
  btnYel._width = yb._width;
  btnYel._y = yb._y;
  //Tween  
  new Tween (yt, "_alpha", Back.easeInOut, 0, 100, 1, true);
  new Tween (yt, "_y", Strong.easeOut, 0, 175, 3, true);
 }
 new Tween (yb, "_alpha", Back.easeInOut, 50, 125, 2, true);
}
//myBio Script
function myBio () {
//info
}

```

The error occurs on the orgBoxRollOver.

```auto

function orgBoxRollOver () {
 for (var i = 0; i < 1; i++) {
  var btnOrg:MovieClip = (ob.attachMovie ("yelBtn", "yt", +i, i));
  orgBtn._width = ob._width;
  OrgBtn._y = ob._y;
  //Tween  
  new Tween (orgBtn, "_alpha", Back.easeInOut, 0, 100, 2, true);
  new Tween (orgBtn, "_y", Bounce.easeOut, 0, 175, 4, true);
 }
 new Tween (ob, "_alpha", Back.easeInOut, 50, 125, 2, true);
}

```

The error occurs on the orgBoxRollOver.
