Rotating Flash on an ASP page

Discussion in 'C#' started by pratik, Dec 31, 2007.

  1. #1
    hi there,

    I have a site made using ASP...

    there is a page which contains a flash animation... now i want that this flash which is running should rotate every time a visitor visits the page.. i have 4 flash file uploaded on my ftp...

    i just wht a script that can change or rotate those 4 flash files on the same location...;)

    Thanks in advance...
     
    pratik, Dec 31, 2007 IP
  2. JohnZing

    JohnZing Peon

    Messages:
    109
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    something like this (just an example - code not tested)

    <%
    if application("flash_num") is nothing then
    application("flash_num") =0
    end if

    application("flash_num")=application("flash_num")+1

    if application("flash_num") =5 then
    application("flash_num") =1
    end if
    %>

    ' then you just call the flash
    myFlash<%=application("flash_num")%>.swf
     
    JohnZing, Jan 1, 2008 IP
  3. pratik

    pratik Notable Member

    Messages:
    2,306
    Likes Received:
    114
    Best Answers:
    0
    Trophy Points:
    200
    #3
    well thanks for your help...

    i cant understand tht code . .... :(

    I want a flash rotation script just like image rotation... everytime a visitor comes he sees a new flash... :)
     
    pratik, Jan 1, 2008 IP