Advertisement
Advertisement
| 04.13.2008 at 08:47AM PDT, ID: 23318621 |
|
[x]
Attachment Details
|
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: |
// the drag n drop Class:
class dragDrop extends MovieClip {
public function dragDrop() {
this.onPress = function(){
startDrag(this,false,0,0,500,500) // left, top ; right ; bottom
}
this.onRelease = function(){
this.stopDrag();
}
this.onReleaseOutside = function(){
this.stopDrag();
}
}
}
//code for the play/stop button
trace("playStop depth = " + playStop.getDepth());
trace("playPlay depth = " + playPlay.getDepth());
for (var i=0 ; i<=1; i++){
playStop = playPlay.attachMovie("playStop" , "playStop", getNextHighestDepth());
playStop._x = +10;
playStop._y = +10;
playStop.onRelease = function(){
trace("You just pressed the white square")
}
}
|