Mombu the Programming Forum sponsored links

Go Back   Mombu the Programming Forum > Programming > Scale loadMovie SWF file
User Name
Password
REGISTER NOW! Mark Forums Read

sponsored links


Reply
 
1 12th March 13:14
azntwboy
External User
 
Posts: 1
Default Scale loadMovie SWF file


Hi, I have an image that's 1mb, which is too large to put in the flash file, so I want to reduce it's size by 50% and link it through loadmovie(). but i also want the image to be displayed at its original size when loaded, so i would have to scale it to 200%. How would i scale the loadmovie image?
how would i know that the image is loaded before i scale the movieclip object, if thats what im supposed to do?
  Reply With Quote


  sponsored links


2 12th March 13:15
pellepiano
External User
 
Posts: 1
Default Scale loadMovie SWF file


You can only reduce the filesize by changing the image in Photoshop for instance and resave it. And then import it to Flash.

The initial dimensions can be put in the first frame of this movie .

this._width=450;
this._height=450;

Then you dont have to worry abot when its loaded or not.

Then depending on if you load the image swf into a level or target movieclip you can change the size with

//Levels
_level1._width=450;
_level1._height=450;

// Target movieclip

containerMC._width=450;
containerMC._height=450;

- Pelle Piano
http://www.pellepiano.com
  Reply With Quote
Reply


Thread Tools
Display Modes




Copyright 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666