# Scalable Dynamic JPEG on Full Browser Flash Site

**URL:** <https://forum.kirupa.com/t/scalable-dynamic-jpeg-on-full-browser-flash-site/181792>\
**Category:** flash\
**Created:** [March 13, 2006, 3:51am UTC](https://forum.kirupa.com/t/scalable-dynamic-jpeg-on-full-browser-flash-site/181792 "2006-03-13T03:51:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![MiddleFingerMan](https://avatars.discourse-cdn.com/v4/letter/m/bbce88/32.png) [@MiddleFingerMan](https://forum.kirupa.com/u/MiddleFingerMan)\
**Post date:** [March 13, 2006, 3:51am UTC](https://forum.kirupa.com/t/scalable-dynamic-jpeg-on-full-browser-flash-site/181792/1 "2006-03-13T03:51:32Z")

</div>

Ok … I’m going out of my head here. I’ve found a lot of posts in the forums here that have come _oh so close_ to answering my question but just not quite.

I’ve got a full browser flash movie I’m creating. I’ve got a movie that scales out to 100% x 100% which has a dynamically loading JPEG for a background image and another empty movie clip that loads in the main content.

Here’s my ActionScript:

```auto
stop();

loadMovie("dh_main.swf","mainContent_mc");
loadMovie("background.jpg","background");

Stage.scaleMode = "noscale";

stageListener.onResize = function () {
    var stageXCenter = Stage.width * .5;
    var stageYCenter = Stage.height * .5;
}

```

I want the background image to scale 100% x 100% and resize with the mainContent\_mc when the window is resized.

I just cannot get that background JPEG to stretch to save my life.

Any ideas?
