Sign in to follow this  
jeteran

Multiple names for inside a MC in Flash

Recommended Posts

jeteran    311
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this