Publicidade #3

Criando Player em Flash

Posted by By :DaniieL Fillipe 06:15, under | No comments





Action frame - code
__________

function stream()
{ System.security.allowDomain("http://seuip:suaporta/");
myRadio = new String("http://seuip:suaporta/;");
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://seuip:suaporta/");
myRadio = new String("http://seuip:suaporta/;");
mySound = new Sound();
mySound.loadSound(myRadio, true);
mySound.start();
var vol = 80;
_root.onEnterFrame = function ()
{ _root.mySound.setVolume(vol);
};
var intervalID = setInterval(clearBuffer, 1200000);

___________________________________________________________

botão play - code __________

on (release)
{
function stream()
{
System.security.allowDomain("http://seuip:suaporta/");
myRadio = new String("http://seuip:suaporta/;");
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;
}
___________________________________________________________

botão stop - code
__________

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

botão mais - code
__________

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

botão menos - code
__________

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

botão site - code
__________

on (press){
getURL("http://www.seusite.com.br", "_blank");
}
___________________________________________________________


0 comentários:

Postar um comentário

Blog Archive

Blog Archive