15.10.2012 Views

Actionscript 3 Entwicklerhandbuch

Actionscript 3 Entwicklerhandbuch

Actionscript 3 Entwicklerhandbuch

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

ACTIONSCRIPT 3.0 ENTWICKLERHANDBUCH<br />

Verwenden der Zeichnungs-API<br />

width = 100;<br />

height = 100;<br />

rotation = 0;<br />

tx = 0;<br />

ty = 0;<br />

width = 100;<br />

height = 100;<br />

rotation = Math.PI/4; // 45°<br />

tx = 0;<br />

ty = 0;<br />

width = 100;<br />

height = 100;<br />

rotation = Math.PI/2; // 90°<br />

tx = 0;<br />

ty = 0;<br />

In den folgenden Beispielen sind die Effekte in einem linearen Grün-Blau-Farbverlauf abgebildet, bei dem die<br />

Parameter rotation, tx und ty der createGradientBox()-Methode wie angegeben abweichen, alle anderen<br />

Einstellungen jedoch unverändert bleiben:<br />

width = 50;<br />

height = 100;<br />

rotation = 0;<br />

tx = 0;<br />

ty = 0;<br />

width = 50;<br />

height = 100;<br />

rotation = 0<br />

tx = 50;<br />

ty = 0;<br />

width = 100;<br />

height = 50;<br />

rotation = Math.PI/2; // 90°<br />

tx = 0;<br />

ty = 0;<br />

width = 100;<br />

height = 50;<br />

rotation = Math.PI/2; // 90°<br />

tx = 0;<br />

ty = 50;<br />

Letzte Aktualisierung 27.6.2012<br />

242

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!