# Adding some action to the buttons

**URL:** <https://forum.kirupa.com/t/adding-some-action-to-the-buttons/95105>\
**Category:** Uncategorized\
**Created:** [November 20, 2003, 5:26pm UTC](https://forum.kirupa.com/t/adding-some-action-to-the-buttons/95105 "2003-11-20T17:26:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dorian](https://avatars.discourse-cdn.com/v4/letter/d/35a633/32.png) [@Dorian](https://forum.kirupa.com/u/Dorian)\
**Post date:** [November 20, 2003, 5:26pm UTC](https://forum.kirupa.com/t/adding-some-action-to-the-buttons/95105/1 "2003-11-20T17:26:53Z")

</div>

Hi!

i got a video online with a preloader. It’s made simply and looks like that:

loader.autoLoad = false;  
loader.contentPath = “videoname.swf”;  
pBar.source = loader;  
loader.load();

pBar.complete = function() {  
this.\_visible = false;  
};

now i want to add some buttons to “jump” to specific frames. I add some buttons and add actionscript like that:

on (click) {

```
this._parent.gotoAndPlay("250");

```

}

hmmm, but it doesn’t work. how can i specify the name of the video? i think that the problem is, he doesn’t know this.\_parent

Somebody an idea?

Thx,  
Dorian
