Question
Flash dynamic video player
I made a flash player that players FLV videos dynamicly. The
only problem is when I try to make the controls they don't work.
Can someone please help me? Here is the actionscript....
// initialize net connection and stream
var netConn:NetConnection = new NetConnection();
netConn.connect(null);
var netStream:NetStream = new NetStream(netConn);
myVideo.attachVideo(netStream);
netStream.play(url);
//
//
//hide the standard menu-items for right click menu
my_cm = new ContextMenu();
//hide the standard menu-items for that object
my_cm.hideBuiltInItems();
my_cm.customItems.push(menuItem_cmi);
function onPause(obj, menuItem) {
trace("You choose: "+menuItem.caption);
}
_root.menu = my_cm;
myVideo.playButton= play_btn;
myVideo.pauseButton= pause_btn;
myVideo.backButton= rewind_btn;
myVideo.playButton= play_btn;
// initialize net connection and stream
var netConn:NetConnection = new NetConnection();
netConn.connect(null);
var netStream:NetStream = new NetStream(netConn);
myVideo.attachVideo(netStream);
netStream.play(url);
//
//
//hide the standard menu-items for right click menu
my_cm = new ContextMenu();
//hide the standard menu-items for that object
my_cm.hideBuiltInItems();
my_cm.customItems.push(menuItem_cmi);
function onPause(obj, menuItem) {
trace("You choose: "+menuItem.caption);
}
_root.menu = my_cm;
myVideo.playButton= play_btn;
myVideo.pauseButton= pause_btn;
myVideo.backButton= rewind_btn;
myVideo.playButton= play_btn;