flash help
- Started
- Last post
- 10 Responses
- snizl
I need help figuring out how to access a group of dynamically attached mc's. Within a couple of for loops I have:
var masterHouse:MovieClip = _root.housesHolder.multiHolder.a... ["multicom" + m + q], _root.housesHolder.multiHolder.g... {_x:mX[m], _y:mY[m]});I need to target all of the dynamically created mc's. How do I access the var masterHouse or the group of clips outside of the _root, such as in a button??
Any help appreciated. Thanks.
- toastie0
you can access it by the same path from anywhere, though it's strongly encouraged to NEVER use _root.
- snizl0
I know how to directly target individual clips by using their instance names, but I need to target all of the instances that were created in the loop.
- toastie0
im not sure what you mean. you would target them exactly the same way: in a loop.
- snizl0
So I would put the loop within the button I am trying to use to affect the mc's?
- toastie0
wherever
myButton.onRelease = function() {
for(var i=0; i < nummcs; i++) {
long.ass.path["myMc"+i].whatever...
}
}
- snizl0
Gotcha, I think i understand now.
- snizl0
Dang, didn't work.
- toastie0
what are you trying to do? and post your code.
- snizl0
Are you on aim?? It might be easier to discuss it that way. I appreciate you helping me.
- toastie0
yeah, Valaam0