Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Resizing .swf files

Posted on 2004-04-21
8
Medium Priority
?
2,425 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 2000 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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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…
I have found that much of my time doing support ends up being a constant repetition of the same steps to different people.  Early on I stated using web pages with Frequently Asked Questions (FAQs) to alleviate most of the burden.  Sometimes this jus…
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 select the video input device. Make sure you have an input device that in connected and work and recognized by Adobe Flash Media Live Encoder and select it in the “video input” menu.
Suggested Courses
Course of the Month11 days, 18 hours left to enroll

916 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