# Controlling the size of an uploaded art file to display on movie

**URL:** <https://forum.kirupa.com/t/controlling-the-size-of-an-uploaded-art-file-to-display-on-movie/320215>\
**Category:** flash\
**Created:** [March 16, 2011, 9:28pm UTC](https://forum.kirupa.com/t/controlling-the-size-of-an-uploaded-art-file-to-display-on-movie/320215 "2011-03-16T21:28:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![O\_Tamandua](https://avatars.discourse-cdn.com/v4/letter/o/ecccb3/32.png) [@O\_Tamandua](https://forum.kirupa.com/u/O_Tamandua)\
**Post date:** [March 16, 2011, 9:28pm UTC](https://forum.kirupa.com/t/controlling-the-size-of-an-uploaded-art-file-to-display-on-movie/320215/1 "2011-03-16T21:28:11Z")

</div>

SOLVED! God bless you, blackbody, and thanks!

Hello again, all,

I’ve got the following file reference listener on a file to upload art for display on a flash movie. However, I want this to display only at a certain size. I tried the “easy way”, but this ends up sizing down my whole movie. Where should I insert the code to get the uploaded file to show on my flash movie only to a certain height and width? Thank you for anyone who can help - “chip\_clip” is the empty movie clip this is being uploaded to:

> 

var file:FileReference = new FileReference();  
file.addEventListener(Event.SELECT, fileSelect);  
file.addEventListener(Event.COMPLETE, fileComplete);  
browse.addEventListener(MouseEvent.MOUSE\_DOWN, mouseDown);  
function mouseDown(event:MouseEvent){  
file.browse();  
}  
function fileSelect(event:Event){  
file.load();  
}  
function fileComplete(event:Event){  
var loader:Loader = new Loader();  
loader.loadBytes(file.data);  
chip\_clip.addChild(loader);  
//chip\_clip.height = 100;  
//chip\_clip.width = 100;  
}
