\n";
output.text += "The Flash movie is here. JavaScript enabled please.\n";
output.text += "\n";
output.text += "\n";
output.text += "\n";
}
}
public function toClipboard():void {
System.setClipboard(output.text.substring(0, output.text.length));
}
public function setWarnings(e:Event):void {
warnings.text = player.getWarnings();
}
public function play():void {
if (!player.isPlaying()) {
if (player.isPaused()) m_timer.start();
player.play(input.text);
playButton.label = "Pause";
}
else {
player.pause();
playButton.label = "Play";
m_timer.stop();
}
}
public function stop():void {
player.stop();
playButton.label = "Play";
m_timer.reset();
progress.text = "";
voiceCount.text = "";
}
public function onComplete(e:Event):void {
playButton.label = "Play";
m_timer.reset();
progress.text = "";
voiceCount.text = "";
}
public function onBuffering(e:MMLEvent):void {
if (e.progress < 100) {
progress.text = "Buffering " + e.progress + "%";
voiceCount.text = "";
} else {
onSecond(e);
m_timer.start();
}
}
public function onSecond(e:Event):void {
progress.text = player.getNowTimeStr() + " / " + player.getTotalTimeStr();
// voiceCount.text = "♪" + player.getVoiceCount();
}
]]>