# AS MC addItem paths

**URL:** <https://forum.kirupa.com/t/as-mc-additem-paths/142162>\
**Category:** Uncategorized\
**Created:** [March 26, 2005, 2:16am UTC](https://forum.kirupa.com/t/as-mc-additem-paths/142162 "2005-03-26T02:16:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![unclesond](https://avatars.discourse-cdn.com/v4/letter/u/df788c/32.png) [@unclesond](https://forum.kirupa.com/u/unclesond)\
**Post date:** [March 26, 2005, 2:16am UTC](https://forum.kirupa.com/t/as-mc-additem-paths/142162/1 "2005-03-26T02:16:05Z")

</div>

Hi, had a look through some forums but couldn’t find anything related,so I thought I’d best ask.

I’m modifying a yugop menu system that thru alot fo script and a few movie clips produces a menu bar. Using the additem script, you can add more buttons by a line of script at a time. e.g.

[AS]ymenu\_mc.addItem(“01”, {text:“home”, colour:0xFF0000});  
ymenu\_mc.addItem(“02”, {text:“home2”, colour:0xFF0000});  
etc.[/AS]

This does this 7 times, to make seven buttons out of one movie clip (ymenu\_mc). But i want these buttons created via the add item to load in other swfs. so my questions is pretty simple, what is the path of each of the 7 buttons if you use an add item command? I presumed it would add an 01 or 02 etc.

[AS]ymenu\_mc.01.onRelease = function(){  
this.sidemenu.loadMovie(“menu001.swf”);.[/AS]

but this doesn’t seem to work. any ideas? as i’ve never used this add item command and flash help file didn’t really help

thanks in advance
