# Alpha on drag

**URL:** https://forum.kirupa.com/t/alpha-on-drag/290909
**Category:** Uncategorized
**Created:** [June 22, 2009, 6:28am UTC](https://forum.kirupa.com/t/alpha-on-drag/290909 "2009-06-22T06:28:20Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![pantelijabg](https://avatars.discourse-cdn.com/v4/letter/p/f17d59/32.png) [@pantelijabg](https://forum.kirupa.com/u/pantelijabg)
#### Post date: [June 22, 2009, 6:28am UTC](https://forum.kirupa.com/t/alpha-on-drag/290909/1 "2009-06-22T06:28:20Z")

</div>

hey, I am such na noob, this on is killing me. I’ve created two movie clips, each in every layer.  
Top one is dragable to the left (only horizontal drag) so when I drag it to the left I can just see the bottom one. Simple as that  
I’ve used following code for draging the top one

```auto
top.onPress = function() {
	startDrag(this, false, 576, 450, -3000, 450);
};
top.onRelease = top.onReleaseOutside=function () { this.stopDrag();};

```

The thing is that I want to add a alpha effect while draging. So as a start draging the top mc’s alpha should be 100%, and than as I drag it alpha should change (to the 0% in the final position (most to the left position))

Any suggestions

Chears
