# Accessing hotspot mcs from inside of an Object()

**URL:** <https://forum.kirupa.com/t/accessing-hotspot-mcs-from-inside-of-an-object/323529>\
**Category:** flash\
**Created:** [July 5, 2011, 3:10pm UTC](https://forum.kirupa.com/t/accessing-hotspot-mcs-from-inside-of-an-object/323529 "2011-07-05T15:10:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![chrscote](https://avatars.discourse-cdn.com/v4/letter/c/e8c25b/32.png) [@chrscote](https://forum.kirupa.com/u/chrscote)\
**Post date:** [July 5, 2011, 3:10pm UTC](https://forum.kirupa.com/t/accessing-hotspot-mcs-from-inside-of-an-object/323529/1 "2011-07-05T15:10:07Z")

</div>

First a little background: I am trying to use a new script that uses XML to dynamically create a menu on the stage. Within the XML, I am establishing a function to use with that button. One button may just link to something on the web while another will simple display/hide a specific movieclip on the stage. I also have another button that I need to use to show any hotspots on the stage. Originally, I had the code on the instance of a static button on the stage and used a loop to get the items on the stage. Now, though, I have this “generic” Object() with a function called showHot. I have been playing around with using \_parent, but can’t figure out how to get to the items on the stage. All my hotspot movieclips’ names start with “hs”, so if I can just figure out how to loop through the items on the stage, I can check the names of those items.

Chris
