Zurück   Flashforum > Flash > ActionScript > ActionScript 1

Antwort
 
LinkBack Themen-Optionen Ansicht
Alt 12-08-2005, 13:17   #1 (permalink)
tracer
 
Benutzerbild von andretti
 
Registriert seit: Jun 2004
Beiträge: 4.415
bildfader-funktion in verschiedenen swf's stören sich...?

aloha!

ich steh' an;

ich habe eine haupt.swf;
i dieser habe ich eine prototype-funktion
ActionScript:
  1. _global.active;
  2. MovieClip.prototype.link = function(linkname, seite) {
  3.     this.T_linkname.autoSize = "left";
  4.     this.T_linkname.background = true;
  5.     this.T_linkname.backgroundColor = "0x557900";
  6.     this.T_linkname.text = linkname;
  7.     if (this != _global.active) {
  8.         this.onRollOver = function() {
  9.             this.T_linkname.textColor = "0x99CC33";
  10.             z;
  11.             this.attachMovie("activeLink", "activeLink_mc", 500);
  12.             this.activeLink_mc._y = this._y-5;
  13.             this.activeLink_mc._width = this.T_linkname._width;
  14.         };
  15.         this.onRollOut = function() {
  16.             this.T_linkname.textColor = "0xFFFFFF";
  17.             this.activeLink_mc.removeMovieClip();
  18.         };
  19.     }
  20.     this.onPress = function() {
  21.         _root.MC_siteHolder.unloadMovie();
  22.         //clearInterval(_global.SID);//sollte funzen?
  23.         //clearInterval(_global.loadID);//sollte funzen?
  24.         MC_logo._visible = 1;
  25.         if (_global.active != this) {
  26.             _global.active.enabled = true;
  27.             _global.active.activeLink_mc.removeMovieClip();
  28.             _global.active.T_linkname.textColor = "0xFFFFFF";
  29.             this.T_linkname.textColor = "0x99CC33";
  30.             this.attachMovie("activeLink", "activeLink_mc", 500);
  31.             this.activeLink_mc._y = this._y-5;
  32.             this.activeLink_mc._width = this.T_linkname._width;
  33.             loadMovie(seite, _root.MC_siteHolder);
  34.         }
  35.         _global.active = this;
  36.         this.enabled = false;
  37.     };
  38. };
, mit der ich verschiedene swf's in EINEN container("_root.MC_siteHolder") lade;

dies verschiedenen swf's haben alle das gleiche fader-script:
ActionScript:
  1. var fadespeed = 3;
  2. var bildanzahl = 4;
  3. _global.old_conti;
  4. _global.ct = 1;
  5. function reload_x() {
  6.     clearInterval(_global.SID);
  7.     tl.createEmptyMovieClip("container"+ct, ct+80);
  8.     tl["container"+ct]._x = 385;
  9.     tl["container"+ct]._y = 0;
  10.     tl["container"+ct].loadMovie("home_"+ct+".jpg");
  11.     tl["container"+ct]._alpha = 0;
  12.     this.loader_funk = function() {
  13.         if (tl["container"+ct].getBytesLoaded()>=4) {
  14.             gesamt = tl["container"+ct].getBytesTotal();
  15.             bereits = tl["container"+ct].getBytesLoaded();
  16.             prozent = Math.ceil((bereits/gesamt)*100);
  17.             if (prozent>=100) {
  18.                 tl["container"+ct]._alpha += fadespeed;
  19.                 old_conti._alpha -= fadespeed;
  20.                 if (tl["container"+ct]._alpha>=100 && old_conti._alpha<=0) {
  21.                     //_level0.MC_pseudoheader.unloadMovie();
  22.                     old_conti.unloadMovie();
  23.                     _global.old_conti = tl["container"+ct];
  24.                     clearInterval(_global.loadID);
  25.                     _global.ct++;
  26.                     _global.SID = setInterval(reload_x, 3500);
  27.                 }
  28.                 if (ct == (bildanzahl+1)) {
  29.                     _global.ct = 1;
  30.                 }
  31.             }
  32.         }
  33.     };
  34.     _global.loadID = setInterval(loader_funk, 40);
  35. }
  36. reload_x();
bei laden der Hauptseite wird das erste mal dier "MC_siteHolder" mit einer swf beladen, in dieser swf ist ebenfalls schon das faderscript;
da funktioniert es noch, aber sobald ich auf einen anderen link klicke, wird nix mehr geladen;

was muss ich beachten/was mache ich falsch?

anbei die index_swf, 2 unter-swf's und drei bilder
__________________
Viola per Sempre
Alle Angaben ohne Gewehr!
trace your open mind in variables !
andretti
ActionScript Dictionary

Geändert von andretti (12-08-2005 um 22:56 Uhr)
andretti ist offline   Mit Zitat antworten
Alt 12-08-2005, 14:34   #2 (permalink)
tracer
 
Benutzerbild von andretti
 
Registriert seit: Jun 2004
Beiträge: 4.415
für die download-sparer:
klick

klick

klick

bilder kann man ja dann selber nehmen
__________________
Viola per Sempre
Alle Angaben ohne Gewehr!
trace your open mind in variables !
andretti
ActionScript Dictionary
andretti ist offline   Mit Zitat antworten
Alt 12-08-2005, 22:40   #3 (permalink)
tracer
 
Benutzerbild von andretti
 
Registriert seit: Jun 2004
Beiträge: 4.415
schiiiiieb
__________________
Viola per Sempre
Alle Angaben ohne Gewehr!
trace your open mind in variables !
andretti
ActionScript Dictionary
andretti ist offline   Mit Zitat antworten
Alt 12-08-2005, 22:50   #4 (permalink)
brand new user
 
Benutzerbild von RustyCake
 
Registriert seit: May 2002
Ort: Laimbach 6 1/2
Beiträge: 16.884
Das zweite script steckt in allen swf's???
__________________
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 12-08-2005, 22:53   #5 (permalink)
tracer
 
Benutzerbild von andretti
 
Registriert seit: Jun 2004
Beiträge: 4.415
jo
__________________
Viola per Sempre
Alle Angaben ohne Gewehr!
trace your open mind in variables !
andretti
ActionScript Dictionary
andretti ist offline   Mit Zitat antworten
Alt 12-08-2005, 22:59   #6 (permalink)
brand new user
 
Benutzerbild von RustyCake
 
Registriert seit: May 2002
Ort: Laimbach 6 1/2
Beiträge: 16.884
Dafür wahr des script aber nicht gedacht
Da wirds Probleme mit den Variablen geben
Wenns nur ums faden geht kann man auch was einfacheres nehmen.
__________________
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 12-08-2005, 23:01   #7 (permalink)
tracer
 
Benutzerbild von andretti
 
Registriert seit: Jun 2004
Beiträge: 4.415
jau!
ich bin für alles offen, RustyCake!

es geht halt darum, dass in den unterseiten einmal 4, sonst immer drei bilder ein- und ausfaden müssen.....
__________________
Viola per Sempre
Alle Angaben ohne Gewehr!
trace your open mind in variables !
andretti
ActionScript Dictionary
andretti ist offline   Mit Zitat antworten
Alt 12-08-2005, 23:04   #8 (permalink)
brand new user
 
Benutzerbild von RustyCake
 
Registriert seit: May 2002
Ort: Laimbach 6 1/2
Beiträge: 16.884
Ich schaus mir zuhaus an, hab hier kein Flash
__________________
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 12-08-2005, 23:06   #9 (permalink)
tracer
 
Benutzerbild von andretti
 
Registriert seit: Jun 2004
Beiträge: 4.415
Thumbs up danke im voraus

merci!
__________________
Viola per Sempre
Alle Angaben ohne Gewehr!
trace your open mind in variables !
andretti
ActionScript Dictionary
andretti ist offline   Mit Zitat antworten
Alt 13-08-2005, 23:34   #10 (permalink)
brand new user
 
Benutzerbild von RustyCake
 
Registriert seit: May 2002
Ort: Laimbach 6 1/2
Beiträge: 16.884
Servas
Die Files bräuchte ich aber schon
Die links funtzen nich mehr!
__________________
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 13-08-2005, 23:48   #11 (permalink)
tracer
 
Benutzerbild von andretti
 
Registriert seit: Jun 2004
Beiträge: 4.415
ooops!
excusez-moi!
klick
klick
klick
klick
__________________
Viola per Sempre
Alle Angaben ohne Gewehr!
trace your open mind in variables !
andretti
ActionScript Dictionary
andretti 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 19:16 Uhr.

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


Copyright ©1999 – 2012 Marc Thiele