hallo
also ich hab eine frage.
diesen texxxxt hier habe ich schon lange.
und ein prototype geht von links nach rechts, doch wenn ich das menue verändere, so das die buttons senkrecht stehen, dann habe ich versucht den prototype umzuändern das er von poben nach unten geht, doch das klappt net.
kann mir jemand sagen wie ich das machen kann??
PHP-Code:
this.stop();
// : lade Balken aus der Bibliothek
this.attachMovie("pick_lk", "kopf_mc", this.getNextHighestDepth(), {_x:180, _y:150, _alpha:50});
// : Anzahl der Button die auf der bühne dargestellt werden sollen
var anz = 1;
var aktiver_mc = 0;
for (var i = 1; i<=anz; i++) {
// : lade Button aus Bibliothek
var nav_mc = this.attachMovie("button1_lk", "nav"+i+"_mc", this.getNextHighestDepth(), {_yscale:100, _x:i*30, _y:i*200, _alpha:50});
// : Mouse-Events
// : wenn Mouse ueber Button
nav_mc.onRollOver = function() {
// : schalte Button hell
this._alpha = 80;
};
// : wenn Mouse Button verlässt
nav_mc.onRollOut = function() {
this._alpha = 50;
aktiver_mc._alpha = 100;
};
// : wenn Button nach Tastendruck wieder losgelassen wird
nav_mc.onRelease = function() {
{
_root.gotoAndPlay()
};
// : HIER DEIN AUFRUF AUF DIE HAUPTZEITLEISTE
// : bewege balken auf Button Position
_root.kopf_mc.move(this._x, _root.kopf_mc._y, 2);
// : schalte gerade ge drückten BTN hell
this._alpha = 100;
// : gib den noch aktiven den alte Transparenz
aktiver_mc._alpha = 50;
// : speichere den neuen aktuellen Button
aktiver_mc = this;
};
}
// :: Bewegungs-Prototype :: mit Verlangsamung :.
MovieClip.prototype.move = function(targetX, targetY, delay)
{
if (this._y != targetX || this._x != targetY) {
this.onEnterFrame = function()
{
var difX = -this._x+targetX;
var difY = -this._y+targetY;
if (Math.round(Math.abs(difX))>0 || Math.round(Math.abs(difY))>0) {
this._x += difX/delay;
this._y += difY/delay;
} else {
this._x = targetX;
this._y = targetY;
delete this.onEnterFrame;
}
};
}
};
//aufruf:
deinMC.move(250, 400, 8);