MovieClip tweening prototypes 1.1.8
무비클립의 기본적인 속성을 트위닝 해주는 플래시 익스텐션.
동작이 다양하며 직접 tweening function을 지정해줄 수도 있다.
CPU 점유율을 낮춰주는지는 써봐야만 알겠다. 아직 시험 안 해봤음.
일반적인 onEnterFrame 이벤트는 객체가 10개 넘으면 버벅대기 시작한다. 추천하지 않는 방법. http://laco.wz.cz/tween/에서 다운로드 가능.
*플래시 mx 2004에서 기본으로 지원하는 Tween & Transition 클래스는 오브젝트 내의 특정 변수를 제어하는 것이 가능.
Color 오브젝트는 setTransform()을 이용해서만 접근가능하므로 내장된 Tween 클래스를 이용하여 제어하는 것이 불가능.
아래의 메써드를 추가한다.
This extension adds tweening methods to MovieClip
After
#include “lmc_tween.as” for ActionScript 2.0 (runs fine on Flash Player 6) or
#include “lmc_tween_as1.as” for ActionScript 1.0 you can use following methods
//위의 두 클래스 파일을 임포트한 후에 아래의 형식에 따라 사용가능하다.
for every MovieClip:
MovieClip.tween()
MovieClip.stopTween()
MovieClip.isTweening()
MovieClip.getTweens()
MovieClip.lockTween()
MovieClip.unlockTween()
MovieClip.isTweenLocked()
MovieClip.alphaTo()
MovieClip.brightnessTo()
MovieClip.colorTo()
MovieClip.colorTransformTo()
MovieClip.frameTo()
MovieClip.scaleTo()
MovieClip.slideTo()
MovieClip.rotateTo()
Additional Notes:
If you plan to use this prototypes in your own class, to extend MovieClip class and prevent from compile time errors, you must manully replace the file “MovieClip.as” in your Flash MX 2004\[language]\First Run\Classes directory with file in this location:
WinXP: C:\Documents and Settings\[username]\Local Settings\Application Data\Macromedia\Flash MX 2004\[language]\Configuration\Shared\Zigo
Win9X: C:\Windows\Application Data\Macromedia\Flash MX 2004\[language]\Configuration\Shared\Zigo
Mac: HD:Users:[username]:Library:Application Support:Macromedia Flash MX 2004:[language]:Configuration:Shared:Zigo
Homepage and main discussion thread of this extension http://proto.layer51.com/d.aspx?f=1142
Additional Info:
Original idea by Zeh Fernando http://proto.layer51.com/d.aspx?f=804
Easing Equations
(c) 2003 Robert Penner, all rights reserved.
This work is subject to the terms in http://www.robertpenner.com/easing_terms_of_use.html
Author:
Ladislav Zigo, feel free to contact me
easing quation demo(Robert penner에 의해 미리 세팅된 움직임을 미리 볼 수 있음.)
About this entry
You’re currently reading “MovieClip tweening prototypes 1.1.8,” an entry on multiplicité
- Published:
- Thursday, January 13th, 2005 at 3:46 am
- This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 2.0 Korea.
- Author:
- vizualizer
- Category:
- techne
No comments
Jump to comment form | comments rss