flash video player



import fl.video.*;

var myVideo:FLVPlayback = new FLVPlayback();
myVideo.width = 720;
myVideo.height = 480;
myVideo.source = "video.flv";
myVideo.skin = "SkinOverAll.swf";
myVideo.skinBackgroundColor = 0x000000;
myVideo.skinBackgroundAlpha = 0.3;
myVideo.skinAutoHide = true;

myVideo.addEventListener(VideoEvent.COMPLETE, completePlay);
function completePlay(e:VideoEvent):void {

myVideo.play();

}

addChild(myVideo);

youtube player











var so = new SWFObject('player.swf','ply','480','270','9','#');
so.addParam('allowfullscreen','true');
so.addParam('allowscriptaccess','always');
so.addVariable('playlistfile','http://gdata.youtube.com/feeds/api/playlists/4705506A8FAF8B01?v=2');
so.addVariable('playlistsize', '150');
so.addVariable('playlist','right');
so.addVariable('repeat','always');
so.addVariable('shuffle','true');
so.write('mediaspace');

0 comments:

Post a Comment