New Help with Auto Refreshing

by 8 replies
9
I am using Flabell's Simple Flash MP3 Players, I have it pointed to a rotater so that it plays a different mp3 every visit. Now What Im wanting to do it make it refresh after a song has finished.... any idea??
#programming #auto #refreshing
  • You could set a meta tag refresh to happen after a certain amount of time, like 4 minutes. If you know the songs exact time, then you could pass that as a php variable to the meta tag. Here is an example of the code:

    Code:
    <meta http-equiv="refresh" content="600">
    WHERE 600 is in seconds.

    Good luck!
    • [1] reply
    • Thanks for replying, but that would only work if all of the songs were the same length. So that wont work for this
  • It's been such a long time since I worked with Flash...

    I think this should work

    You can create a function that sends the length of the song from Flash to your html/php.

    Then use that a variable in your meta-refresh tag.

    Or load the song via external variables. So, you will use the same mechanism to place the value in your refresh tag/script.

    Check this out: http://code2design.com/tutorial/send...o_php_and_back
    • [1] reply
    • This is the code I been working with. I tried to use a "onfinish function ()" after the .swf file but no luck. I must be doing something wrong


      EDIT: I was going to post the code but it wont let me
  • This sounds new to me but i would like to learn as they answer you this question. Thank you for asking.
    • [1] reply
    • If anybody would like to help me with this can you PM me? I cant post the code on the board yet, it doesnt let me thanks
      • [1] reply

Next Topics on Trending Feed

  • 9

    I am using Flabell's Simple Flash MP3 Players, I have it pointed to a rotater so that it plays a different mp3 every visit. Now What Im wanting to do it make it refresh after a song has finished.... any idea??