PDA

View Full Version : FLV Player Help


italian_raver
08-11-2007, 01:42 PM
I have three places i'm in need of help in
1. I followed a tutorial to create a mute button but the AS errors can some one please see if they can find an error in it. Also can someone point me to a guide where i can make a Volume Bar.

The instance is "mute"


mute.onRollOver = Function () {
if (so.getVolume() == 100) {
this.gotoAndStop("onOver");
}
else {
this.gotoAndStop("muteOver");
}
}
mute_btn.mute.onRollOut = Function () {
if (so.getVolume() == 100) {
this.gotoAndStop("on");
}
else {
this.gotoAndStop("mute");
}
}
mute_btn.mute.onRelease = Function () {
if (so.getVolume() == 100) {
so.setVolume(0);
this.gotoAndStop("muteOver");
}
else {
so.setVolume(100);
this.gotoAndStop("onOver");
}
}

2. I want to add a Full screen button
I have a button with the instance name "fullScreen_btn"

can anyone give me an example of code, please.

I've tried this code but it doesn't work

fullScreen_btn.onRelease = function () {
Stage["displayState"] = "fullScreen";
};


3. Is there a way to code a button to skip to the next rack on an XML Playlist.

Thank You very much.