Hallo
Ich habe ein AS-Problem. Ich nutze Flash MX2004 und möchte mittels AS 5 Bilder (Movieclips) nacheinander ein-und ausblenden. Bei 3 Bildern klappt das hervorragend aber sobald ich das Script auf 5 Bilder erweitere funktioniert nichts mehr.
Kann vielleicht mal jemand daraufgucken wo der Fehler liegt ?
Hier das Script für 3 Bilder welches super funktioniert.
speed = 5;
Bild2._alpha = 0;
Bild3._alpha = 0;
Bild2.onEnterFrame = function()
{
if(this._alpha < 100)
{
this._alpha += speed;
}else{
delete this.onEnterFrame;
Bild3.onEnterFrame = function()
{
if(this._alpha < 100)
{
this._alpha += speed;
}else{
delete this.onEnterFrame;
}
}
}
}
und hier das gleiche - erweitert um 2 Bilder welches nicht mehr funktioniert:
speed = 0.5;
Bild2._alpha = 0;
Bild3._alpha = 0;
Bild4._alpha = 0;
Bild5._alpha = 0;
Bild2.onEnterFrame = function()
{
if(this._alpha < 100)
{
this._alpha += speed;
}else{
delete this.onEnterFrame;
Bild3.onEnterFrame = function()
{
if(this._alpha < 100)
{
this._alpha += speed;
}else{
delete this.onEnterFrame;
Bild4.onEnterFrame = function()
{
if this._alpha +=speed;
}else{
delete this.onEnterFrame;
Bild5.onEnterFrame = function()
{
if this._alpha +=speed;
}else{
delete this.onEnterFrame;
}
}
}
}
Hat jemand eine Idee ? Die Fla kann ich nicht hochladen weil sie zu gross ist.
Lieben Gruß
Masy
Ich habe ein AS-Problem. Ich nutze Flash MX2004 und möchte mittels AS 5 Bilder (Movieclips) nacheinander ein-und ausblenden. Bei 3 Bildern klappt das hervorragend aber sobald ich das Script auf 5 Bilder erweitere funktioniert nichts mehr.
Kann vielleicht mal jemand daraufgucken wo der Fehler liegt ?
Hier das Script für 3 Bilder welches super funktioniert.
speed = 5;
Bild2._alpha = 0;
Bild3._alpha = 0;
Bild2.onEnterFrame = function()
{
if(this._alpha < 100)
{
this._alpha += speed;
}else{
delete this.onEnterFrame;
Bild3.onEnterFrame = function()
{
if(this._alpha < 100)
{
this._alpha += speed;
}else{
delete this.onEnterFrame;
}
}
}
}
und hier das gleiche - erweitert um 2 Bilder welches nicht mehr funktioniert:
speed = 0.5;
Bild2._alpha = 0;
Bild3._alpha = 0;
Bild4._alpha = 0;
Bild5._alpha = 0;
Bild2.onEnterFrame = function()
{
if(this._alpha < 100)
{
this._alpha += speed;
}else{
delete this.onEnterFrame;
Bild3.onEnterFrame = function()
{
if(this._alpha < 100)
{
this._alpha += speed;
}else{
delete this.onEnterFrame;
Bild4.onEnterFrame = function()
{
if this._alpha +=speed;
}else{
delete this.onEnterFrame;
Bild5.onEnterFrame = function()
{
if this._alpha +=speed;
}else{
delete this.onEnterFrame;
}
}
}
}
Hat jemand eine Idee ? Die Fla kann ich nicht hochladen weil sie zu gross ist.
Lieben Gruß
Masy