# Flash as2 puzzling movieClip location. Take a look please

**URL:** <https://forum.kirupa.com/t/flash-as2-puzzling-movieclip-location-take-a-look-please/331308>\
**Category:** Uncategorized\
**Created:** [July 3, 2013, 6:01pm UTC](https://forum.kirupa.com/t/flash-as2-puzzling-movieclip-location-take-a-look-please/331308 "2013-07-03T18:01:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jason\_Scholz](https://avatars.discourse-cdn.com/v4/letter/j/53a042/32.png) [@Jason\_Scholz](https://forum.kirupa.com/u/Jason_Scholz)\
**Post date:** [July 3, 2013, 6:01pm UTC](https://forum.kirupa.com/t/flash-as2-puzzling-movieclip-location-take-a-look-please/331308/1 "2013-07-03T18:01:01Z")

</div>

Really simple, I have 9 movieClips on the main timeline. Alpha’s all set to zero. All set to export to actionscript. Each movieClip is named(spot1, spot2…spot9). When I test the movie, I am trying to get my spider\_mc to randomly attach to one of the spots. Here is the code I am working with so far on the main timeline:

function spiderLocation() {  
\_root.attachMovie(“spider\_mc”, “spider\_mc”,spider\_mc.getNextHighestDepth());  
var randomSpot:Number = Math.floor(Math.random()\*9);  
spider\_mc.\_x = [“spot”+randomSpot].\_x;  
spider\_mc.\_y = [“spot”+randomSpot].\_y;  
}

No errors, however the spider\_mc which I am trying to call from the library is not appearing in any of the spot1 through spot9 locations.
