attachMovie attaching the wrong movie

I ran into a problem with attachMovie today.
As you can see in below code, I have 6 movieclips, all named (and appointed an identifier) accordingly. but to my everlasting amazement… Flash doesn’t seem to handle my identifiers correctly. For the upBtn it attaches the btnRight instance in all three cases and for the downBtn, it attaches the left and middle btn correctly, but where the right one is supposed to be, it attaches btnLeft…

myMC2, upBtn and downBtn are all emptyMC’s created with createEmptyMC.

I have tried:

  • renaming the identifiers
  • loading them directly into myMC2.
  • commenting out the ‘middle’ and ‘right’ assignments
  • changing the depths
myMC2.upBtn.attachMovie("btnLeft", "btnLeft", 1, {_x:0, _y:0});
myMC2.downBtn.attachMovie("btnLeft2", "btnLeft", 1, {_x:0, _y:0});
myMC2.upBtn.attachMovie("btnMiddle", "btnMiddle", 2, {_x:9, _y:0, _width:wVar});
myMC2.downBtn.attachMovie("btnMiddle2", "btnMiddle", 2, {_x:9, _y:0, _width:wVar});
myMC2.upBtn.attachMovie("btnRight", "btnRight", 3, {_x:xPos, _y:0});
myMC2.downBtn.attachMovie("btnRight2", "btnRight", 3, {_x:xPos, _y:0});

Hopefully someone will be able to help me with this seamingly easy task :frowning: Is it a bug? Should I use an interval?