Question
"generic" MC
Is there a way to use a "GENERIC" name for all MC's
example: instead of this
_root.myClip.hit1.onPress = function()
_root.myClip.hit2.onPress = function()
_root.myClip.hit3.onPress = function()
_root.myClip.hit4.onPress = function()
etc..
can it be done like this
_root.myClip.GENERIC.onPress = function()
with GENERIC somehow assigned the hit1, hit2, hit3, hit4 elements etc..
I thought about an array but I can't seem to get it to work.
Is this even possible?
Thanks!
D
example: instead of this
_root.myClip.hit1.onPress = function()
_root.myClip.hit2.onPress = function()
_root.myClip.hit3.onPress = function()
_root.myClip.hit4.onPress = function()
etc..
can it be done like this
_root.myClip.GENERIC.onPress = function()
with GENERIC somehow assigned the hit1, hit2, hit3, hit4 elements etc..
I thought about an array but I can't seem to get it to work.
Is this even possible?
Thanks!
D