# Embed a YouTube video in Flash

**URL:** <https://forum.kirupa.com/t/embed-a-youtube-video-in-flash/304088>\
**Category:** flash\
**Created:** [February 1, 2010, 3:15pm UTC](https://forum.kirupa.com/t/embed-a-youtube-video-in-flash/304088 "2010-02-01T15:15:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bladeswim83](https://avatars.discourse-cdn.com/v4/letter/b/d2c977/32.png) [@bladeswim83](https://forum.kirupa.com/u/bladeswim83)\
**Post date:** [February 1, 2010, 3:15pm UTC](https://forum.kirupa.com/t/embed-a-youtube-video-in-flash/304088/1 "2010-02-01T15:15:52Z")

</div>

So I just figured out how to embed a YouTube video in flash using an empty movie clip and this AS2 code.

```auto
this.createEmptyMovieClip("youtube_mc",this.getNextHighestDepth());
youtube_mc.loadMovie("http://www.youtube.com/v/6mOEU87SBTU&hl=en_US&fs=1&"); 

```

But my question is, how do I resize it and position it to where I want it in my flash piece. Right now it’s the normal 480x385 size and it shows up in the upper right hand corner. I would like for it to be the 320x265 size and position it other than the top right corner.

Any help would be great! Thanks!!!
