script for displaying random flash images / banner

Discussion in 'Programming' started by Lukas, Feb 13, 2007.

  1. #1
    I am looking for a script to display random flash images and flash banners in php

    I prefer to not get one that has javascript or a MySql database.

    Because some people have javascript turned off I do not want it.
    In addition, approximately 10% of population does not have flash player installed.
    So, the php script should be able to detect that and then just display the one image.


    Is there something out there like that ?.

    I have yahooed / googled & searched hotscripts and other script vaults and nada but javascripts.

    any suggestions are welcomed

    Thanks
     
    Lukas, Feb 13, 2007 IP
  2. ccoonen

    ccoonen Well-Known Member

    Messages:
    1,606
    Likes Received:
    71
    Best Answers:
    0
    Trophy Points:
    160
    #2
    well, without javascript, theirs only one way to pass in variables to flash, and thats through the URL Embed

    (as in you embed the movie.swf?val=1&val2=2&val3=3 etc...)

    once you have the variable in flash, just display it. I would pass in locations of other .swf movies to embed actually. Then you have a container shell and can embed any kind of movie or image file.
     
    ccoonen, Feb 13, 2007 IP
  3. krakjoe

    krakjoe Well-Known Member

    Messages:
    1,795
    Likes Received:
    141
    Best Answers:
    0
    Trophy Points:
    135
    #3
    Well I don't see why interaction between flash and php is necessary, you could just write or get a script that loads all the files in a directory into an array, detects the file extension and outputs the correct <object> tag for the movie or <img> picture ....
     
    krakjoe, Feb 14, 2007 IP