Link to home
Start Free TrialLog in
Avatar of Brian Lin
Brian LinFlag for United States of America

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
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);

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Aneesh Chopra
Aneesh Chopra
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Brian Lin

ASKER

This is great, thanks !!! Aneeshchopra :)