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