New Help with Auto Refreshing

8 replies
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??
#auto #refreshing
  • Profile picture of the author AdWorkMedia
    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!
    Signature


    AdWork Media » Global Affiliate Network & Content Locking Solutions

    Custom Platform, Flexible Lockers, Offers For Every Country
    {{ DiscussionBoard.errors[4150006].message }}
    • Profile picture of the author djnice1
      Thanks for replying, but that would only work if all of the songs were the same length. So that wont work for this
      {{ DiscussionBoard.errors[4150151].message }}
  • Profile picture of the author AdwordsMogul
    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
    Signature
    "Those who can - DO IT. Those who can't, say it's impossible."
    Jean Paul a.k.a AdwordsMogul
    PHPDevelopers.net - Top of the range PHP developers

    Easy Link Saver - Are you tired of the pain of constantly searching for your affiliate links? ( Chrome extension - FREE )
    {{ DiscussionBoard.errors[4150259].message }}
    • Profile picture of the author djnice1
      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
      {{ DiscussionBoard.errors[4150432].message }}
  • Profile picture of the author MIRENGE
    Originally Posted by djnice1 View Post

    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??
    This sounds new to me but i would like to learn as they answer you this question. Thank you for asking.
    Signature
    Interior design .... where beautiful homes is all we care.
    {{ DiscussionBoard.errors[4152044].message }}
    • Profile picture of the author djnice1
      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
      {{ DiscussionBoard.errors[4153938].message }}
      • Profile picture of the author djnice1
        by reading that link you sent me, thats saying open a flash doc. but I dont have the .fla for that flash. Its a free mp3 flash player.
        {{ DiscussionBoard.errors[4155251].message }}
        • Profile picture of the author djnice1
          I have tried

          var loader:Loader = new Loader(new URLRequest("someURL.com"));

          var urlLoader:URLLoader = new URLLoader(new URLRequest("someURL.com"));

          navigateToURL(new URLRequest("someURL.com"));

          var url:URLRequest = "someurl.com";
          navigateToURL(url);



          And NONE of them are working. Again I cannot edit the .swf itself
          {{ DiscussionBoard.errors[4157774].message }}

Trending Topics