레이어를 하나 추가하고 적어넣는다
fscommand("allowscale",false);
Movieclip.prototype.elasticScale = function(target, accel, convert) {
this.xScale = this.xScale * accel + (target - this._xscale) * convert
this.yScale = this.yScale * accel + (target - this._yscale) * convert
this._xscale += this.xScale
this._yscale += this.yScale
}
그리고 또다시 레이어 하나를 추가하고 무비클립을 삽입하고 스크립트를 작성한다
onClipEvent (enterFrame) {
if (over==1) {
elasticScale(200, 0.9, 0.1)
} else {
elasticScale(100, 0.9, 0.1)
}
}
'[ Design ] > Flash' 카테고리의 다른 글
문자열 오브젝트 (String) (0) | 2012.09.13 |
---|---|
중력표현 스크립트 (0) | 2012.09.13 |
감/가속도 공식 (0) | 2012.09.13 |
투명swf 파일 무비 삽입하기 (0) | 2012.09.13 |
Flash-데이터베이스 연동(제로보드) (0) | 2012.09.13 |
댓글