PDA

View Full Version : Can u load a movie (into another) at 50% its original size?


Tosca42
01-24-2002, 01:49 AM
I have an .swf file I want to load into another. But I want to minimise the .swf file that I'm loading, to play at half its original size.
I know I could just manually change the size of the movie. But i was wondering if there was a way of doing it with actionscript?

Any help would be appreciated!

Ta! -Tosca

Billy T
01-24-2002, 02:10 AM
if you are loading into a target then the external movie will take on the characteristics of the target clip it is being loaded into - eg scale, alpha etc.

therefore if you made a box the size of your stage, convert it to a movieclip, scaled it 50% and then loaded a movie into it then the external movie should automatically scale itself to 50%

I think this is right - never tested it myself

Tosca42
01-29-2002, 04:21 PM
Thanks Billy - youve put me on the right track!

Unfortunately I've run up against another problem in that with some of my movies they wont fully load.

For example - at http://www.halfmoon.org.uk/HMScreensaver4.swf -you can see what the full movie I'm trying to load does (sorry its around 56k).
As you can see i have one of those mouse following style MCs -except that instead of following the mouse it moves around the screen randomly.

But at http://www.halfmoon.org.uk/scalemovie.swf
-when its loading into another movie you don't see the randomly moving MC -It just dissappears.

The actionscript I used to load HMScreensaver4.swf into the other movie was:

loadMovie ("HMScreensaver4.swf", _root.targetMc);
_root.targetMc._xscale=60;
_root.targetMc._yscale=60;


I've got a couple of other movies that its doing the same thing to.
Is there any way around this?
For example - is it possible to load the movie into a level instead of a mc and then scale it? Or is there some scripting I need to include that will allow me to view the rest of my movie?

Thanks for any help in advance!

-Tosca

Billy T
01-29-2002, 11:08 PM
there are a few different ways you could do this - do you have a preloader on your external movie? How big is the targetMC?

Also you should get in the habit of uploading the html file with your swf embedded - and link to the html file.

cheers

farafiro
01-30-2002, 07:52 AM
Originally posted by Billy T
Also you should get in the habit of uploading the html file with your swf embedded - and link to the html file.

cheers

What is that mean ??

Billy T
01-30-2002, 08:17 AM
it means publish your movie (file/publish settings) and produce an swf and an html file - not just test the movie and upload the resulting swf

cheers

farafiro
01-30-2002, 08:27 AM
I @@, that F12 action ............. I just couldn't understand what ya mean