Comunidad de diseño web y desarrollo en internet online

Flashvars XML

Citar            
MensajeEscrito el 07 Nov 2009 11:11 am
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 ActionScript :

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

Por alex5o2

16 de clabLevel



Genero:Masculino  

msie7
Citar            
MensajeEscrito el 07 Nov 2009 03:57 pm

Por ur!

256 de clabLevel



 

Barcelona

chrome

 

Cristalab BabyBlue v4 + V4 © 2011 Cristalab
Powered by ClabEngines v4, HTML5, love and ponies.