flash: target dynamic mc
- Started
- Last post
- 5 Responses
- snizl
I am having a problem targeting a dynamic txt box within a dynamically attached movieclip. You can view the code here: http://pastebin.coconut.se/?id=4…
On line 148 is where I am trying to grab the value out of an array,and populate the dynamically attached mc's. If I put a hard value of the instance number it works. But i need the value to be dynamic. Any help would be greatly appreciated.
- enjine0
line 148 is empty dude
- enjine0
i guess you mean those output text fields in the 40's?
- enjine0
the way you have this written, all of the textfields are in the same movieclip... _root
- snizl0
http://pastebin.coconut.se/?id=4…
Didn't realize the numbering is different depending on which browser you view that page in.But if you scroll down toward the bottom to where I am attaching the movieclips dynamically
if(cBrand[k] == "Meritage Homes"){
//trace("meritage homes");_root.housesHolder.meritageHolde... ["meritage"+ k], k + 1, {_x:cX[k], _y:cY[k]} );
//populate icon_number txt field in each instance_root.housesHolder.meritageHolde... = cNumber[k];
}
where in this case 'meritage0' is the hardcoded instance name. I need to set it up like 'meritage(k)' where k is the assigned numerical value after the clip is attached to the stage. Does this make sense??
- Timson0
it's a shot in the dark, but this could work.
["meritage"+ k].k = this.k;
----------------------------
_root.housesHolder.m eritageHolder.[merita ge"this.k"]icon_number.text = cNumber[k]