? using the instance name as counter

I am using Flash MX
I have about 100 pictures. I have currently named them P1.jpg, P2.jpg, P3.jpg, etc…

I have created 100 instances of a button (I know I did it the hard way, but I am still a newbie so…) with the instance names being P1, P2, P3, etc…

I have one blank MC in the middle of my page.

I am needing help to figure out the best way to make it where when a button is pressed, the corresponding picture is loaded into the MC.

Thank you for your help.

Claudio,

I appreciate your continued patience with me.

Please look at the attached FLA (which should basically exactly what you gave me above) and tell me where I am getting this wrong.

Currently, when I click on the buttons, absolutely nothing happens.

Thanks.

Jason

The script is correct. Just place the image files (p1.jpg, p2.jpg, p3.jpg, p4.jpg) in the same folder where as your swf movie. Remeber that the jpg MUST be non progressive.

That did it, thanks…

The non-progressive part.

Why is that?

Thanks, it works now

Welcome :slight_smile:
Flash cant handle dynamic loaded progressive jpg’s.