Einzelnen Beitrag anzeigen
Alt 05-12-2002, 16:28   #22 (permalink)
sebastian
Flashworker
 
Benutzerbild von sebastian
 
Registriert seit: Nov 2001
Ort: Wiesbaden
Beiträge: 10.944
reicht auch so:
ActionScript:
  1. TextField.prototype.init = function(int, ppi, format) {
  2.     this.htmlText = this.text+this.text;
  3.     this.setTextFormat(format);
  4.     setInterval(this, "ticker", int, ppi);
  5. };
  6. TextField.prototype.ticker = function(ppi) {
  7.     if (this.hscroll>=this.maxhscroll-ppi) {
  8.         this.hscroll = (this.maxhscroll-this._width)/2;
  9.     }
  10.     this.hscroll += ppi;
  11.     updateAfterEvent();
  12. };
sebastian ist offline   Mit Zitat antworten