# Addressing array inside a movieclip

**URL:** <https://forum.kirupa.com/t/addressing-array-inside-a-movieclip/170536>\
**Category:** flash\
**Created:** [November 27, 2005, 9:06am UTC](https://forum.kirupa.com/t/addressing-array-inside-a-movieclip/170536 "2005-11-27T09:06:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Phat7](https://avatars.discourse-cdn.com/v4/letter/p/6de8d8/32.png) [@Phat7](https://forum.kirupa.com/u/Phat7)\
**Post date:** [November 27, 2005, 9:06am UTC](https://forum.kirupa.com/t/addressing-array-inside-a-movieclip/170536/1 "2005-11-27T09:06:12Z")

</div>

Short and sweet: I can’t address the array i’ve created inside the movieclip from outside! :sigh:

Array name is [FONT=Courier New][COLOR=Magenta]categories[/COLOR][/FONT], inside the [FONT=Courier New][COLOR=Magenta]templates[/COLOR][/FONT] movieclip in [FONT=Courier New][COLOR=Magenta]\_root[/COLOR][/FONT]; I press a button on [FONT=Courier New][COLOR=Magenta]\_root[/COLOR][/FONT] to trace the array inside the movieclip using this code:

```auto
on(release){
trace(_root.templates.categories);
}

```

It gives me: [FONT=Courier New]undefined[/FONT]

Any ideas?
