# Im using as2.0 to try and build a slider to control the alpha of another movie clip

**URL:** <https://forum.kirupa.com/t/im-using-as2-0-to-try-and-build-a-slider-to-control-the-alpha-of-another-movie-clip/242977>\
**Category:** Uncategorized\
**Created:** [November 1, 2007, 11:36am UTC](https://forum.kirupa.com/t/im-using-as2-0-to-try-and-build-a-slider-to-control-the-alpha-of-another-movie-clip/242977 "2007-11-01T11:36:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bens19uk](https://avatars.discourse-cdn.com/v4/letter/b/7cd45c/32.png) [@bens19uk](https://forum.kirupa.com/u/bens19uk)\
**Post date:** [November 1, 2007, 11:36am UTC](https://forum.kirupa.com/t/im-using-as2-0-to-try-and-build-a-slider-to-control-the-alpha-of-another-movie-clip/242977/1 "2007-11-01T11:36:34Z")

</div>

hi  
i was wondering if u could help me, iam trying to bulid a slider which will change the alpha of another movie clip named light.  
how do i do this.  
here is the actionscript i have so far:

```auto
onClipEvent (load) {
	top = _y;
	bottom = _y;
	left = _x;
	right = _x+100;
}

```

this actionscript is on a movie clip containing the slider button, and on the button is the actionscript bellow:

```auto
on (press) {
    startDrag("", false, left, top, right, bottom);
}
on (release) {
    stopDrag();
}

```

Thanx for any help
