Groups | Blog | Home
all groups > flash (macromedia) > june 2004 >

flash (macromedia) : Jpgs make me sad


TomMoore
6/21/2004 10:52:50 PM
I use a Loader to load jpg thumbnails. In frame 1 I have the actionscript;

loader1.load("image2.jpg");
loader2.load("image2.jpg");

When I first view the movie, the images are not scaled even though I set the
scaleContent property to "true", after the first viewing it's fine. Am I making
a really silly mistake?

Even when I set the contentPath parameter without including any actionscript
at all, my images still don't scale.

I'm really puzzled.
pwiop
6/21/2004 11:35:32 PM
Try creating an empty movieclip first , load the jpgs into that then scale that
ie
Insert new movieclip
Drag and instance to the stage
Name the instance, myMC
then put the following code into the first frame:
loadMovie("myImage.jpg",myMC);
_root.myMC._xscale=80
_root.myMC._yscale=60, assuming the image was 800 by 600 it will be scaled to
10 percent

Keep in mind that Flash loads images and aligns them by the top left hand
corner

paul

urami_
6/22/2004 8:11:20 AM


[quoted text, click to view]

you use wrong action , .load is for XML not for images.
Images and SWF use loadMovie and loadMovieNum



--


Regards


urami_*

<hol>
http://flashfugitive.com/
</hol>


By The way:
If you try to mail me , DO NOT *laugh*
AddThis Social Bookmark Button