# On button release advance to slide #

**URL:** <https://forum.kirupa.com/t/on-button-release-advance-to-slide/208460>\
**Category:** flash\
**Created:** [November 28, 2006, 11:37pm UTC](https://forum.kirupa.com/t/on-button-release-advance-to-slide/208460 "2006-11-28T23:37:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mileskemp](https://avatars.discourse-cdn.com/v4/letter/m/a587f6/32.png) [@mileskemp](https://forum.kirupa.com/u/mileskemp)\
**Post date:** [November 28, 2006, 11:37pm UTC](https://forum.kirupa.com/t/on-button-release-advance-to-slide/208460/1 "2006-11-28T23:37:38Z")

</div>

Hey,

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:

Key.addListener(listen);  
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.

\_M
