Zurück   Flashforum > Flash > ActionScript > ActionScript 1

Antwort
 
LinkBack Themen-Optionen Ansicht
Alt 05-04-2004, 19:19   #1 (permalink)
stimpf.com
Gast
 
Beiträge: n/a
Question Ladebalken

Tach,

Kann mir jemand nen guten script + Erklärung für nen Ladebalken geben???

Danke
  Mit Zitat antworten
Alt 05-04-2004, 19:19   #2 (permalink)
Flash & TYPO3
 
Registriert seit: Oct 2003
Ort: Bayern
Beiträge: 2.700
ActionScript:
  1. /////////////////////////////////////////////////////////
  2. _root.txtProzent._visible = 0;
  3. _root.balken._visible = 0;
  4. _root.createEmptyMovieClip("container", 10);
  5. _root.container._x = 50;
  6. _root.container._y = 50;
  7. /////////////////////////////////////////////////////////
  8. extern_laden = function (clip) {
  9.     _root.container.loadMovie(clip);
  10.     _root.createEmptyMovieClip("control", 20);
  11.     _root.txtProzent._visible = 1;
  12.     _root.control.onEnterFrame = function() {
  13.         if (_root.container.getBytesLoaded()>=4) {
  14.             _root.balken._visible = 1;
  15.             _root.container._visible = 0;
  16.             gesamt = _root.container.getBytesTotal();
  17.             bereits = _root.container.getBytesLoaded();
  18.             prozent = Math.ceil((bereits/gesamt)*100);
  19.             _root.txtProzent.text = prozent+"%";
  20.             _root.balken._xscale = prozent;
  21.             if (prozent == 100) {
  22.                 _root.container._visible = 1;
  23.                 _root.container.gotoAndPlay(2);
  24.                 _root.txtProzent._visible = 0;
  25.                 _root.balken._visible = 0;
  26.                 delete this.onEnterFrame;
  27.             }
  28.         }
  29.     };
  30. };
  31. //////////////////////////////////////////////////////////
  32. _root.button.onPress = function() {
  33.     extern_laden("test.swf");
  34. };
  35. //////////////////////////////////////////////////////////
  36.  
Angehängte Dateien
Dateityp: zip extern_loader.zip (5,5 KB, 3x aufgerufen)
__________________
Mediendesign-Student
johanness ist offline   Mit Zitat antworten
Alt 05-04-2004, 19:24   #3 (permalink)
stimpf.com
Gast
 
Beiträge: n/a
Danke, der ist gut aber geht das auch intern!!!Also im gleichen flashfilm wie die zuladende datei?
  Mit Zitat antworten
Alt 05-04-2004, 19:29   #4 (permalink)
Flash & TYPO3
 
Registriert seit: Oct 2003
Ort: Bayern
Beiträge: 2.700
Versteh dich nicht ganz? Meinst du, dass der MC den du auf die Bühne holen willst ist schon in der .fla drin? Dann versuch's mal mit
ActionScript:
  1. MyMC.attachMovie("Verknüofungsname", "neuerInstanzName", 1048575-1);
__________________
Mediendesign-Student
johanness ist offline   Mit Zitat antworten
Alt 05-04-2004, 19:31   #5 (permalink)
brand new user
 
Benutzerbild von RustyCake
 
Registriert seit: May 2002
Ort: Laimbach 6 1/2
Beiträge: 16.884
Yo! geht auch!!
ActionScript:
  1. _root.createEmptyMovieClip("control", 2);
  2. _root.control.onEnterFrame = function() {
  3.     gesamt = _root.getBytesTotal();
  4.     bereits = _root.getBytesLoaded();
  5.     prozent = Math.ceil((bereits/gesamt)*100);
  6.     _root.txtProzent = prozent+"% geladen";
  7.     _root.ladebalken._xscale = prozent*1.5;
  8.     if (prozent == 100) {
  9.         _root.gotoAndStop(2);
  10.         delete this.onEnterFrame;
  11.     }
  12. };
Angehängte Dateien
Dateityp: zip mx_loader.zip (3,2 KB, 4x aufgerufen)
__________________
Bitte keine Fragen, zu Flash per PM. Dazu ist das Forum da. Danke MFG_RustyCake!
"Wer tanzen will, muß erst gehen lernen"
RustyCake ist offline   Mit Zitat antworten
Alt 05-04-2004, 19:33   #6 (permalink)
Flash & TYPO3
 
Registriert seit: Oct 2003
Ort: Bayern
Beiträge: 2.700
Achso, Rusty hat wohl verstanden was du wolltest
__________________
Mediendesign-Student
johanness ist offline   Mit Zitat antworten
Alt 05-04-2004, 20:44   #7 (permalink)
stimpf.com
Gast
 
Beiträge: n/a
ok, das ist schon sehr gut. kann ich das mit dem ladebalken aber noch besser machen. ich möchte noch einen ramen ausenherum.

Geändert von stimpf.com (05-04-2004 um 20:50 Uhr)
  Mit Zitat antworten
Alt 05-04-2004, 20:45   #8 (permalink)
brand new user
 
Benutzerbild von RustyCake
 
Registriert seit: May 2002
Ort: Laimbach 6 1/2
Beiträge: 16.884
Hehe! OooPss! net ganz
in den zu ladenden Film stand da ja!!
des geht so!!

ActionScript:
  1. this.createEmptyMovieClip("control", 2);
  2. this.control.onEnterFrame = function() {
  3.         gesamt = this._parent.getBytesTotal();
  4.         bereits = this._parent.getBytesLoaded();
  5.         prozent = Math.ceil((bereits/gesamt)*100);
  6.         this._parent.txtProzent = prozent+"% geladen";
  7.        this._parent.ladebalken._xscale = prozent*1.5;
  8.         if (prozent == 100) {
  9.                 this._parent.gotoAndStop(2);
  10.                 delete this.onEnterFrame;
  11.         }
  12. };
__________________
Bitte keine Fragen, zu Flash per PM. Dazu ist das Forum da. Danke MFG_RustyCake!
"Wer tanzen will, muß erst gehen lernen"
RustyCake ist offline   Mit Zitat antworten
Antwort

Lesezeichen

Themen-Optionen
Ansicht

Forumregeln
Es ist Ihnen nicht erlaubt, neue Themen zu verfassen.
Es ist Ihnen nicht erlaubt, auf Beiträge zu antworten.
Es ist Ihnen nicht erlaubt, Anhänge hochzuladen.
Es ist Ihnen nicht erlaubt, Ihre Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks sind an
Pingbacks sind an
Refbacks sind an



Alle Zeitangaben in WEZ +1. Es ist jetzt 20:54 Uhr.

Domains, Webhosting & Vserver von Host Europe
Unterstützt das Flashforum!
Adobe User Group


Copyright ©1999 – 2012 Marc Thiele