Simple Drag Function within an AS file
I have a movie clip Screen which contains another movie clip dragger. (a drag bar)
I will be attaching instances of this clip as needed.
What I want to do is write a function so that when the dragger bar is pressed in any of the instances of the Screen clip, that instance of Screen can then be dragged.
This function resides in a class Screen which is linked to the movie clip and I am using AS 2.0
This is more or less what I have come up with
Code:
function drag() {
dragger.onPress = startDrag(true);
}
What's throwing me is the paths and use of this in AS 2.0 I know it's simple, sorry this is my first class.
Thanks for your help