Zurück   Flashforum > Flash > ActionScript > ActionScript 1

Antwort
 
LinkBack Themen-Optionen Ansicht
Alt 30-07-2003, 08:29   #1 (permalink)
macevangelist :)
 
Registriert seit: Apr 2002
Ort: Stuttgart
Beiträge: 24
slideshow performance problem

hallo forum
hab ein kleines problem
ich hoffe ihr könnt mir helfen
hab ne slideshow gemacht
und finde das sie sehr langsam ist

wäre super von euch wenn ihr
kurz den code anschauen könntet
es gibt bestimmt ne elegantere lösung dafür

grüße und vielen dank
andreas



PS:
die fla datei findet ihr unter
http://www.richtung7.com/gallery/gallery.zip


code:
onClipEvent (load) {
_root.start_x = 3000;
_root.end_x = -3000;
_root.pause = 50;
_root.bilder = 1;
//
_root.scroller._x = 3000;
_root.scroller._y = 735;
}
onClipEvent (enterFrame) {
if (_root.scroller._x <= (_root.end_x)) {
_root.scroller._x = _root.start_x;
}
if (_root.bilder >= 6) {
_root.bild_01._alpha = 100;
_root.bild_02._alpha = 100;
_root.bild_03._alpha = 100;
_root.bild_04._alpha = 100;
_root.bild_05._alpha = 100;
_root.bild_01._visible = true;
_root.bild_02._visible = true;
_root.bild_03._visible = true;
_root.bild_04._visible = true;
_root.bild_05._visible = true;
_root.bilder = 1;
}
if (_root.pause <= 0) {
_root["bild_0" + _root.bilder]._visible = false;
_root.bilder += 1;
_root.pause = 50;
}
_root["bild_0" + _root.bilder]._alpha -= 15;
_root.scroller._x -= 15;
_root.pause -= 1;
}

Geändert von Vileda (30-07-2003 um 09:02 Uhr)
Vileda ist offline   Mit Zitat antworten
Alt 30-07-2003, 10:15   #2 (permalink)
AchimHomeZone
 
Benutzerbild von onip
 
Registriert seit: Feb 2002
Ort: Cöllefornia / Cologne / Kölle / Köln
Beiträge: 1.541
hi,
das swf ist nicht fürs web gedacht, hoff ich.
1,4 mb ist schon der hammer, wird wohl ein screensaver.
mit alpha hab ich auch immer problem, daher wird alpha
kaum mehr verwendet. so groß wie die bilder sind glaub ich nicht
das es besser wird, gerade mit alpha.
mußt wohl damit leben.
__________________
__________________


4. Lunyu 2.13.

Zi Gong fragte, was einen Flasher ausmache.
Konfuzius sprach: "Er predigt nur das, was er zuvor schon selbst in die Tat umgesetzt hat."
onip ist offline   Mit Zitat antworten
Alt 30-07-2003, 10:51   #3 (permalink)
macevangelist :)
 
Registriert seit: Apr 2002
Ort: Stuttgart
Beiträge: 24
*hmmm* das ist nicht so toll
kunde wollte das mit dem faden

wie ist es eigentlich wenn ich
normales tweening nehme
ist es dann scneller?

ach natürlich nicht für das web
wird ein bildschirmschoner


grüße von
andreas

Vileda 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 05:44 Uhr.

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


Copyright ©1999 – 2012 Marc Thiele