Criando Player de Web Radio em Flash.

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
14,100
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Aug 1, 2010

Link para o Download do Flash: http://wesley-sns.com
Link para ouvir a Radio Starmix: http://radiostar-miix.blogspot.com/

------Códigos Usados na Video Aula-------

function stream()
{ System.security.allowDomain("http:// LINK DA SUA STREAMING:PORTA");
myRadio = new String("http://LINK DA SUA STREAMING:PORTA");
mySound = new Sound();
mySound.loadSound(myRadio, true);
mySound.start();
} // End of the function
function clearBuffer()
{ mySound.stop(); delete mySound; stream();
} // End of the function
timerinProgress = false;
musicOn = true;
offonText = "OFF";
System.security.allowDomain("http:// LINK DA SUA STREAMING:PORTA");
myRadio = new String("http:// LINK DA SUA STREAMING:PORTA");
mySound = new Sound();
mySound.loadSound(myRadio, true);
mySound.start();
var vol = 80;
_root.onEnterFrame = function ()
{ _root.mySound.setVolume(vol);
};
var intervalID = setInterval(clearBuffer, 1200000);

--
Action Script do link do botão:

on (press) {
getURL(" LINK DO SITE ","_blank")
}

--

Action Script do botão play:

on (release)
{
function stream()
{
System.security.allowDomain("http://O LINKD DA SUA STREAMING:PORTA");
myRadio = new String("http://LINK DA SUA STREAMING:PORTA");
mySound = new Sound();
mySound.loadSound(myRadio, true);
mySound.start();
} // End of the function
function clearBuffer()
{
mySound.stop();
delete mySound;
stream();
} // End of the function
stream();
var intervalID = setInterval(clearBuffer, 1200000);
timerinProgress = false;
musicOn = true;
}

--
Action Script do botão stop:

on (release) { mySound.stop();
mySound.close(); _root.timerinProgress = true; _root.musicOn = false; _root.clearInterval(intervalID);
}

--
Action Script do botão mais(+):

on (release)
{ if (_root.vol == 100) { _root.vol = _root.vol - 0; } else { _root.vol = _root.vol + 10; } // end if
}

--

Action Script do botão menos(-):

on (release)
{ if (_root.vol == 0) { _root.vol = _root.vol + 0; } else { _root.vol = _root.vol - 10; } // end if
}

Category:

Science & Technology

Tags:

License:

Standard YouTube License

  • likes, 12 dislikes

Link to this comment:

Share to:
see all

All Comments (32)

Sign In or Sign Up now to post a comment!
  • Esse cara é burro demais.... a gente tá entendendo ele direitinho.....

  • Video Aula? Passou longe de ser isso...xD

  • cara como vç faz uma video aula com musica no meio vai ser burro assim

    no pasto do meu vizinho

  • carra q merda eu converto a imagem par abotão e clico em actions e colo o codigo e não funciona nada q merdddddaaaaaaaaaaaaaaaaaaaa

    ae é action script 3 ou 2?

  • k faz o player e no blog tem um do media player kkkkkkkkkkkkkkkkkkk

  • olha eu não crie um projeto de player de radio, mas achei um projeto de webcam no flash

    megaupload com/?d=QUDY1KNJ

  • affs velho tira a musica larga de se burro!

  • nao aprendi nada a musica ta altona

  • o link de download morreo

  • Cara eu to sem caixinha de som

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more