I have 10 buttons (button0, button1, button2, etc.) and when you click on one of the buttons I want the corresponding jpg (0.jpg, 1.jpg, 2.jpg, etc.) to load externally into the movie clip “holder” that is on the stage. Here is my code:
for (var i:Number = 0; i < 10 ; i++)
{
Target["button" + i].onRelease = function()
{
if( !this.up ){
loadMovie(i+".jpg", "holder")};
}
}
If I click on button10, the image does load, but if I click on any others they don’t load. If I change i<10 to i<1, then button1 loads. I am not sure why this is happening. Any clue?? Thanks a bunch…