試試這個,明顯地用你的視頻的實例名替換video_instance。
var features:Array = [
"playButton",
"pauseButton",
"playPauseButton",
"stopButton",
"muteButton",
"backButton",
"forwardButton",
"volumeBar",
"seekBar",
"bufferingBar",
"fullScreenButton"
];
function setSkinVisible(player:FLVPlayback, bool:Boolean=true):void
{
var i:String;
for each(i in features)
{
var t:Sprite = player[i];
if(t != null)
t.visible = bool;
}
}
// test
addEventListener(Event.ENTER_FRAME, _handle);
function _handle(e:Event):void
{
setSkinVisible(video_instance, !video_instance.playing);
}
馬蒂,沒有運氣。當視頻開始時,你看不到皮膚,在鼠標上方看到皮膚上的暫停按鈕(圖片:[鏈接](http://imageshack.us/photo/my-images/703/control1o.jpg/ )),當我點擊暫停按鈕的視頻播放,但所有的控制消失(圖片:[鏈接](http://imageshack.us/photo/my-images/703/control1o.jpg/) – muudless 2011-06-10 06:20:27
嗯,最簡單在我誠實的意見下做這件事的方法是創建自己的皮膚。使用內置的是我在AS3後面所知道的最大的痛苦之一。 – Marty 2011-06-10 06:25:00