Actionscript 3.0
<head>
<script type="text/javascript" src="scripts/shCore.js"></script>
<script type="text/javascript" src="scripts/shBrushAS3.js"></script>
<link type="text/css" rel="stylesheet" href="styles/shCoreDefault.css"/>
<script type="text/javascript">SyntaxHighlighter.all();</script>
</head>
<pre class="brush: as3;">
import fl.controls.*;
import fl.events.*;
var texto:TextArea = new TextArea();
texto.text = "";
texto.setSize(200, 100);
texto.move(10, 10);
addChild(texto);
var botao:Button = new Button();
botao.label = "Clique Aqui!";
botao.setSize(200, 25);
botao.move(10, 100+25);
botao.addEventListener(MouseEvent.CLICK, onClick);
addChild(botao);
function onClick(evt:MouseEvent):void {
texto.text = "";
texto.text += "\tO livro: \"Manual Prático do ";
texto.text += "Programador\". \nEstá nas livrarias ";
texto.text += "e \\ ou jornaleiros. ";
}
</pre>