PDA

View Full Version : how to load a movie at a percentage of its original size?


Tosca42
07-27-2002, 03:21 AM
Hi!

I'm trying to load a movie (screensaver.swf) into my main movie - but I ideally want to load it at a fraction of its original size (say around 20%) within the main page so it appears as a thumbnail image.

I know that to load it this will work:

loadMovieNum ("screensaver.swf", 1);

-but is there any way to load it and specify at what percent of its original size it should be loaded at?
I tried:

setProperty ("_level1.screensaver.swf", _xscale, "20");

- in order to scale its x coordinates to 20% but that doesnt have any effect. I assume i've got the path completely wrong? I did look at the tutorials about that on here but i was still confused as they were pretty vague when discussing paths to loaded .swfs. -Any help would be much appreciated.

Cheers! - Tosca

Billy T
07-27-2002, 05:04 AM
_level1._xscale=20;

Tosca42
07-27-2002, 11:57 AM
Hi!

Thanks for your reply Billy, but I'm afraid I havent been able to get it to work.

I now have in my maintimeline:

loadMovieNum ("screensaver.swf", 1);
_level1._xscale = 20;
_level1._yscale = 20;

-but it has no effect. Have I done something stupidly wrong or is it as someone else has told me, impossible to load a .swf with any control over its size? I've tried to get around this by loading the movie into a movieclip and controlling the size of the mc but it didnt work.

I created a mc called 'test', inside of which I have:

loadMovieNum ("screensaver.swf", 1);

Then on the main timeline i have:

_root.test._xscale = 20;
_root.test._yscale = 20;


This loads the .swf inside the MC and scales the MC, but not the .swf...

Any ideas?! -Cheers again! - Tosca

Billy T
07-27-2002, 05:49 PM
try putting the

_level1._xscale = 20;
_level1._yscale = 20;


on to the first frame of the movie you are loading into level1 - this way the movie has time to load before you start scaling it.

I was under the impression that if you loaded an external movie into a target mc then the external movie would take on the characteristics of the mc you were loading it into

eg

if you made an mc the size of the stage and then scaled it down quite small, and then loaded in an external movie that was also the size of the stage into that mc then it would scale itself accordingly.

just did a test and this is correct - see attached

cheers

Wimpyburger
08-05-2002, 05:35 PM
try using loadMovie(...) instead of loadMovieNum(...) , for loading the movie into a MC.

sralok
08-05-2002, 09:35 PM
with this idea to load a movie at a certain percentage can you load an image at a certain percentage into a mc that is on your main page?

Billy T
08-06-2002, 01:00 AM
I'm in a hurry but isnt that exactly what the file I attached does?

cheez
01-03-2003, 11:47 PM
just looking at the archives via search and this one just helped me out. thanks for the example Billy T and folks :). Really good idea of creating a "content" mc to open up new mcs in. Gets rid of the hassle of the weirdness I had about sizing MC's after using loadMovie.

Thanks,
Cheez