Solved

Resizing .swf files

Posted on 2004-04-21
8
2,415 Views
Last Modified: 2012-12-04
I have created little movies that are now .swf files. I would like to incorporate them into a portfolio site that is 500 x 500. The .swfs are too big. Someone said that I need to go back to the original flash file and resize it there, but when I do this by selecting all, not all elements in the animation resize. How do I go about resizing the .swf so that I can place it into an empty movie clip in my main flash file?
0
Comment
Question by:pamelagillie
8 Comments
 
LVL 3

Accepted Solution

by:
mixart earned 500 total points
ID: 10885877
You will have to make sure you have the "EDIT MULTIPLE FRAMES" button selected under your main timeline. You will then have to move the little onion skin markers that show up to the right and left of the playhead in the timeline to span the number of frames you want to edit in your timeline so all frames in the animation are selected - then press ctrl-A to make sure all elements are selected and then scale using either your transform tool or "scale" from the menu.

(if you have multiple scenes you will have to do this step for each scene)

Hope this makes sense... if you get stuck look in the flash help for "edit multiple frames"
0
 
LVL 9

Expert Comment

by:krishnaprathab
ID: 10889902
Hi,

 You need not really go and edit each file and change the size. The follwing action will do the magic.

my_mc.loadMovie("page1.swf"); // my_mc is the movie or placeholder into whcih you are laoding your swf
my_mc._xscale=10;// Resizes to 10% the x
my_mc._yscale=10;// Resizes to 10% the y

This works for me and will work for you too.

Hope this helps !

Thanks,
KP
0
 
LVL 3

Expert Comment

by:mvwmail
ID: 10894364
Thats all very well, but is it necessary. Bearing in mind that SWF files are vector based and will shrink and grow with no loss of quality, why not simply force the SWF to be of a smaller size in your document by specifiying height and width in your HTML code.. less work.
0
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
LVL 3

Expert Comment

by:mvwmail
ID: 10894373
The SWF files that are calle din your portfoio site will them have to fit into the space provided.. and I hope that makes sense, it kind of does to me, but I have just OD'ed on chocolate
0
 
LVL 23

Expert Comment

by:Zeffer
ID: 10894921
you could also size the target (empty) movieclip on the main timeline..
and your incoming movies will scale with it..eg

on the clip put the code..

onClipEvent(enterFrame){
        _width = 500;     //the 500 is pixels
       _height = 500;
}

Z
0
 
LVL 5

Expert Comment

by:Demon1s
ID: 10895338
right click --> set size 500x500, then if it messes up size things, change it manually. If things dont resize, select them indevidually and look into whats going on.
0
 
LVL 9

Expert Comment

by:krishnaprathab
ID: 10911006
pamelagillie,

 If your question is answered plese close the quesion.

Thanks,
KP
0
 

Expert Comment

by:VLamBeat
ID: 38659188
is there an updated way of this method in Action Script 3?
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I know the transition can be hard. We got used to the ease of use ActionScript 2 had, but honestly, it became problematic later on, especially if designers were involved in the project and found it easy to add code as they saw fit. So, this artic…
While working over numerous projects I often had the requirement for doing a screen capture in AS3.0. Unfortunately I found no "ready made" solutions in google search that suited my requirements. But I did come across some great resources which help…
The goal of the tutorial is to teach the user how to how to record live broadcast.
The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question