pause in flash MX

Seite 1 von 1 - Forum: Coding Stuff auf overclockers.at

URL: https://www.overclockers.at/coding-stuff/pause_in_flash_mx_104602/page_1 - zur Vollversion wechseln!


issue schrieb am 19.01.2004 um 17:13

ich will bei einem Flash film eine pause von ca 3 secunden einfügen und dann soll der film weiterlaufen.
dieses script hab ich gefunden aber es funkt leider nit
stop();
// was myinterval...
myInterval = setInterval(function () {
// go next frame and stop
nextFrame();
// or go next frame and play
// gotoAndPlay("frameLabel");
clearInterval(myInterval);
}, 4000);

kann mir wer helfen?

tia


|CoRaX| schrieb am 27.01.2004 um 13:27

vermutlich wirst schon eine lösung gefunden haben... ;)
falls du noch keine hast probiers so:

Code:
stop();
setInterval(goto, 3000); //3000=3sekunden

MovieClip.prototype.goto = function() {
_root.gotoAndPlay(30);
clearInterval;
};

bei gotoAndPlay(30) schreibst statt 30 die framenummer hin bei der flash weiterspielen soll.
der fehler bei deinem code ist das du das gotoAndPlay("frameLabel") auskommentiert hast. ;)

hth .corax




overclockers.at v4.thecommunity
© all rights reserved by overclockers.at 2000-2026