 |
MEMBERS LOGIN |
SEITE DURCHSUCHEN |
 |
 |
 |
|
 |
|
|
 |
|
|
Im Folgenden finden Sie ein Beispiel für ein schwebendes Menü:
_global.tl = this;
_global.w = 550; // Stage-Breite
_global.h = 400; // Stage-Höhe
navi_mc.onMouseMove = function()
{
this.onEnterFrame = function()
{
if (this._currentFrame == 1)
{
this._x += (_global.tl._xmouse - this._x) / 5;
this._y += (_global.tl._ymouse - this._y) / 5;
}
if ( (Math.abs(this._x - _root._xmouse) < 1) &&
(Math.abs(this._y - _root._ymouse) < 1) )
{
this._x = _root._xmouse;
this._y = _root._ymouse;
delete this.onEnterFrame;
}
// Grenzen setzen
if (this._x < 0) this._x = 0;
if (this._x > _global.w) this._x = _global.w;
if (this._y < 0) this._y = 0;
if (this._y > _global.h) this._y = _global.h;
}; // onEnterFrame
}; // onMouseMove
Autor: P. Nazari
|
|
 |
|
|
Dieser Tipp wurde für genial mit 10 von 10 Punkten [ 3 Stimme(n) ] befunden.
|
|
 |
|
|
Bisherige Kommentare ansehen:
Zu diesem Artikel wurden noch keine Kommentare verfasst.
Einen eigenen Kommentar verfassen:
Sie müssen sich erst registrieren um einen Kommentar verfassen zu können.
|
|
|
|
|
|
|
 |
|
|
|