Loading:


TextField _ymouse [AS 2]

Klasa: TextField

Kompatybilność: ActionScript 1.0, Flash 6+

 

 

Zwraca współrzędną y pozycji myszki relatywną do pola tekstowego.



Napisz Artyku³

Listing

this.createTextField("mouse_txt", this.getNextHighestDepth(), 10, 10, 200, 22);
mouse_txt.border = true;
this.createTextField("textfield_txt", this.getNextHighestDepth(), 220, 10, 200, 22);
textfield_txt.border = true;
this.createTextField("moj_txt", this.getNextHighestDepth(), 100, 100, 160, 120);
moj_txt.border = true;

var mouseListener:Object = new Object();
mouseListener.onMouseMove = function() {
    mouse_txt.text = "MOUSE ... X:" + Math.round(_xmouse) + ",\tY:" + Math.round(_ymouse);
    textfield_txt.text = "TEXTFIELD ... X:" + Math.round(moj_txt._xmouse) + ",\tY:" +
    Math.round(moj_txt._ymouse);
}

Mouse.addListener(mouseListener);

 




Dodano przez: divix
Ranga: Administrator serwisu Punktów: 38523
Komentarze użytkowników
    • Tre¶æ komentarza
      Kod do komentarza (opcjonalnie)
      PHP JavaScript MySQL Smarty SQL HTML CSS ActionScript
      Autor
      Token
      token

       

       








funkcje.net
Wszelkie prawa zastrzeżone©. | Funkcje.net 2008-2024 v.1.5 | design: diviXdesign & rainbowcolors