ja schau dir mal die tweening klasse im anhang genauer an
so mist...zu groß, gut schau mal hier:
http://gfx2u.de/download/down/MovieClipTween.mxp Zitat:
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 MovieClip:
MovieClip.tween()
MovieClip.stopTween()
MovieClip.isTweening()
MovieClip.getTweens()
MovieClip.lockTween()
MovieClip.unlockTween()
MovieClip.isTweenLocked()
MovieClip.alphaTo()
MovieClip.brightnessTo()
MovieClip.colorTo()
MovieClip.colorTransformTo()
MovieClip.scaleTo()
MovieClip.slideTo()
MovieClip.rotateTo()
Detailed documentation is in Help panel > Movieclip Tweening Prototypes
Additional Notes:
To create your own custom easing use custom easing tool from window->Other Panels->custom Easing Tool
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
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.
Documentation (F1) -> Movieclip Tweening Prototypes
syntax helper
actions Panel->Movieclip Tweening
Window->Other Panels->custom Easing Tool
|