| |||||||
Du magst keine Werbung? Wir auch nicht!
Einfach registrieren und die Werbung ist weg. Diese Nachricht sehen nur nicht registrierte Nutzer.
![]() |
| | LinkBack | Themen-Optionen | Ansicht |
| | #1 (permalink) |
| viva colonia Registriert seit: Jan 2005 Ort: Köln
Beiträge: 255
| Cursor Feld
Hallo! Hat jemand einen Tipp wie das mit dem Cursor funktionert, dem ein magnetisches Feld folgt solange man sich über einem best. Bereich sagen wir mal einem Icon befindet? Ähnl. geht auch mit Java Script brauche es aber in flash. Gruß seth |
| | |
| | #3 (permalink) |
| Neuer User Registriert seit: Feb 2005 Ort: Cologne
Beiträge: 18
|
Falls das deiner Vorstellung entspricht... viel Spass und bis die Tage Modifiziert: www.dondolini.de/flash/magnet.php Magneto!!! Hier der Code: (geht bestimmt auch besser...) onClipEvent (load) { this._x = _root.bx; this._y = _root.by; } onClipEvent (enterFrame) { trace(_root._ymouse); trace(_root._xmouse); if (_root._xmouse<=200 && _root._ymouse<=200 && _root._xmouse>=0 && _root._ymouse>=0) { this._x = _root._xmouse; this._y = _root._ymouse; } else { if (this._x>_root.bx) { trace(this._x); this._x -= 3; } if (this._y>_root.by) { trace(this._y); this._y -= 3; } if (this._x<_root.bx) { trace(this._x); this._x += 3; } if (this._y<_root.by) { trace(this._y); this._y += 3; } } } Geändert von Dondolini (11-02-2005 um 17:25 Uhr) Grund: Bearbeitet :) |
| | |
![]() |
| Lesezeichen |
| Themen-Optionen | |
| Ansicht | |
| |