Hallo,
das müsste so gehen:
PHP-Code:
//ziel = der Frame bis wohin er spielen soll
//ab wohin er springen soll
function spielBis (ziel, ab) {
this.onEnterFrame = function () {
this.play();
if (this._currentframe>=ziel) {
this.gotoAndPlay (ab);
}
};
}
deinObject.onRelease = function () {
spielBis (6,10);
};
Was die einzelnen Befehle mache, siehe einfach mal in der Hilfe nach.
Ansonsten kannst du hier auch mal ein wenig nachschlagen :
Openbook