Variable = 2 MovieClips?

Can I make a variable equal two movieclips? Like:
nav1 = _root.nav.nav1 & _root.map.map1;

And then run a function that would control both? Like:

function closeout() {
nav1.gotoAndStop(3);
}

no

and i cant think of any workarounds either other than doing it the long way like every one else :wink:

Prophet.

What about an array?

fair enough yer…

was gonna say sumit REALLY stupid but i wont :blush:

myArr = new Array(_root.nav.nav1, _root.map.map1)
for(i=0;i<myArr.length;i++)
    myArr*.gotoAndPlay(3)
}

good catch lunatic

Prophet.

awesome. 'cuz I wasn’t gonna say that I had no clue HOW to do it - just knew it was possible :beam:

what was you gonna say prophet? c’mon tellmetellmetellmetellme!

[SIZE=-4]besides i’ve always wanted to try out that ignore list thing[/SIZE] :stuck_out_tongue:

Thanks Prophet! But I ended up accomplishing my task another way. I wrote a function to close out the other sections of the site when you click on a button.

function closeout(currentClip) {
	if (curentClip != 1){
	_root.nav.nav1.gotoAndStop(1);
	_root.map.map1.gotoAndStop(1);}

	if (curentClip != 2){
	_root.nav.nav2.gotoAndStop(1);
	_root.map.map2.gotoAndStop(1);}
	
	if (curentClip != 3){
	_root.nav.nav3.gotoAndStop(1);
	_root.map.map3.gotoAndStop(1);}	
	
	if (curentClip != 4){
	_root.nav.nav4.gotoAndStop(1);
	_root.map.map4.gotoAndStop(1);}
	
	if (curentClip != 5){
	_root.nav.nav5.gotoAndStop(1);
	_root.map.map5.gotoAndStop(1);}
	
	if (curentClip != 6){
	_root.nav.nav6.gotoAndStop(1);
	_root.map.map6.gotoAndStop(1);}
	
	if (curentClip != 7){
	_root.nav.nav7.gotoAndStop(1);
	_root.map.map7.gotoAndStop(1);}	
}

And called the function (from nav1 for example) like this:

on (release){
		_root.closeout(1);
}

My actionscript skillls are improving! Thanks to this forum.

sorry lunatic, couldnt help meself! :stuck_out_tongue:

Prophet.