this.onPress = function(){
this.swapDepths(this_parent.getNextHighestDepth()); // 센스가 있다면 이정도는 알아서 넣어줘야지 ㅋㅋ
var l = - (this._width - Stage.width);
var t = - (this._height - Stage.height);
var r = 0;
var b = 0;
startDrag(this,false,l,t,r,b);
}
this.onRelease = this.onReleaseOutside = function(){
this.stopDrag();
}
this.swapDepths(this_parent.getNextHighestDepth()); // 센스가 있다면 이정도는 알아서 넣어줘야지 ㅋㅋ
var l = - (this._width - Stage.width);
var t = - (this._height - Stage.height);
var r = 0;
var b = 0;
startDrag(this,false,l,t,r,b);
}
this.onRelease = this.onReleaseOutside = function(){
this.stopDrag();
}
l(left), t(top), r(right), b(bottom) 을 통해 드레그 제한을 영역을 잡을수 있다.
'Flash > 초간단액션' 카테고리의 다른 글
선잇기 (0) | 2011.09.21 |
---|---|
[초간단액션]마우스로 그림그리기 (0) | 2009.05.21 |
Flash [초간단액션] 3프레임으로 된 간단 버튼 (0) | 2009.04.15 |
Flash [초간단액션] 초간단 스크롤 만들기 (0) | 2009.04.15 |
Flash [초간단액션] setFocus 입력창이 활성화 되면 처음 글자는 사라진다. (0) | 2009.04.14 |