A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: image rotation and guestbook

  1. #1
    Junior Member
    Join Date
    Sep 2008
    Posts
    3

    image rotation and guestbook

    Hi all,

    I've been working on a school website, but since I don't have that much of experience with Flash, I have two questions:
    1) I created a flash-guestbook (using xml). You can view it at http://xmos.us.to/guestbook/guestbook.html .
    Now I want to 'integrate' it in my flash website... but I don't have any clue how to do it.

    2) I want a rotation system for some jpg images. And I found a php script (it even support "weight", so I can choose wich ones have to be showed more often then others).
    <?php
    $externalFile = "N"; // Y means the item array contains file names
    // add to the weight and item arrays below
    $weight[0] = 1; $item[0] = "<a href='link0.htm'><img src='flyer.jpg' alt='' /></a>";
    $weight[1] = 1; $item[1] = "<a href='link1.htm'><img src='logo1.jpg' alt='' /></a>";
    $weight[2] = 1; $item[2] = "<a href='link2.htm'><img src='Silhouetted.jpg' alt='' /></a>";
    // end of arrays
    for ( $a=0; $a<count($weight); $a++ )
    for ( $b=1; $b<=$weight[$a]; $b++ ) $pick[] = $a;
    $selected = $item[$pick[rand(0,count($pick)-1)]];
    if ($externalFile == "Y") $selected = file_get_contents($selected);
    echo $selected;
    ?>
    How can I integrate it into my flash site?

    I've been searching for quiet a long time, but still no succes.
    If you need the fla's, just PM me.

    Thanks in advance!

  2. #2
    Junior Member
    Join Date
    Sep 2008
    Posts
    3
    Anyone who knows how to deal with this?
    The thing is that I need it quiet urgent, and I really have no idea how to make it work.
    Thanks in advance.

  3. #3
    Dr. Bob Rulezzz
    Join Date
    Oct 2007
    Posts
    80
    are you asking how to view a swf file from an external source inside another swf file?

  4. #4
    Junior Member
    Join Date
    Sep 2008
    Posts
    3
    Quote Originally Posted by brukman
    are you asking how to view a swf file from an external source inside another swf file?
    Well, that's one of the questions.
    The other thing is that I would like to use the php-code for the image-rotator-script I got.

    But I doubt if any of this 2 things is possible, so what's the best way to make it work?
    Thanks for your reply!

  5. #5
    Junior Member
    Join Date
    Sep 2008
    Posts
    3
    Ok, the guestbook problem is solved.
    How can I make the php-imagerotator work?

    Thanks!

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center