E ae, Comunidade?!!
Olha... Vo postar o código por partes...
Parte ASP:
CODE
<%
Set goSnap = Server.CreateObject("ADODB.Recordset")
Set conexao = Server.CreateObject("ADODB.Connection")
conexao.Open "Provider=SQLOLEDB.1;User ID=sa;Initial Catalog=BD;Data Source=SERVIDOR"
gsQuery = "Select Count(*) AS CONTAR From UF "
Set goSnap = conexao.Execute(gsQuery)
if not goSnap.EOF then
val_total = goSnap("Contar")
val = 0
gsQuery = "Select * From UF "
gsQuery = gsQuery & "ORDER BY SG_UF"
Set goSnap = conexao.Execute(gsQuery)
if not goSnap.EOF then
uf = "&nome_uf" & val & "="
uf = uf & "&cd_uf" & val & "="
val = val + 1
Do While not goSnap.EOF
uf = uf & "&nome_uf" & val & "=" & trim(goSnap("NO_UF"))
uf = uf & "&cd_uf" & val & "=" & trim(goSnap("SG_UF"))
val = val + 1
goSnap.MoveNext
Loop
end if
response.write "&total_uf=" & val_total & uf
Else
response.write "&fim_uf="
End if
%>
Esse aqui eh o código do filme a ser carregado:
Nesse filme, eu tenho um combobox no qual carrego os dados através d um LoadVars.
CODE
stop();
System.useCodepage = true;
var dados_combo_uf:LoadVars= new LoadVars();
dados_combo_uf.load("carrega_estados.asp");
dados_combo_uf.onLoad = function():Void{
var arrItensCombo:Array = new Array();
for (var i = 0; i <= this.total_uf; i++) {
arrItensCombo.push({label:this["cd_uf"+i], data:this["cd_uf"+i]});
}
cboUF.dataProvider = arrItensCombo;
}
E esse eh o código do filme q carrega:
Nesse aqui eu tenho um botão q criei, o qual carrega o outro ".swf".
CODE
stop();
System.useCodepage = true;
carregar.onRelease = function(){
loadMovie("filme_a_ser_carregado.swf", _root.quadro);
}
Acho q tah td certinho... Dêem uma olhada ae...
Wlw pela força!!!