PDA

View Full Version : what a drag it wont


kaoru5thchild
10-30-2005, 08:41 AM
ok I had this bone daddy working and I went and screwed it up so here I am now and I dont understand why this thing wont drag...

the mc is inside the mp3player and it is a clickable handle so I can drag it around but it wont behave... I get the finger (hehe) when I scroll over it and click and nothing drags...

mcMP3handle.onPress = function(){
_parent.mp3Player.startDrag ();
}

fyi the mp3 player is at the root so i did try using root instead of _parent still nothing...

anouther wierdo thing is that when I try to use set target path in flash its wrong... ?

this is what it gives me

this.mp3Player.mcMP3handle.onPress = function(){
_parent.mp3Player.startDrag ();
}

but the handle is in the movie clip that the actionscript is....

oh I am so confused...

guiltfilter
10-30-2005, 10:19 PM
Place this actionscript on frame 1 of your main timeline:

this.mp3Player.mcMP3handle.onPress = function() {
this.startDrag();
};
this.mp3Player.mcMP3handle.onRelease = function() {
this.stopDrag();
};


You can set the lock centre and dragable area if you want:

startDrag(lock, left, top, right, bottom)
eg: startDrag(true, 0, 0, 450, 350)

Hope this helps.

kaoru5thchild
11-03-2005, 08:41 AM
thanks but i decided to make it not dragable... i decided to change the visibility of it instead... :)