codigo en flash
Código :
System.useCodepage = true;
import flash.external.*;
var indice:Number;
var noticias_xml:XML;
var ruta:String;
ExternalInterface.addCallback("fncallFromJS",this,fncallFromJS);
function fncallFromJS(pTexto:String):Void {
noticias_xml = new XML();
noticias_xml.ignoreWhite = true;
noticias_xml.load(pTexto);
}
[b]codigo en javascript[/b]
<body bgcolor="#ffffff" onload="callFromJS('noticias1.xml')">
<script language="JavasScript" type="Text/Javascript">
function getFlashMovieObject(movieName)
{
if (window.document[movieName])
{ return window.document[movieName]; }
if (navigator.appName.indexOf("Microsoft Internet")==-1)
{ if (document.embeds && document.embeds[movieName])
return document.embeds[movieName];
} else {
return document.getElementById(movieName);
}
}
function callFromJS(ruta)
{
vStr = ruta;
myFlash = getFlashMovieObject("pruebaJS");
myFlash.fncallFromJS(vStr);
}[ SWAT HERNÁN ] Título y Post Editados [ /SWAT HERNÁN ]
