You need to do the resizing after the image has fully loaded. The trouble is
if you just set the _xscale and _yscale (for example) and then call
.loadMovie(), the 'new movie' (the image) replaces all the attributes of the
old movie and you lose your _xscale and _yscale values.

If you're using MovieClipLoader, for example, you need to do the resizing in
onLoadComplete() or onLoadInit().

For example, something like this (from memory, so forgive typos):

var clip:MovieClip=createEmptyMovieClip("blank",getNextHighestDepth());
var mcl:MovieClipLoader();
var listener:Object=new Object();
listener.onLoadInit()=Delegate.create(this,onGraphicLoaded);
mcl.addListener(listener);
mcl.loadClip("myClip.jpg",clip);

function onGraphicLoaded(clip:MovieClip)
{
clip._xscale=50;
clip._yscale=50;
}

HTH,
Ian

On 11/8/05, Lehr, Theodore M. <[EMAIL PROTECTED]> wrote:
>
> I don't mind resizing the one it is loading into but I can not get it to
> work... I tried but it remains the size of the image...
>
>
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to