Zurück   Flashforum > Flash > ActionScript > ActionScript 1

Antwort
 
LinkBack Themen-Optionen Ansicht
Alt 19-02-2008, 15:55   #1 (permalink)
Neuer User
 
Registriert seit: Nov 2007
Beiträge: 62
yugop stopfunktion

hallo zusammen!wir haben eine skyline gebaut mit einem scribt das man nach links und rechts scrollen kann.leider läuft es nur als loop.wir hätten gerne das es am ende links und rechts stopt!

wäre super wenn jemand ein tip hätte

script:



this.onEnterFrame = function () {
if (_xmouse < 150) slider._x += (150-_xmouse)*0.15;
if (_xmouse > 875) slider._x += (875-_xmouse)*0.15;


slider_r._x = slider._x+slider._width;
slider_l._x = slider._x-slider._width;


}

movieclip.prototype.blend = function (obj,faktor){
if (obj.hitTest(_root._xmouse, _root._ymouse, true)) {
obj._alpha = obj._alpha+(100-obj._alpha)/faktor;
}else{
obj._alpha = obj._alpha+(50-obj._alpha)/faktor;
}
}



for(i=1;i<7;i++)
{
tmp="cont"+i+"_but";
this.slider_l["cont"+i].zaehler=i;
this.slider_r["cont"+i].zaehler=i;
this.slider["cont"+i].zaehler=i;
//
this.slider["cont"+i].onEnterFrame = function() { blend(this, 6.0); };
this.slider_l["cont"+i].onEnterFrame = function() { blend(this, 6.0); };
this.slider_r["cont"+i].onEnterFrame = function() { blend(this, 6.0); };
//
this.slider_l["cont"+i][tmp].onRollOver = function() { _root.display =displayarray[this._parent.zaehler]; _root.besch = beschArray[this._parent.zaehler] }
this.slider_r["cont"+i][tmp].onRollOver = function() { _root.display =displayarray[this._parent.zaehler]; _root.besch = beschArray[this._parent.zaehler] }
this.slider["cont"+i][tmp].onRollOver = function() { _root.display =displayarray[this._parent.zaehler]; _root.besch = beschArray[this._parent.zaehler] }
//
this.slider_l["cont"+i][tmp].onPress = function() { attachMovie(["mc"+this._parent.zaehler], "dupliRechteck", 200, {_x:500,_y:50,_xscale:100,_yscale:100 }); }
this.slider_r["cont"+i][tmp].onPress = function() { attachMovie(["mc"+this._parent.zaehler], "dupliRechteck", 200, {_x:500,_y:50,_xscale:100,_yscale:100 }); }
this.slider["cont"+i][tmp].onPress = function() { attachMovie(["mc"+this._parent.zaehler], "dupliRechteck", 200, {_x:500,_y:50,_xscale:100,_yscale:100 }); }
}
chrisrock ist offline   Mit Zitat antworten
Alt 19-02-2008, 17:22   #2 (permalink)
agedoubleju
Gast
 
Beiträge: n/a
Erweiter die beiden if-Abfragen im ersten onEnterFrame-Event um die Überprüfung der jeweiligen Grenzen...
  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 14:14 Uhr.

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


Copyright ©1999 – 2012 Marc Thiele