Ver Mensaje Individual
  #1 (permalink)  
Antiguo 07/11/2009, 05:15
alex5o2
 
Fecha de Ingreso: julio-2008
Mensajes: 18
Antigüedad: 15 años, 9 meses
Puntos: 0
Flashvars XML

Hola yo tengo el siquiente codigo que me cargar el un xml desde el mismo codigo as pero yo lo que quiero es cargar el xml des del navegador mediante flashvars (flashvars = “list = getfile.xml” ).
Código:
function parseNews(_xml)
{
    var _loc3 = _xml.firstChild.childNodes;
    file1 = "" + _loc3[0].childNodes[0].firstChild;
    file2 = "" + _loc3[0].childNodes[1].firstChild;
    if (_root.ad_en == 1)
    {
        video.setMedia(file1, "FLV");
        holder.attachMovie("advert", "mc_advert", this.getNextHighestDepth());
        holder._x = 407;
        holder._y = 0;
    }
    else
    {
        video.setMedia(file2, "FLV");
    } // end else if
    if (_root.inline_en == 1)
    {
        _root.inline.ads.ads.headline.htmlText = "<u>" + _loc3[1].childNodes[0].firstChild + "</u>";
        _root.inline.ads.ads.desc.htmlText = "" + _loc3[1].childNodes[1].firstChild;
        _root.inline.ads.ads.linkk.text = "" + _loc3[1].childNodes[2].firstChild;
        this.inline.address = "" + _loc3[1].childNodes[2].firstChild;
    } // end if
} // End of the function
loading._visible = false;
inline._visible = false;
var news_xml = new XML();
news_xml.ignoreWhite = true;
news_xml.onLoad = function (success)
{
    if (success)
    {
        parseNews(this);
    } // end if
};
cframe = _root.mc_controls.play_btn._currentframe;
_root.mc_controls.play_btn.onPress = function ()
{
    if (_root.autoplay == "false" && !first_touch)
    {
        if (first_touch != 1 && cframe == 1)
        {
            news_xml.load("getfile.xml");
        } // end if
        first_touch = 1;
    } // end if
};
if (_root.autoplay == "true")
{
    news_xml.load("getfile.xml");
} // end if
Saludos