Warning: file_get_contents(http://helion.pl/promocje/): failed to open stream: HTTP request failed! HTTP/1.1 503 Backend fetch failed in /libs/helion/simple_html_dom.php on line 77

Warning: simplexml_load_string(): Entity: line 12: parser error : Opening and ending tag mismatch: meta line 3 and head in /libs/helion/helion-lib.php on line 834

Warning: simplexml_load_string(): </head> in /libs/helion/helion-lib.php on line 834

Warning: simplexml_load_string(): ^ in /libs/helion/helion-lib.php on line 834

Warning: simplexml_load_string(): Entity: line 18: parser error : Opening and ending tag mismatch: head line 2 and html in /libs/helion/helion-lib.php on line 834

Warning: simplexml_load_string(): </html> in /libs/helion/helion-lib.php on line 834

Warning: simplexml_load_string(): ^ in /libs/helion/helion-lib.php on line 834

Warning: simplexml_load_string(): Entity: line 19: parser error : Premature end of data in tag html line 1 in /libs/helion/helion-lib.php on line 834

Warning: simplexml_load_string(): in /libs/helion/helion-lib.php on line 834

Warning: simplexml_load_string(): ^ in /libs/helion/helion-lib.php on line 834
Pobranie danych XML zako?czy?o si? niepowodzeniem. Serwer nie zwrĂłci? danych XML lub dane by?y niepoprawne.
Notice: Undefined index: item in /libs/helion/helion-lib.php on line 676

Notice: Undefined index: item in /libs/helion/helion-lib.php on line 680
Niepoprawny identyfikator ksi??ki (ident).
Notice: Undefined index: tytul in /functions/helion.php on line 189

Notice: Undefined index: cena in /functions/helion.php on line 189

Notice: Undefined index: tytul in /functions/helion.php on line 192

Notice: Undefined index: cenadetaliczna in /functions/helion.php on line 196

Notice: Undefined index: cena in /functions/helion.php on line 196

Notice: Undefined index: znizka in /functions/helion.php on line 197
Flash ActionScript Matrix createBox [AS 2]
Loading:


Matrix createBox [AS 2]

Klasa: Matrix

Kompatybilność: ActionScript 1.0, Flash 8+

 

createBox(skalaX:Number, skalaY:Number, [rotacja:Number], [tx:Number], [ty:Number]) : Void

 

Dołącza parametry do skalowania, obracania oraz przemieszczania.



Napisz Artykuł

Listing

import flash.geom.Matrix;
import flash.geom.Transform;

var mojMatrix:Matrix = new Matrix();
trace(mojMatrix.toString()); // (a=1, b=0, c=0, d=1, tx=0, ty=0)

mojMatrix.createBox(1, 2, Math.PI/4, 100, 200);
trace(mojMatrix.toString()); // (a=0.707106781186548, b=1.41421356237309, c=-0.707106781186547, d=1.4142135623731, tx=100, ty=200)

var prostokatMc:MovieClip = stworzProstokat(20, 80, 0xFF0000);
var prostokatTrans:Transform = new Transform(prostokatMc);
prosotkaTrans.matrix = mojMatrix;

function stworzProstokat(szerokosc:Number, wysokosc:Number, kolor:Number):MovieClip {
    var depth:Number = this.getNextHighestDepth();
    var mc:MovieClip = this.createEmptyMovieClip("mc_" + depth, depth);
    mc.beginFill(kolor);
    mc.lineTo(0, wysokosc);
    mc.lineTo(szerokosc, wysokosc);
    mc.lineTo(szerokosc, 0);
    mc.lineTo(0, 0);
    return mc;
}
 


kontakt w sprawie miejsca



Dodano przez: divix
Ranga: Administrator serwisu Punktów: 38423
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-19 v.1.5 | design: diviXdesign & rainbowcolors