flash: target dynamic mc

Out of context: Reply #4

  • Started
  • Last post
  • 5 Responses
  • 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??

View thread