# Resizing loaded youtube video possible?

**URL:** <https://forum.kirupa.com/t/resizing-loaded-youtube-video-possible/299496>\
**Category:** Uncategorized\
**Created:** [November 5, 2009, 7:01pm UTC](https://forum.kirupa.com/t/resizing-loaded-youtube-video-possible/299496 "2009-11-05T19:01:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![newsteve](https://avatars.discourse-cdn.com/v4/letter/n/5f8ce5/32.png) [@newsteve](https://forum.kirupa.com/u/newsteve)\
**Post date:** [November 5, 2009, 7:01pm UTC](https://forum.kirupa.com/t/resizing-loaded-youtube-video-possible/299496/1 "2009-11-05T19:01:57Z")

</div>

i,  
i’m pulling in a youtube video through a loader, and its all working good, i can change the x and y coordinates etc, but as soon as i try to resize it through the code (with either scaleX/scaleY or width/height) nothing shows up… why can’t i resize the youtube video? or how can i?

here’s the code (which again, works, if i comment out the width/height stuff…

ActionScript Code:  
var youtubeLoader:Loader = new Loader();  
youtubeLoader.load( new URLRequest( “[http://www.youtube.com/v/etcetcetc](http://www.youtube.com/v/etcetcetc)” ) );  
youtubeLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, youtubeLoaded);

function youtubeLoaded(e:Event):void{  
youtubeLoader.content.width = 320;//this doesn’t work  
youtubeLoader.content.height = 240;//this doesn’t work  
youtubeLoader.content.x = 20;  
youtubeLoader.content.y = 17;  
videoHolderYoutube.addChild(youtubeLoader);  
}
