Zurück   Flashforum > Flash > ActionScript > ActionScript 1

Antwort
 
LinkBack Themen-Optionen Ansicht
Alt 03-10-2003, 00:20   #1 (permalink)
Mrs. lacosamia
 
Benutzerbild von lacosamia
 
Registriert seit: Aug 2003
Ort: Augsburg
Beiträge: 811
Talking Warum funktioniert das nicht?

hi,

ich möchte mit diesem AS nicht nur beim ersten klick gotoURL haben sondern auch beim 2ten klick ein gotoURL

ich weiss aber nicht wie ich das reinschreiben muss kann mir jemand helfen?

danke!!!

hier das AS

butn.onRollOver = function () {
this.onEnterFrame = function () {
if (this._currentframe<this._totalframes) {
this.nextFrame();
} else {
this.onRelease = function () {
gotoAndPlay(3);

}
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();
__________________
haaatschiiii
lacosamia ist offline   Mit Zitat antworten
Alt 03-10-2003, 00:48   #2 (permalink)
_//\\#//\\_
 
Benutzerbild von warrantmaster
 
Registriert seit: Jan 2003
Beiträge: 7.060
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.                 this.gotoAndPlay(3);
  8.             };
  9.             this._currentframe<this._totalframes ? delete this.onEnterFrame : 0;
  10.         }
  11.     };
  12. };

wenn du das gotoandplay(3) meinst.
warrantmaster ist offline   Mit Zitat antworten
Alt 03-10-2003, 00:59   #3 (permalink)
Mrs. lacosamia
 
Benutzerbild von lacosamia
 
Registriert seit: Aug 2003
Ort: Augsburg
Beiträge: 811
danke für deine schnelle hilfe!



leider funktioniert es nicht ;(

mein button wenn ich ihn klicke wiederholt sich dann?

also er geht auf... und beim 2ten klick zu....


er sollte eigentlich beim 2ten klick mit gotoandplay.. zu einer scene gehen ;(

danke schon mal


habs so eingebaut

AS


butn.onRollOver = function () {
this.onEnterFrame = function () {
if (this._currentframe<this._totalframes) {
this.nextFrame();
} else {
this.onRelease = function () {
gotoAndPlay(3);

}
delete this.onEnterFrame;
}
}
}
butn.onRollOver = function() {
this.onEnterFrame = function() {
if (this._currentframe<this._totalframes) {
this.nextFrame();
} else {
this.onRelease = function() {
this.gotoAndPlay(4);
};
this._currentframe<this._totalframes ? delete this.onEnterFrame : 0;
}
};
};
butn.onDragOut = butn.onRollOut;
butn.stop();
__________________
haaatschiiii
lacosamia ist offline   Mit Zitat antworten
Alt 03-10-2003, 02:10   #4 (permalink)
_//\\#//\\_
 
Benutzerbild von warrantmaster
 
Registriert seit: Jan 2003
Beiträge: 7.060
aaxooo....

du willst eine sich veränderde klick-funktion ?

yep, arbeite mit einem counter:

prinzip:

ActionScript:
  1. var klick=3;
  2.  
  3. button.onRelease=function(){
  4. gotoAndPlay(klick);
  5. klick ++;
  6. }

ich hoffe, ich hab dich jetzt verstanden (und du mich )

grz
warrantmaster ist offline   Mit Zitat antworten
Alt 03-10-2003, 02:24   #5 (permalink)
Mrs. lacosamia
 
Benutzerbild von lacosamia
 
Registriert seit: Aug 2003
Ort: Augsburg
Beiträge: 811
looooool habe meinen fehler gefunden LACH

rollOUT hat gefehlt sorry
__________________
haaatschiiii

Geändert von lacosamia (03-10-2003 um 02:26 Uhr)
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 11:22 Uhr.

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


Copyright ©1999 – 2012 Marc Thiele