Zitat:
Zitat von l_ch welche bibliothek?
fl.transition.Tween (das eingebaute), Tweener, TweenMax, …? |
Keine Ahnung. Ich selbst hab das nicht gemacht, da ich AS nicht kann.
Hier das Script:
import flash.display.Sprite;
import flash.events.*;
import fl.transitions.Tween;
import fl.transitions.easing.*;
import caurina.transitions.Tweener;
import caurina.transitions.properties.DisplayShortcuts;
import caurina.transitions.properties.FilterShortcuts;
var tick:Sound = new ticken();
function jede_sekunde() : void {
Tweener.addTween(pendel, { rotation:45, time:1, transition:"easeInOutSine", onComplete

endel_zurueck, onStart:uhrticken});
}
function pendel_zurueck() : void {
Tweener.addTween(pendel, { rotation:0, time:1, transition:"easeInOutSine", onComplete:jede_sekunde, onStart:uhrticken});
}
function uhrticken() : void {
tick.play();
}
jede_sekunde();
Soll ich mal die FLA posten?