Re: [Flashcoders] Targeting when using for loop

2005-12-01 Thread Martin Wood
i think you might need to lose the first . my_pane.content["product_"+i]["color_"+j].loadMovie(someUrl); martin Mike Boutin wrote: I am trying to target an object inside my scrollpane. This is what im trying to achieve: my_pane.content["product_"+i].["color_"+j].loadMovie What is the corre

Re: [Flashcoders] Targeting when using for loop

2005-12-01 Thread JesterXL
Lose the dot between the brackets, and aye you got it, but she's hard to debug that way. One way that works AND is easier to debug is: var myContent = my_pane.content; trace("myContent: " + myContent); var product1 = myContent["product" + i]; trace("product1: " + product1); var color1 = product1

RE: [Flashcoders] Targeting when using for loop

2005-12-01 Thread Merrill, Jason
What is color_j - a movie clip? I assume product_i is also a movie clip. Then it should work (as long as you finish your loadMovie statement, which you didn't...) I just did this yesterday with attachMovie and it worked great. Should be the same for loadMovie. Jason Merrill | E-Learning So