Zurück   Flashforum > Flash > ActionScript > ActionScript 1

Antwort
 
LinkBack Themen-Optionen Ansicht
Alt 10-10-2003, 23:53   #1 (permalink)
Mrs. lacosamia
 
Benutzerbild von lacosamia
 
Registriert seit: Aug 2003
Ort: Augsburg
Beiträge: 811
Unhappy problem mit onRelease

hi leute

mein button besteht aus einem movie wenn man auf den button geht läuft dieser ab... ich möchte aber das der button sofort zum anklicken funktioniert momentan ist es so das der movie abläuft und das man erst nachdem den button klicken kann... gibt es eine möglichkeit das der button immer zum anklicken ist??


hier mein script


stop();
butn2.onRollOver = function () {
this.onEnterFrame = function () {
if (this._currentframe<this._totalframes) {
this.nextFrame();
} else {
this.onRelease = function () {
gotoAndPlay(9);

}
delete this.onEnterFrame;
}
}
}
butn2.onRollOut = 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;
}
};
};
butn2.onRollOut = function () {
delete this.onRelease;
this.onEnterFrame = function () {
if (this._currentframe>1) {
this.prevFrame();
} else {
delete this.onEnterFrame;
}
}
}
butn2.onDragOut = butn2.onRollOut;
butn2.stop();



vielen dank
__________________
haaatschiiii
lacosamia ist offline   Mit Zitat antworten
Alt 10-10-2003, 23:57   #2 (permalink)
Revived @ Sunday
 
Benutzerbild von MacEvil
 
Registriert seit: Apr 2003
Ort: Nowhereland
Beiträge: 3.244
Mach mal per edit ein (AS) vor den code rein (mit [] klammern)
MacEvil ist offline   Mit Zitat antworten
Alt 11-10-2003, 00:06   #3 (permalink)
Mrs. lacosamia
 
Benutzerbild von lacosamia
 
Registriert seit: Aug 2003
Ort: Augsburg
Beiträge: 811
oh sorry



ActionScript:
  1. stop();
  2. butn2.onRollOver = function () {
  3. this.onEnterFrame = function () {
  4. if (this._currentframe<this._totalframes) {
  5. this.nextFrame();
  6. } else {
  7. this.onRelease = function () {
  8. gotoAndPlay(9);
  9.  
  10. }
  11. delete this.onEnterFrame;
  12. }
  13. }
  14. }
  15. butn2.onRollOut = function() {
  16. this.onEnterFrame = function() {
  17. if (this._currentframe<this._totalframes) {
  18. this.nextFrame();
  19. } else {
  20. this.onRelease = function() {
  21. this.gotoAndPlay(4);
  22. };
  23. this._currentframe<this._totalframes ? delete this.onEnterFrame : 0;
  24. }
  25. };
  26. };
  27. butn2.onRollOut = function () {
  28. delete this.onRelease;
  29. this.onEnterFrame = function () {
  30. if (this._currentframe>1) {
  31. this.prevFrame();
  32. } else {
  33. delete this.onEnterFrame;
  34. }
  35. }
  36. }
  37. butn2.onDragOut = butn2.onRollOut;
  38. butn2.stop();
__________________
haaatschiiii
lacosamia ist offline   Mit Zitat antworten
Alt 11-10-2003, 00:06   #4 (permalink)
_//\\#//\\_
 
Benutzerbild von warrantmaster
 
Registriert seit: Jan 2003
Beiträge: 7.060
ActionScript:
  1. stop();
  2. butn2.onRollOver = function () {
  3. this.onEnterFrame = function () {
  4. if (this._currentframe<this._totalframes) {
  5. this.nextFrame();
  6. } else {
  7. this.onRelease = function () {
  8. gotoAndPlay(9);
  9.  
  10. }
  11. delete this.onEnterFrame;
  12. }
  13. }
  14. }
  15. butn2.onRollOut = function() {
  16. this.onEnterFrame = function() {
  17. if (this._currentframe<this._totalframes) {
  18. this.nextFrame();
  19. } else {
  20. this.onRelease = function() {
  21. this.gotoAndPlay(4);
  22. };
  23. this._currentframe<this._totalframes ? delete this.onEnterFrame : 0;
  24. }
  25. };
  26. };
  27. butn2.onRollOut = function () {
  28. delete this.onRelease;
  29. this.onEnterFrame = function () {
  30. if (this._currentframe>1) {
  31. this.prevFrame();
  32. } else {
  33. delete this.onEnterFrame;
  34. }
  35. }
  36. }
  37. butn2.onDragOut = butn2.onRollOut;
  38. butn2.stop();


bitte mac !


btw, was zum henker ist das ?
warrantmaster ist offline   Mit Zitat antworten
Alt 11-10-2003, 00:12   #5 (permalink)
Mrs. lacosamia
 
Benutzerbild von lacosamia
 
Registriert seit: Aug 2003
Ort: Augsburg
Beiträge: 811
was soll das jetzt?
__________________
haaatschiiii
lacosamia ist offline   Mit Zitat antworten
Alt 11-10-2003, 00:16   #6 (permalink)
_//\\#//\\_
 
Benutzerbild von warrantmaster
 
Registriert seit: Jan 2003
Beiträge: 7.060


wie ?
warrantmaster ist offline   Mit Zitat antworten
Alt 11-10-2003, 00:28   #7 (permalink)
Mrs. lacosamia
 
Benutzerbild von lacosamia
 
Registriert seit: Aug 2003
Ort: Augsburg
Beiträge: 811


hast du schon etwas geändert an meinem script?

oder wie jetzt???

grinz
__________________
haaatschiiii
lacosamia ist offline   Mit Zitat antworten
Alt 11-10-2003, 00:43   #8 (permalink)
_//\\#//\\_
 
Benutzerbild von warrantmaster
 
Registriert seit: Jan 2003
Beiträge: 7.060
...nö...

ich hab nur nicht verstanden, was du willst...

btw, war zeitgleich mit den postings.
warrantmaster ist offline   Mit Zitat antworten
Alt 11-10-2003, 00:50   #9 (permalink)
Mrs. lacosamia
 
Benutzerbild von lacosamia
 
Registriert seit: Aug 2003
Ort: Augsburg
Beiträge: 811
asso!

also wie du dem script entnehmen kannst.. ist der button ein sagen wir MOVIE-BUTTON

also beim hovern auf dem button entsteht eine animation..

doch leider nervt es dass man warten muss bis die animation fertig gelaufen ist denn erst danach kann man auf den button klicken und zur gewünschten seite springen ;(

ich möchte dass mann sofort draufklicken kann ohne zu warten

ich hoffe das konnte man besser verstehen...

danke
__________________
haaatschiiii
lacosamia ist offline   Mit Zitat antworten
Alt 11-10-2003, 01:22   #10 (permalink)
_//\\#//\\_
 
Benutzerbild von warrantmaster
 
Registriert seit: Jan 2003
Beiträge: 7.060
ActionScript:
  1. butn2.onRollOver = function() {
  2.     this.onEnterFrame = function() {
  3.         if (this._currentframe<this._totalframes) {
  4.             this.nextFrame();
  5.         } else {
  6.             delete this.onEnterFrame;
  7.         }
  8.     };
  9. };
  10. butn2.onRelease = function() {
  11.     delete this.onEnterFrame;
  12.     gotoAndPlay(9);
  13. };
warrantmaster ist offline   Mit Zitat antworten
Alt 11-10-2003, 07:55   #11 (permalink)
Revived @ Sunday
 
Benutzerbild von MacEvil
 
Registriert seit: Apr 2003
Ort: Nowhereland
Beiträge: 3.244
Danke warrent
Bei solchen Scripts mit sooo vielen Klammern hat man ja sonst keine Übersicht
MacEvil ist offline   Mit Zitat antworten
Alt 11-10-2003, 12:51   #12 (permalink)
Mrs. lacosamia
 
Benutzerbild von lacosamia
 
Registriert seit: Aug 2003
Ort: Augsburg
Beiträge: 811
DANKE!

hat funktioniert
__________________
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 04:38 Uhr.

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


Copyright ©1999 – 2012 Marc Thiele