Jump to content
  • Advertisement
Sign in to follow this  

Multiple names for inside a MC in Flash

This topic is 3835 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi guys from the net. I have a problem in AS. I want to name multiple var inside a MC. Like this:
 if (avaen_mc.hitTest(jail_mc.limit1_mc)) { ... }
 if (avaen_mc.hitTest(jail_mc.limit2_mc)) { ... }

Instead of going on each limit, I made a for like this:
for (var i=[1]; i<[19]; i++) {
	var nm = "limit" + i + "_mc";

But how do I attach it inside the jail_mc? I tried with attachMovie function but didn't work. Thank you guys!

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!