How to return _global

I think I just need someone to help correct the syntax of my code:

firstOne = _root.content.content_group+_global.whichOne;

I have 3 movieclips called content_group1, content_group2, etc. I have a button that calls this: _global.whichOne = “1”;

Now, how can I correct that code above so I get content_groupX?


firstOne = _root.content["content_group"+_global.whichOne];



Thanks so much.

You’re welcome :slight_smile: