ok... here's a little background, I'm working on a UI for a set top box that has a linux os, which runs a java virtual machine, which loads a flash (swf) interface!

I’m trying to load a jpg into a MovieClip using the loadMovie() command because the MovieClipLoader object was introduced in Flash 7, which the box cannot run. I’m preloading the image using getBytesLoaded() and getBytesTotal() and after it’s loaded I want to stretch it to a certain size. I’m having 2 problems:

1) The FIRST time I run the loadMovie command, it doesn’t always load the jpg, and getBytesTotal is set to -1. After I load it a second time, the preloader works fine.

2) I cannot use mc_name._width = 1000 to scale the width of the jpg image to a certain width. I’ve tried my code on a fresh flash file and it works on a computer using Flash 6, Actionscript 2, but not on the box. What’s weird is that if I use mc_name._xscale instead of mc_name._width, it works.

Here's the code:

Code:
ImgUrl = "http://img143.imageshack.us/img143/6639/1680x1050k.jpg";
_root._container_mc.removeMovieClip();
_root.createEmptyMovieClip("_container_mc",_root.getNextHighestDepth());
_root._container_mc.createEmptyMovieClip("_holder_mc",_root._container_mc.getNextHighestDepth());

var ad = _root._container_mc._holder_mc.loadMovie(ImgUrl);

this._preloader = setInterval(function()
{
	trace("waiting to load image");
	_pLoaded=_root._container_mc._holder_mc.getBytesLoaded();
	_pTotal=_root._container_mc._holder_mc.getBytesTotal();
	trace("loaded/total: " + _pLoaded + "/" + _pTotal);
	if(_pLoaded > 0 && _pLoaded >= _pTotal){
		trace("image loaded");
		clearInterval(this._preloader);
		_root._container_mc._holder_mc._height = 200;
	}
},
100);
As I said, this works perfectly on a computer, but not on this box... I was wondering if you knew another way to scale a loaded jpg.