# \[F8\]\[AS2\] I need help with array / \_mc scope

**URL:** <https://forum.kirupa.com/t/f8-as2-i-need-help-with-array--mc-scope/217828>\
**Category:** flash\
**Created:** [March 2, 2007, 5:26am UTC](https://forum.kirupa.com/t/f8-as2-i-need-help-with-array--mc-scope/217828 "2007-03-02T05:26:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![joshchernoff](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/joshchernoff/32/1852_2.png) [@joshchernoff](https://forum.kirupa.com/u/joshchernoff)\
**Post date:** [March 2, 2007, 5:26am UTC](https://forum.kirupa.com/t/f8-as2-i-need-help-with-array--mc-scope/217828/1 "2007-03-02T05:26:13Z")

</div>

why wont this work?

some\_mc[“nested\_mc\_name”].onPress = function():Void {  
trace (“test”)  
};

I’m trying to make a dynamic function so I can pass a string var for the name of any nested movieClip I want on the fly.
