Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1
    Join Date
    Apr 2006
    Location
    England
    Posts
    1,159
    Tokens
    0

    Latest Awards:

    Default Flash Sound Wave

    Hey,

    Is it possible to embed a SHOUTcast stream into a flash file and display a live sound wave animation. I have no knowledge whatsoever of Macromedia Flash. If you know how to do it could you possible create an example with the sound wave being a 2px solid black line.

    Thanks,

    TAO
    REMOVED

    Edited by jesus (Forum Super Moderator): Please do not have text in your signature which is over size 4.

  2. #2
    Join Date
    Jul 2005
    Location
    Belgium
    Posts
    2,492
    Tokens
    147

    Latest Awards:

    Default

    i started somthing but never finished it.
    (note somthing wen wrong with the fonts :p EDIT: or not, dunno, font in nav should be visitor)

    www.tetn.warhead.be/jumpcore/somthing/

    do u mean the sound thing in upper right corner ?
    Last edited by [Oli]; 30-08-2006 at 10:24 PM.

  3. #3
    Join Date
    Aug 2004
    Location
    bristol
    Posts
    3,799
    Tokens
    0

    Latest Awards:

    Default

    I think it's possible to stream music in Flash; however I think it's unlikely that you'll be able to interact with the stream, and if you can, I'm assuming it would be extremely hard unless there's some functions to help you along (again, I think that's unlikely).


    Quote Originally Posted by [oli] View Post
    i started somthing but never finished it.
    (note somthing wen wrong with the fonts :p EDIT: or not, dunno, font in nav should be visitor)

    www.tetn.warhead.be/jumpcore/somthing/

    do u mean the sound thing in upper right corner ?
    That's just an animation?
    kinda quit.

  4. #4
    Join Date
    Jul 2005
    Location
    Belgium
    Posts
    2,492
    Tokens
    147

    Latest Awards:

    Default

    Quote Originally Posted by joshua View Post
    I think it's possible to stream music in Flash; however I think it's unlikely that you'll be able to interact with the stream, and if you can, I'm assuming it would be extremely hard unless there's some functions to help you along (again, I think that's unlikely).



    That's just an animation?
    Yeh, but, im asking if that is what he wants, as i dont get wot hes looking for.

  5. #5
    Join Date
    Apr 2006
    Location
    England
    Posts
    1,159
    Tokens
    0

    Latest Awards:

    Default

    That's exactly what I am looking for. Apart from one horizantal wave instead of a few vertical lines to create the wave. Like inside Windows Media Player effects.
    REMOVED

    Edited by jesus (Forum Super Moderator): Please do not have text in your signature which is over size 4.

  6. #6
    Join Date
    May 2006
    Location
    Huntingdon (Cambridgeshire UK)
    Posts
    3,395
    Tokens
    0

    Latest Awards:

    Default

    Flash 9 will have the capability to work with SHOUTcast sound waves but the AS code in Flash 9 is not powerful enough to deal with such a fast running program. If you have no use with flash then I suggest you read some basic animation tutorials before delving into advanced actionscript. xd

  7. #7
    Join Date
    Apr 2006
    Location
    England
    Posts
    1,159
    Tokens
    0

    Latest Awards:

    Default

    How about a Sound Wave which isn't developed around the sound embeded into the flash. What about one that is just random, but can make my website look unique?
    REMOVED

    Edited by jesus (Forum Super Moderator): Please do not have text in your signature which is over size 4.

  8. #8
    Join Date
    Jun 2006
    Location
    London!
    Posts
    616
    Tokens
    0

    Default

    Most of the ones you see on sites are just random looking ones, but they go fast enough it actually looks like its moving with the song, and then they just animate it to a flat bar when you turn the music off ^^















    :

  9. #9
    Join Date
    May 2006
    Location
    Huntingdon (Cambridgeshire UK)
    Posts
    3,395
    Tokens
    0

    Latest Awards:

    Default

    Oh no that's possible. I know that embedding SHOUTcast radios isn't very easy to do but to work with sound is good. Go to Kirupa.com and search ound in the search bar at the top. That's GREAT !
    Last edited by Kymux; 31-08-2006 at 03:23 PM.

  10. #10
    Join Date
    Aug 2004
    Location
    bristol
    Posts
    3,799
    Tokens
    0

    Latest Awards:

    Default

    Coded one in JavaScript (using no images), although I wouldn't suggest using this as I haven't tested it properly and it makes the browser really slow.
    Example: http://joshjh.pwp.blueyonder.co.uk/wave/

    Code:
    var waveStructure = new Array(), amplitudeDirection = 'u', rand, adj, nextWave;
        function structureWave() {
          rand = Number(Math.floor(Math.random()*100))+1;
          if(rand<21 && amplitudeDirection == 'u') amplitudeDirection = 'd';
          if(rand<21 && amplitudeDirection == 'd') amplitudeDirection = 'u';
          adj = Number(Math.floor(Math.random()*15))+1
          if(waveStructure[0]==undefined) waveStructure[0] = 10;
          var previousWave = waveStructure[0];
          for(a=0; a<adj; a++) {
            if(amplitudeDirection == 'u' && waveStructure[0] == 30) amplitudeDirection = 'd';
            if(amplitudeDirection == 'd' && waveStructure[0] == 0) amplitudeDirection = 'u';
            if(amplitudeDirection == 'd') nextWave = Number(previousWave)-1;
            if(amplitudeDirection == 'u') nextWave = Number(previousWave)+1;
            waveStructure.splice(0,0,nextWave)
            if(waveStructure[150]!=undefined) {
              waveStructure.splice(200,1);
            }
          }
       }
       function printWave() {
         var HTML = '';
         for(b=0; b<waveStructure.length; b++) {
           //HTML += '<img src="pixel.gif" style="margin-bottom: '+waveStructure[b]+'" />';
    
             HTML += '<div style="width: 1px; float: left; height: 0; padding-top: '+waveStructure[b]+'"><hr width="1" align="left" noshade="true" color="#000000" /></div>';
         }
         document.getElementById('waveBox').innerHTML = HTML;
         structureWave();
       }
    kinda quit.

Page 1 of 2 12 LastLast

Posting Permissions

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