# Loading MC into array for switching

**URL:** <https://forum.kirupa.com/t/loading-mc-into-array-for-switching/177152>\
**Category:** flash\
**Created:** [January 30, 2006, 6:27pm UTC](https://forum.kirupa.com/t/loading-mc-into-array-for-switching/177152 "2006-01-30T18:27:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![aknatn](https://avatars.discourse-cdn.com/v4/letter/a/0ea827/32.png) [@aknatn](https://forum.kirupa.com/u/aknatn)\
**Post date:** [January 30, 2006, 6:27pm UTC](https://forum.kirupa.com/t/loading-mc-into-array-for-switching/177152/1 "2006-01-30T18:27:52Z")

</div>

Let me see is I can word this correctly. I have a movie with eleven elements. Each one will be controlled with it’s own toggle slider switch. The code on there is good, so that if the individual slider is “on” then I can pefrom whatever actions and if the slider is “off” I can perform actions.

What I need to be able to do with this is when the switch is “on” it will run the animation for the realted MC and make all of the other sliders disabled. This way the user must turn “off” the slider to make the other switches enabled. Ultimatley this should allow only 1 MC to run at a time.

I need to do this programmatically as much as possible, I do not want the timlies filled with lots of confusing named frames and such.

I was thinking during the “on” event it could load all of the other MC’s into an array and then animate the array into alpha 0 to get them out of the way of the stage. And then possibly run some code which “disables” the other sliders.

I am semi-proficient with AS and no all the rules, so I can keep up. Can anyone help me out here, a link to my fla is below and a link to the swf. There are no animations yet as I need this logic sorted first.  
Thanks in advance!

Please no criticisms yet, it is a work in progress, except to benifit functionality.

[http://structure.myftp.org/flash/porf/mainV2.fla](http://structure.myftp.org/flash/porf/mainV2.fla)

[http://structure.myftp.org/flash/porf/mainV2.swf](http://structure.myftp.org/flash/porf/mainV2.swf)
