13/08/2007, 19:35
|
| | Fecha de Ingreso: agosto-2002 Ubicación: Santiago de Chile
Mensajes: 136
Antigüedad: 22 años, 3 meses Puntos: 1 | |
Re: Recibir variables externas con AS 3.0 Usando FlashVars
Código:
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0"
width="600"
height="400"
align="middle"
id="playera">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="playera.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<param name="FlashVars" value="video3=/videos/<%=rs_ent("video")%>" />
<embed src="playera.swf"
width="600"
height="400"
autostart="false"
quality="high"
bgcolor="#ffffff"
FlashVars="video3=/videos/<%=rs_ent("video")%>"
name="playera"
align="middle"
allowScriptAccess="sameDomain"
type="application/x-shockwave-flash"
pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
En actionscript
Código:
var key:String;
var value:String;
var params:Object = LoaderInfo(this.root.loaderInfo).parameters;
for (key in params) {
value = String(params[key]);
trace( key + ":\t" + value + "\n");
}
Suerte |