Advertisement

07.11.2008 at 02:32PM PDT, ID: 23558735
[x]
Attachment Details

Insert YouTube into Flash

Asked by mingchih in Macromedia 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.

CheersStart Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
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);
[+][-]07.15.2008 at 12:12AM PDT, ID: 22004700

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Macromedia Flash
Sign Up Now!
Solution Provided By: aneeshchopra
Participating Experts: 1
Solution Grade: A
 
 
[+][-]07.15.2008 at 10:11AM PDT, ID: 22008791

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628