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 />

Arbeiten mit nativen AIR-Fenstern<br />

import flash.display.Sprite;<br />

import flash.display.StageDisplayState;<br />

import flash.text.TextField;<br />

import flash.text.TextFormat;<br />

public class FullScreenTerminalExample extends Sprite<br />

{<br />

public function FullScreenTerminalExample():void<br />

{<br />

var terminal:TextField = new TextField();<br />

terminal.multiline = true;<br />

terminal.wordWrap = true;<br />

terminal.selectable = true;<br />

terminal.background = true;<br />

terminal.backgroundColor = 0x00333333;<br />

exit.\n_";<br />

}<br />

}<br />

this.stage.displayState = StageDisplayState.FULL_SCREEN_INTERACTIVE;<br />

addChild(terminal);<br />

terminal.width = 550;<br />

terminal.height = 400;<br />

terminal.text = "Welcome to the dumb terminal application. Press the ESC key to<br />

var tf:TextFormat = new TextFormat();<br />

tf.font = "Courier New";<br />

tf.color = 0x00CCFF00;<br />

tf.size = 12;<br />

terminal.setTextFormat(tf);<br />

terminal.setSelection(terminal.text.length - 1, terminal.text.length);<br />

Letzte Aktualisierung 27.6.2012<br />

975

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

Saved successfully!

Ooh no, something went wrong!