역재생(rewind)하기 정보
기타 역재생(rewind)하기본문
오늘 아는분이 이걸 물어보셔서 만들어봤습니다.
버튼을 만들고 그 버튼을 클릭하면 현재 시점에서 뒤로 플레이 되는 방법입니다.
버튼에 아래와 같은 스크립트를 적습니다.
on(release){
_root.onEnterFrame = function(){
trace(_root._currentframe);
if(_root._currentframe == 1){
_root.gotoAndStop(_root._totalframes);
}else{
_root.gotoAndStop(_root._currentframe - 1);
}
}
}
이렇게 하면 _root 타임라인이 역재생 됩니다.
이것을 중지하려면 정지하고자 하는 프레임에 프레임스크립트로
_root.onEnterFrame = null;
이라고 적으시거나
정지버튼을 하나 만들어서 그 버튼에
on(release){
_root.onEnterFrame = null;
}
라고 하시면 됩니다.<div class='small'>[이 게시물은 관리자님에 의해 2011-10-31 16:50:06 Flash에서 이동 됨]</div>
버튼을 만들고 그 버튼을 클릭하면 현재 시점에서 뒤로 플레이 되는 방법입니다.
버튼에 아래와 같은 스크립트를 적습니다.
on(release){
_root.onEnterFrame = function(){
trace(_root._currentframe);
if(_root._currentframe == 1){
_root.gotoAndStop(_root._totalframes);
}else{
_root.gotoAndStop(_root._currentframe - 1);
}
}
}
이렇게 하면 _root 타임라인이 역재생 됩니다.
이것을 중지하려면 정지하고자 하는 프레임에 프레임스크립트로
_root.onEnterFrame = null;
이라고 적으시거나
정지버튼을 하나 만들어서 그 버튼에
on(release){
_root.onEnterFrame = null;
}
라고 하시면 됩니다.<div class='small'>[이 게시물은 관리자님에 의해 2011-10-31 16:50:06 Flash에서 이동 됨]</div>
추천
0
0
댓글 0개