sou iniciante em Flash Buider 4 baixei umas apostilas para Flex 3 e fazendo os execícios da alguns erros alguem pode me dizer oque tem de errado?
<fx:Script>
<![CDATA[
import mx.containers.Panel;
import mx.controls.Alert;
import mx.effects.Effect;
import mx.effects.WipeDown;
private function aoClicar():void
{
Alert.show('Ola Mundo');
}
private function addPanel():void
{
var novoPanel:Panel new Panel; <----- Erro
var efeito:Effect new WipeDown; <----- Erro
novoPanel.x=0;
novoPanel.y=0;
novoPanel.width=150;
novoPanel.height=150;
novoPanel.id="panel3";
novoPanel.label="Panel Automatico";
efeito.target=novoPanel;
this.addChild(novoPanel);
efeito.play();
}
]]>
</fx:Script>