Brian Lin
asked on
Insert YouTube into Flash
Hi, Experts
I try to insert the you tube movie to flash and I would like to be able to customize _width, _height and _x, _y.
Cheers
I try to insert the you tube movie to flash and I would like to be able to customize _width, _height and _x, _y.
Cheers
System.security.allowDomain("http://www.youtube.com");
System.security.loadPolicyFile("http://www.youtube.com/crossdomain.xml");
this.createEmptyMovieClip("video_mc",10);
var mcl:MovieClipLoader = new MovieClipLoader();
var listener:Object = new Object();
listener.onLoadStart = function() {
trace("started");
};
listener.onLoadInit = function(mc:MovieClip) {
trace("Load");
};
listener.onLoadError = function() {
trace("error");
};
mcl.addListener(listener);
mcl.loadClip("http://www.youtube.com/v/VS4wFOWFUt8&hl=en&fs=1",video_mc);
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER