Zurück   Flashforum > Flash > ActionScript > ActionScript 1

Antwort
 
LinkBack Themen-Optionen Ansicht
Alt 14-07-2006, 09:25   #1 (permalink)
Neuer User
 
Registriert seit: Jul 2001
Ort: München
Beiträge: 24
Question Movie Steuern mit AS

Hallo,

komme irgendwie nicht mehr weiter.

Folgendes Problem:

Habe in meiner Zeitleiste 8 Bilder immer mit 20 Frames fade in, STOP, 20 Frames fade out! Über Pfeilbuttons kann man zwischen den BIldern wechseln. Fade i, Fade out.

Jetzt habe ich noch einen zusätzlichen Button auf welchem die Funktion liegen soll:

- laufe ab dem STOP 20 nextframes
- wenn der jeweils 20.Frame erreicht ist soll er zu gotoanplay Frame 350.

????

Danke
Chris



!!! HABS SELBER GESCHAFFT !

Geändert von Chris_Flash (14-07-2006 um 10:08 Uhr)
Chris_Flash ist offline   Mit Zitat antworten
Alt 14-07-2006, 10:01   #2 (permalink)
Pending…
 
Benutzerbild von psyk
 
Registriert seit: Jul 2002
Ort: Hamburg
Beiträge: 3.866
Ich weiß nicht genau ob ich dich richtig verstanden habe.
Was soll denn laufe ab dem STOP 20 nextframesdas heißen.
PHP-Code:
function gotoAndJump ref:MovieClip ):Void 
{
   
ref.gotoAndPlay'STOP' );
   var 
currF:Number this._currentframe;
   
ref.onEnterFrame = function(){
      if( 
this._currentframe >= currF+20 ) {
         
delete this.onEnterFrame;
         
this.gotoAnPlay350 );
      }
   }
}
// : --- Anweisung ---
my_btn.onRelease = function(){
   
gotoAndJump_root.my_mc );

__________________
:: Warum einfach, wenn's auch kompliziert geht! ::

Geändert von psyk (14-07-2006 um 10:03 Uhr)
psyk ist offline   Mit Zitat antworten
Alt 14-07-2006, 10:08   #3 (permalink)
Neuer User
 
Registriert seit: Jul 2001
Ort: München
Beiträge: 24
ja,

habs jetzt so gemacht:

Code:
MovieClip.prototype.bewegen = function(dir) {
	if (!this.onEnterFrame) {
		this.ziel = dir == "nextFrame" ? this._currentframe+20 : this._currentframe-20;
		this[dir]();
		this.onEnterFrame = function() {
			this._currentframe == this.ziel ? delete this.onEnterFrame : this[dir]();
			if (!this.onEnterFrame)
			gotoAndPlay(590);

		};
	}
};
this.vor.onRelease = function() {
	_root.bewegen("nextFrame"); 
};
Chris_Flash 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 23:37 Uhr.

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


Copyright ©1999 – 2012 Marc Thiele