Solved

Resizing .swf files

Posted on 2004-04-21
8
2,404 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
 
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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

This is a very simple example to help those of you who are still migrating from AS2 to AS3 understand the redesigned event model in AS3. In AS2.0, event functions (that is, the function to be performed when an event is fired) were stored as a pro…
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…
In this tutorial viewers will learn how to create a basic shape tween animation in Flash including shape hints for smooth animation Open a new document in Flash: Draw a shape: Select another frame (how long you want the tween to be): Right click and…
The goal of the tutorial is to teach the user how to select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.

863 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now