Log in

View Full Version : Flash-text/xml-script.If we solve this issue ill post this expensive script for free



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();

BLiZZaRD
12-06-2008, 04:11 PM
Find this line:



temp_xml.sendAndLoad("lastest_news.php", nash_xml);


Ensure latest_news.php is uploaded to the same directory as the swf. And use a complete URL...



temp_xml.sendAndLoad("http://yoursite.com/flash_folder/lastest_news.php", nash_xml);

sniP
12-06-2008, 11:33 PM
Find this line:



temp_xml.sendAndLoad("lastest_news.php", nash_xml);


Ensure latest_news.php is uploaded to the same directory as the swf. And use a complete URL...



temp_xml.sendAndLoad("http://yoursite.com/flash_folder/lastest_news.php", nash_xml);


yes but i dont know what should latest_news.php contain, how put in it news...

Medyman
12-07-2008, 12:21 AM
How the PHP is structured depends on the rest of "your" code and what information you're trying to + how that information is saved in your database (if it is).

Where did this code come from? It's obviously decompiled code and also obvious that you're not the original developer. Decompiling someone else's code and then vowing to post it for free is not something I'm going to condone or participate in.

If you want to learn how to make this kind of PHP/XML rotating Flash app, let me know and I'll happily guide you through the process (starting from scratch, of course).