rendered paste body//url = "http://www.videospark.com/mixalot/putemontheglass.flv";
// 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();
menuItem_window = new ContextMenuItem("Open Larger Window", open);
menuItem_play = new ContextMenuItem("play Movie", play);
menuItem_play.separatorBefore = true;
menuItem_vol = new ContextMenuItem("Stop Movie", volume);
menuItem_cmi = new ContextMenuItem("VideoSpark Player", onPause);
menuItem_cmi.separatorBefore = true;
my_cm.customItems.push(menuItem_window);
my_cm.customItems.push(menuItem_play);
my_cm.customItems.push(menuItem_vol);
my_cm.customItems.push(menuItem_cmi);
function open() {
stopAllSounds();
netsream.close();
getURL("javascript:fullwin('popup.php?url="+url+"')");
}
function play(obj, menuItem) {
trace("You choose: "+menuItem.caption);
netStream.play(url);
}
function volume(obj, menuitem) {
trace("You choose: "+menuItem.caption);
stopAllSounds();
netsream.close();
}
function onPause(obj, menuItem) {
trace("You choose: "+menuItem.caption);
getURL("http://www.videospark.com", "_blank");
}
_root.menu = my_cm;
//
//getURL("javascript:fullwin('playerFullScreen.php?url="+url+"&fullscreen=on')");
//