Loading multiple jpgs dynamically

I am new to Flash, and I am taking the tutorial
on loding jpegs dynamically. My question is can
you alter the script, and with the click of the same
button load next jpg, then next etc?Thanks