sniP
12-06-2008, 11:59 AM
HI! i have this really expensive flash news rotating module. But I have one problem, I don't know how to make the lastest_news.php so the flash module could read the news.
function _ucitajStranicu()
{
this.onEnterFrame = function ()
{
_loc1 = getBytesLoaded();
_loc2 = getBytesTotal();
if (_loc1 >= _loc2)
{
delete this.onEnterFrame;
_ucitajXML();
} // end if
};
} // End of the function
function _ucitajXML()
{
function _provjera(uspjesno)
{
if (uspjesno)
{
_debug(nash_xml);
_skloniLoader();
play ();
}
else
{
_debug("Problemi sa konekcijom na bazu!");
} // end else if
} // End of the function
nash_xml.ignoreWhite = true;
nash_xml.contentType = "text/xml";
temp_xml.ignoreWhite = true;
temp_xml.contentType = "text/xml";
nash_xml.onLoad = _provjera;
temp_xml.sendAndLoad("lastest_news.php", nash_xml);
} // End of the function
function _skloniLoader()
{
_tween(load_mc, "_alpha", _strongOut, load_mc._alpha, 0, 5.000000E-001);
} // End of the function
stop ();
var temp_xml = new XML();
_ucitajStranicu();
function _ucitajStranicu()
{
this.onEnterFrame = function ()
{
_loc1 = getBytesLoaded();
_loc2 = getBytesTotal();
if (_loc1 >= _loc2)
{
delete this.onEnterFrame;
_ucitajXML();
} // end if
};
} // End of the function
function _ucitajXML()
{
function _provjera(uspjesno)
{
if (uspjesno)
{
_debug(nash_xml);
_skloniLoader();
play ();
}
else
{
_debug("Problemi sa konekcijom na bazu!");
} // end else if
} // End of the function
nash_xml.ignoreWhite = true;
nash_xml.contentType = "text/xml";
temp_xml.ignoreWhite = true;
temp_xml.contentType = "text/xml";
nash_xml.onLoad = _provjera;
temp_xml.sendAndLoad("lastest_news.php", nash_xml);
} // End of the function
function _skloniLoader()
{
_tween(load_mc, "_alpha", _strongOut, load_mc._alpha, 0, 5.000000E-001);
} // End of the function
stop ();
var temp_xml = new XML();
_ucitajStranicu();