imam sledeci kod koji ne radi:
Kako da resim problem?
Code:
class News
{
var newsXML:XML;
function News ()
{
this.newsXML = new XML ();
this.newsXML.onLoad = onLoadNews;
this.newsXML.load ("news.xml");
}
function onLoadNews (ok)
{
if (ok)
{
var nt = this.newsXML.firstChild;
trace ( nt.nodeName)
if (nt.nodeName == "NEWSTICKER")
{
//....
}
}
}
}
class News
{
var newsXML:XML;
function News ()
{
this.newsXML = new XML ();
this.newsXML.onLoad = onLoadNews;
this.newsXML.load ("news.xml");
}
function onLoadNews (ok)
{
if (ok)
{
var nt = this.newsXML.firstChild;
trace ( nt.nodeName)
if (nt.nodeName == "NEWSTICKER")
{
//....
}
}
}
}
Kako da resim problem?
Potpis
Flash komponenta za atraktivan prikaz vesti na sajtu:
www.flash-news-ticker.com
www.flash-news-ticker.com