"We are back" « oc.at

pause in flash MX

IsSuE 19.01.2004 - 17:13 613 1
Posts

issue

Rock and Stone, brother!
Avatar
Registered: Feb 2003
Location: Linz
Posts: 3657
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|

Little Overclocker
Avatar
Registered: Aug 2002
Location: WL
Posts: 98
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
Kontakt | Unser Forum | Über overclockers.at | Impressum | Datenschutz