Zurück   Flashforum > Flash > ActionScript > ActionScript 1

Antwort
 
LinkBack Themen-Optionen Ansicht
Alt 08-01-2005, 13:22   #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
seth1976 ist offline   Mit Zitat antworten
Alt 09-01-2005, 20:21   #2 (permalink)
Flash & TYPO3
 
Registriert seit: Oct 2003
Ort: Bayern
Beiträge: 2.700
Was meinst du? Suchst du einen Tooltip?
__________________
Mediendesign-Student
johanness ist offline   Mit Zitat antworten
Alt 11-02-2005, 12:08   #3 (permalink)
Neuer User
 
Registriert seit: Feb 2005
Ort: Cologne
Beiträge: 18
Lightbulb Ich vermute mal so ungefähr...

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;
}
}
}
Angehängte Dateien
Dateityp: zip magnet2.zip (2,4 KB, 11x aufgerufen)

Geändert von Dondolini (11-02-2005 um 17:25 Uhr) Grund: Bearbeitet :)
Dondolini 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 03:13 Uhr.

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


Copyright ©1999 – 2012 Marc Thiele