|
-
[RESOLVED] startDrag help
I am building a sliding image movie. It takes two photos and compares them by using "startDrag" to slide a "setMask" MC horizontally to reveal one photo under another. The idea here is to compare two photos taken 50 years apart.
Here is the AS:
myImage.setMask(myMask);
myMask.onPress = function() {
this.startDrag(false,5,this._y,490,this._y);
}
myMask.onRelease = function() {
stopDrag();
}
handle_mc.onPress = function() {
this.startDrag(false,5,this._y,515,this._y);
}
handle_mc.onRelease = function() {
stopDrag();
}
As you can see I have two MCs here one is a mask and the other is a handle of sort. They work fine separately but I would like to have the two function in unison or as one MC. The handle MC is just that a handle that appears on the left edge of the masked image. So when user drags the handle the masked image moves as well. (or vice versa)
Thanks
Adam
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|