Actionscript : Bahhh
Actionscript : Bahhh
Out of context: Reply #6
- Started
- Last post
- 6 Responses
- SmilingBuddh0
The array method is definitely the way to go. It's cleaner and faster.
You can refer to a second MC in the scope of a first MC like this:
mc1["mc2"]
This works because flash 'stores' all of the MCs in a given file in a set of nested arrays. These arrays are associative, so youc an access any item in the array using it's instance name.
You can take this further:
mc1["mc2"]["mc3"]
mc1["mc2"]["mc3"]["mc4"]It's really fast. The other way (using eval) is outdated and way too complicated. So do it this way.