Zurück   Flashforum > Flash > ActionScript > ActionScript 1

Antwort
 
LinkBack Themen-Optionen Ansicht
Alt 06-10-2006, 15:09   #1 (permalink)
Neuer User
 
Registriert seit: Sep 2006
Beiträge: 1
schaltfläche/button mit as funktioniert nicht richtig - slideshow

hallo ich möchte eine slideshow erstellen, wie auf http://www.anovadesign.com/ .

die fotos werden dynamisch geladen. darüber liegt ein mc, der nicht sichtbar ist und als schaltfläche dient. wenn man mit der maus über ihm ist, dann soll ein rechter bzw. linker pfeil erscheinen je nachdem ob die maus über dem rechter oder linken bildbereich ist.

nun zum problem:
das funktioniert leider nur einmal, bis man zum nächsten frame geht. man kommt zwar weiter, aber der pfeil erscheint nicht mehr. warum? muß/kann ich die tiefe nochmal setzen? ließt flash das actionscript nur einmal?

die swf und die fla - dateien findet ihr unter www.flashproblem.de.vu


################################################## ######
PHP-Code:
stop();

this.createEmptyMovieClip("bild_mc"1);
loadMovie("print/print_gr_01.jpg""bild_mc");
bild_mc._x 0;
bild_mc._y 0;


// maus_links_mc & maus_rechts_mc sind die buttons
// pfeil_links_mc & pfeil_rechts_mc die pfeile, die erscheinen sollen
maus_links_mc._alpha 0;
maus_rechts_mc._alpha 0;
pfeil_links_mc._alpha 0;
pfeil_rechts_mc._alpha 0;

maus_links_mc.swapDepths(4);
maus_rechts_mc.swapDepths(5);
pfeil_links_mc.swapDepths(6);
pfeil_rechts_mc.swapDepths(7); 

//linke maus
maus_links_mc.onRollOver = function() {
    
setProperty ("pfeil_links_mc"_alpha"50");
};
maus_links_mc.onRollOut = function() {
    
setProperty ("pfeil_links_mc"_alpha"0");
};
maus_links_mc.onRelease = function() {
    
prevFrame();
};

//rechte maus
maus_rechts_mc.onRollOver = function() {
    
//pfeil_rechts_mc._alpha = 100;
    
setProperty ("pfeil_rechts_mc"_alpha"50");
};
maus_rechts_mc.onRollOut = function() {
    
//pfeil_rechts_mc._alpha = 0;
    
setProperty ("pfeil_rechts_mc"_alpha"0");
};
maus_rechts_mc.onRelease = function() {
    
nextFrame();
}; 
################################################## ######
Angehängte Dateien
Dateityp: zip flashproblem.zip (26,0 KB, 8x aufgerufen)

Geändert von bokel (07-10-2006 um 09:19 Uhr)
francesco75 ist offline   Mit Zitat antworten
Alt 07-10-2006, 09:24   #2 (permalink)
helpQLODhelp
 
Benutzerbild von bokel
 
Registriert seit: Feb 2002
Ort: Köln
Beiträge: 8.505
Hallo Francesco,

liegen denn deine Buttons aus_links_mc und aus_rechts_mc in einem durchgehenden Bereich, oder hast du sie in Keyframes? Wenn sie in Keyframes liegen, gilt das Script nur für den Keyframe, in dem es liegt.

mfg. r
bokel 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 04:05 Uhr.

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


Copyright ©1999 – 2012 Marc Thiele