Parametros

Arquivo: teste.fla
Actionscript - F9
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 {
	var Texto = this.root.loaderInfo.parameters.teste01;
	Texto += "\n";
	Texto += this.root.loaderInfo.parameters.teste02;
	texto.text = Texto;
}
Arquivo: teste.html
<html>
<head>
<title>Parāmetros</title>
</head>
<body>
   <object ...>
<param name="FlashVars" value="teste01=Mensagem de teste FlashVars 01&teste02=Mensagem de teste FlashVars 02" />
<embed ... FlashVars="teste01=Mensagem de teste FlashVars 01&teste02=Mensagem de teste FlashVars 02"></embed>
</object>
</body> </html>