Ver Mensaje Individual
  #1 (permalink)  
Antiguo 17/06/2004, 17:21
Avatar de GUEIVAN
GUEIVAN
 
Fecha de Ingreso: noviembre-2002
Ubicación: VENEZUELA
Mensajes: 160
Antigüedad: 21 años, 5 meses
Puntos: 0
Problema con AS2 y ASP!!!

el problema es el siguiente:

CODIGO ASP

<%
Dim adoc,SQL,adorg

Set adoc = Server.CreateObject("ADODB.Connection")
adoc.Open("DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" & Server.MapPath("data.mdb"))

tabla = Request("tabla")
SQL = "SELECT * from "& tabla
Set adorg = adoc.Execute(SQL)

x=1
while (not adorg.Eof)
Response.Write "&nombre"&x&"=" & adorg("nombre") & "&direccion"&x&"=" & adorg("direccion")
adorg.MoveNext
x=x+1
wend


Response.write "&datos="&x-1

adoc.Close
set adorg = nothing
set adoc = nothing

%>

Y EL CODIGO FLASH ES ESTE:

[frame1]
stop();

en la escena del frame1 tengo una caja de texto de instance name "texto" q tiene como variable "tabla", ok hay un boton de instance name "boton" q posee un script on(press){play();}.


[frame2]
stop();

en la escena del frame2 tengo un MovieClip q posee el siguiente codigo

[frame2]

tabla = _root.texto.tabla;
datos = "";
loadVariables("memoria.asp", this, "POST");

[frame3]
if (this.datos ne "") {
gotoAndPlay(7);
}

[frame6]
gotoAndPlay(3);

en la escena del frame7 tengo un MovieClip q posee el siguiente codigo

[frame7]

onClipEvent (load) {
arreglo=[];
for (var i = 0; i<=datos; i++) {
arreglo[i]= _parent["nombre"+i]; <<<<<--------ERROR DICE "NAN"
}

Esto funciona perfectamente en FLASH MX pero en FLASH MX 2004 no funca que hago?
__________________
VENEZUELA SIN LOS POLITICOS SERIA EL PARAISO!!!

Última edición por GUEIVAN; 17/06/2004 a las 17:26