On button release advance to slide #


I have been trying to make four buttons on the botton of the kirupa xml slideshow. I am trying to write a function that states

on release advance to slide #?

I was trying to use a similar function to:

image1.onRelease = function() {
p=1 ? (p–, loadPic§, slide=0) : null;
stop_btn._visible = 0;
stop_btn.enabled = 0;
slide_btn._visible = 100;
slide_btn.enabled = 1;

There are four images that are dynamically linked. The function is not recognizing that the image is p=1. Do I need to do something like total-3 or something. I have been messing around with this for hours and I would greatly appreciate any help. Thanks.