# Simple Question from a designer

**URL:** <https://forum.kirupa.com/t/simple-question-from-a-designer/307057>\
**Category:** flash\
**Created:** [March 26, 2010, 10:29pm UTC](https://forum.kirupa.com/t/simple-question-from-a-designer/307057 "2010-03-26T22:29:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![peters\_08](https://avatars.discourse-cdn.com/v4/letter/p/0ea827/32.png) [@peters\_08](https://forum.kirupa.com/u/peters_08)\
**Post date:** [March 26, 2010, 10:29pm UTC](https://forum.kirupa.com/t/simple-question-from-a-designer/307057/1 "2010-03-26T22:29:37Z")

</div>

Made a slideshow ( pretty easy)  
im using AS3 here is the sstring im using

///////////// Event  
forward.addEventListener(MouseEvent.CLICK, goForward); \<-- btn 1  
back.addEventListener(MouseEvent.CLICK, goBack); \<-- btn 2

///////////// Function

function goBack(event:MouseEvent):void {  
xp.prevFrame ()  
}

function goForward(event:MouseEvent):void {  
xp.nextFrame()  
}

got alot of Movies on the timeline, need to kill them in the clickevent  
when browsing back and forward .

/Peter [www.statnone.com](http://www.statnone.com)
