Zurück   Flashforum > Flash > ActionScript > ActionScript 1

Antwort
 
LinkBack Themen-Optionen Ansicht
Alt 27-09-2003, 16:03   #1 (permalink)
Mrs. lacosamia
 
Benutzerbild von lacosamia
 
Registriert seit: Aug 2003
Ort: Augsburg
Beiträge: 811
Unhappy hilfe button problem

hi flasher

habe folgendes problem mit meinem button

der button ist ein movie
mit folgenden script:


butn.onRollOver = function () {
this.onEnterFrame = function () {
if (this._currentframe<this._totalframes) {
this.nextFrame();
} else {
delete this.onEnterFrame;
}
}
}
butn.onRollOut = function () {
this.onEnterFrame = function () {
if (this._currentframe>1) {
this.prevFrame();
} else {
delete this.onEnterFrame;
}
}
}
butn.onDragOut = butn.onRollOut;
butn.stop();


so stimmt ja eigentlich alles der button geht beim drüber gehen auf und wieder zu...... nur ich möchte wenn das W kommt das man da drauf klicken kann und zur einer bestimmen scene kommt damit man ein bild öffnen kann....

ich weiss aber absolut nicht wie das machen kann???

habe im movie auf dem entbild wo der button glüht einfach einen button drauf gemacht das W und dann action zb getURL
nur leider kommen dann fehler???

ich hoffe irgendjemand hat das vertstanden

vielen dank

im voraus!
ciao

HIER DER BUTTON:

http://www.schaller-festzeltbetrieb.de/test.html
__________________
haaatschiiii
lacosamia ist offline   Mit Zitat antworten
Alt 27-09-2003, 16:22   #2 (permalink)
anyway
Gast
 
Beiträge: n/a
Naja, sobald alle Bilder Deines Buttons abgespielt wurden, deklarierst Du einfach auf dem Button einen onRelease-Event, der irgendwas ausführt, sobald Du den Button klickst. Und zum rollOut löschst Du diesen Event wieder, damit sich die User auch immer die volle Animation ankucken müssen, bevor sie den Button benutzen dürfen..*fg*

ActionScript:
  1. butn.onRollOver = function () {
  2. this.onEnterFrame = function () {
  3. if (this._currentframe<this._totalframes) {
  4. this.nextFrame();
  5. } else {
  6. this.onRelease = function () {
  7. trace("DAS W WURDE GEDRÜCKT!")
  8. }
  9. delete this.onEnterFrame;
  10. }
  11. }
  12. }
  13. butn.onRollOut = function () {
  14. delete this.onRelease;
  15. this.onEnterFrame = function () {
  16. if (this._currentframe>1) {
  17. this.prevFrame();
  18. } else {
  19. delete this.onEnterFrame;
  20. }
  21. }
  22. }
  23. butn.onDragOut = butn.onRollOut;
  24. butn.stop();

anyway.
  Mit Zitat antworten
Alt 27-09-2003, 16:47   #3 (permalink)
Mrs. lacosamia
 
Benutzerbild von lacosamia
 
Registriert seit: Aug 2003
Ort: Augsburg
Beiträge: 811
hey super! danke geht alles

ABER.... ich brauch kein outpot fenster!
sondern ein getURL oder das man eine bestimmte scene laden kann beim drauf klicken

???

danke schon mal
__________________
haaatschiiii
lacosamia ist offline   Mit Zitat antworten
Alt 27-09-2003, 16:50   #4 (permalink)
anyway
Gast
 
Beiträge: n/a
Dann drück dochmal F1 und schau Dir in der AS-Referenz an, wie man ein getURL benutzt...

anyway.
  Mit Zitat antworten
Alt 27-09-2003, 16:51   #5 (permalink)
Überzeugter Flasher...
 
Benutzerbild von DoppelX
 
Registriert seit: Oct 2001
Ort: Köln
Beiträge: 1.654
wenn anyways funktion funktionier dann so:

PHP-Code:
butn.onRollOver = function () {
        
this.onEnterFrame = function () {
                if (
this._currentframe<this._totalframes) {
                        
this.nextFrame();
                } else {
                        
this.onRelease = function () {
                                
//Eine Swf laden
                                
container.loadMovie ("blub.swf");
                        }
                        
delete this.onEnterFrame;
                }
        }
}
butn.onRollOut = function () {
        
delete this.onRelease;
        
this.onEnterFrame = function () {
                if (
this._currentframe>1) {
                        
this.prevFrame();
                } else {
                        
delete this.onEnterFrame;
                }
        }
}
butn.onDragOut butn.onRollOut;
butn.stop(); 
anstatt loadMovie könntest du da auch ein geturl hinmachen.. oder alles was dir bei zu einem Tastendruck einfällt
__________________
Tjo...
DoppelX ist offline   Mit Zitat antworten
Alt 27-09-2003, 16:52   #6 (permalink)
Überzeugter Flasher...
 
Benutzerbild von DoppelX
 
Registriert seit: Oct 2001
Ort: Köln
Beiträge: 1.654
anyway: jetzt schon 3* ?
__________________
Tjo...
DoppelX ist offline   Mit Zitat antworten
Alt 27-09-2003, 16:56   #7 (permalink)
anyway
Gast
 
Beiträge: n/a
Hrr, sorry - Datenbank hat rumgelamert...Ist schon gelöscht..Aussage steht jedoch weiterhin.

anyway.
  Mit Zitat antworten
Alt 27-09-2003, 17:21   #8 (permalink)
Überzeugter Flasher...
 
Benutzerbild von DoppelX
 
Registriert seit: Oct 2001
Ort: Köln
Beiträge: 1.654
Bin aber auch deiner Meinung
__________________
Tjo...
DoppelX ist offline   Mit Zitat antworten
Alt 27-09-2003, 17:54   #9 (permalink)
Mrs. lacosamia
 
Benutzerbild von lacosamia
 
Registriert seit: Aug 2003
Ort: Augsburg
Beiträge: 811
habs gerafft!

danke an euch!!!!!!!!!!!!!
__________________
haaatschiiii
lacosamia 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 15:24 Uhr.

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


Copyright ©1999 – 2012 Marc Thiele