# Scale content problem... (CS3)

**URL:** <https://forum.kirupa.com/t/scale-content-problem-cs3/300535>\
**Category:** flash\
**Created:** [November 23, 2009, 10:37am UTC](https://forum.kirupa.com/t/scale-content-problem-cs3/300535 "2009-11-23T10:37:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Varl](https://avatars.discourse-cdn.com/v4/letter/v/ce7236/32.png) [@Varl](https://forum.kirupa.com/u/Varl)\
**Post date:** [November 23, 2009, 10:37am UTC](https://forum.kirupa.com/t/scale-content-problem-cs3/300535/1 "2009-11-23T10:37:19Z")

</div>

Hey Guys,  
I have a problem I can’t figure out and I was wondering if anyone might have a suggestion. I have a photo page on which I have a movieclip (instance name - bigpic\_mc) that I use to call up external images. It’s dimensions are 400x300. On the same page I have another movieclip INSIDE which are the thumbnails and AS3 for each. I’ve set the scaleContent to true on the main page but the externally loaded images don’t scale. I’ve included the code for the parent and child page. Can anyone point me in the right direction? I’m totally confused. I’m still getting the hang of AS3. Thanks for any help you might provide.

Sincerely,

Bryan

* * *

## Parent AS

bigpic\_mc.scaleContent = true;

* * *

## Child AS

var bgalleryFolder:String = “bryan\_pics”;

var big\_pic:Loader = new Loader();

var bimg1Req:URLRequest = new URLRequest(bgalleryFolder + “/Bryan1s.jpg”);

function targetOver(event:MouseEvent):void {  
event.target.gotoAndPlay(“over”);  
}

function targetOut(event:MouseEvent):void {  
event.target.gotoAndPlay(“out”);  
}

function bpic1Down(event:MouseEvent):void {  
big\_pic.load(bimg1Req);  
MovieClip(parent).bigpic\_mc.removeChildAt(big\_pic);  
MovieClip(parent).bigpic\_mc.addChild(big\_pic);  
}

bpic1\_mc.buttonMode = true;  
bpic1\_mc.addEventListener(MouseEvent.ROLL\_OVER, targetOver);  
bpic1\_mc.addEventListener(MouseEvent.ROLL\_OUT, targetOut);  
bpic1\_mc.addEventListener(MouseEvent.MOUSE\_DOWN, bpic1Down);
