PDA

View Full Version : [MX] Assigning different MCs same instance name



delirium
October 7th, 2003, 02:14 AM
I was wondering if it's possible to assign seperate MC's the same instance name. Say, like, 'boundary' so I can have various boundaries and not have to worry about it.

I could use a for loop and name each boundary something like bounds1, bounds2, bounds3 etc. but I'm wondering if there is an even easier way.

kode
October 7th, 2003, 03:02 AM
Nope, you can't. :-\

What's wrong with the for loop? I love 'em! :P

senocular
October 7th, 2003, 08:32 AM
still cant deny having the same name would be easier. ;) For loops are great though. ... you might be able to make it a little easier using ASBroadcaster. That loops through arrays calling functions on each element in the array and its much faster than average for loops (by around 50%).

Phat7
October 7th, 2003, 08:34 AM
I can never use the for loops. :sigh: It always gives me crap like: the script is slowing your computer to death and you need to do smth about it... :h:

kode
October 7th, 2003, 08:42 AM
Originally posted by senocular
still cant deny having the same name would be easier. ;) For loops are great though. ... you might be able to make it a little easier using ASBroadcaster. That loops through arrays calling functions on each element in the array and its much faster than average for loops (by around 50%).
Well, yeah, it would be easier. :P
And that's a great idea!! :thumb:

The_Vulcan
October 7th, 2003, 11:46 PM
You can have multiple movies with the same instance name.


that is as long as you assign them to different levels.

you would then just have to make sure you target the correct level.

delirium
October 8th, 2003, 03:49 PM
How do you set an MC to a different level? Also, is there a limit to the amount of levels?

senocular
October 8th, 2003, 04:33 PM
well its not so much levels as scopes or timelines (or targets etc). That just means having like

_root.movie1.boundry
_root.movie2.boundry

Seperate movies, but they exist in seperate timelines. To reference either, you would need to specifially target each appropriately. boundry alone wont do it for both