Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder
    Join Date
    Mar 2005
    Posts
    156
    Thanks
    8
    Thanked 1 Time in 1 Post

    import images from xml

    I'm trying to create a slideshow of images pulled from a db into an xml format.

    My movie will display as such
    PHP Code:
    loadMovieNum(VARIABLE_HERE0); 
    XML
    PHP Code:
    <? php

    $connect 
    mysql_connect("localhost""user""pass");
    mysql_select_db("db");

    $result mysql_query("select * from table");

    echo(
    "<?xml version=\"1.0\" encoding=\"iso-8859-1\"?>\n");

    echo(
    "<image>\n");
    while(
    $rows=mysql_fetch_assoc($result)){
    echo(
    "<item>http://localhost/images/".$rows['imageName']."</item>\n");
    }
    echo(
    "</image>");
    ?>
    which will display
    PHP Code:
    <image>
    http://localhost/images/image1.jpg
    </image>
    <
    image>
    http://localhost/images/image2.jpg
    </image
    Now I want to take those images and loadMovieNum() them into my flash movie with about 5 second transition to the next.

    Any help appreciated.

    David

  • #2
    Senior Coder gnomeontherun's Avatar
    Join Date
    Sep 2007
    Location
    Houston
    Posts
    2,846
    Thanks
    10
    Thanked 238 Times in 229 Posts
    Ok, there are several threads about this already, so check these first.

    http://codingforums.com/showthread.php?t=129968
    http://codingforums.com/showthread.php?t=152109

    as well as dozens of tutorials online to help with the code.

    Not trying to be rude, but you didn't ask a question so I don't know what you want/need here.
    jeremy - gnomeontherun
    Educated questions often get educated answers, and simple questions often get simple answers.

  • #3
    Regular Coder
    Join Date
    Mar 2005
    Posts
    156
    Thanks
    8
    Thanked 1 Time in 1 Post
    that should be perfect. I couldn't find a tutorial that combined both. I'm a php guy, not good at flash, so don't know the 'lingo' to search for. Thanks a ton


  •  

    Posting Permissions

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