Results 1 to 4 of 4

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

  1. #1
    Join Date
    Dec 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Flash-text/xml-script.If we solve this issue ill post this expensive script for free

    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.

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

  2. #2
    Join Date
    Aug 2005
    Location
    Other Side of My Monitor
    Posts
    3,494
    Thanks
    5
    Thanked 105 Times in 104 Posts
    Blog Entries
    1

    Default

    Find this line:

    Code:
    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...

    Code:
    temp_xml.sendAndLoad("http://yoursite.com/flash_folder/lastest_news.php", nash_xml);
    {CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
    Follow Me on Twitter: @InkingHubris
    PHP Code:
    $result mysql_query("SELECT finger FROM hand WHERE id=3");
    echo 
    $result

  3. #3
    Join Date
    Dec 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by BLiZZaRD View Post
    Find this line:

    Code:
    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...

    Code:
    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...

  4. #4
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default

    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).

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •