PDA

View Full Version : How to change flash size



quykhoa
April 8th, 2009, 02:44 PM
Hi,

I have a flash file with the stage size 800x600

Now I change the stage size to 1024x768 but all the constant ( movie clip, images, buttons..) do not fit with the new stage size.

There are any way to do it.

Thanks

rex3055
April 9th, 2009, 10:44 AM
Hi,

I have a flash file with the stage size 800x600

Now I change the stage size to 1024x768 but all the constant ( movie clip, images, buttons..) do not fit with the new stage size.

There are any way to do it.

Thanks




Below are the some step which will help you to reduce your flash size.



Launch Flash Designer and create blank animation. Set frame size ("Frame" > "Frame Size") to 300 x 300.
Make the first frame static, choose "Frame" > "Frame Delay", check "Stop" and click OK.
Draw a small rectangle (about 80 x 80 pixels) in the left top edge with "Rectangle" tool. Later it will react to mouse over events. Press Ctrl+F to change rectangle fill color.
Choose "Frame" > "Duplicate" to make a copy of the frame. Frame 2 will be created.
Enlarge the rectangle on Frame 2 with "Edit" > "Align" > "Fit to Frame" command (or resize it with "pointer" tool)
Go back to Frame 1 and define "MouseOver" action for smaller rectangle. Select the rectangle and choose "Item" > "Actions" > "OnOver". Choose go to "Frame 2" and click OK.
Go to Frame 2 and define "MouseOut" for larger rectangle. Select the rectangle and choose "Item" > "Actions" > "OnOut". Choose go to "Frame 1" and click OK.
Press F9 to preview the animation. Verify if mouse actions work.
Create animation effect. Go to Frame 2, select larger rectangle and choose "Animation" > "Tween in". Select "Frame 1:Rectangle" as the tween start and click OK.

Now you have a base for your dynamic size Flash animation. In the next step you have to export swf file and use absolute positioning to embed it in the HTML page.



Choose "Movie" > "Export Options" and check "Transparent" option. Click OK.
Choose "File" > "Export SWF file" and save Flash file.

To embed Flash file in your web page use DIV tag:
<DIV STYLE="position:absolute">
<OBJECT CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
...
</DIV>
<P>&nbsp;
<P>&nbsp;

Absolute position will take DIV content off the HTML flow and place it over the elements that follow DIV tag. To make some space for the smaller rectangle (so it doesn't overlap the text) use few nbsp; and <P> tags

wt345
April 11th, 2009, 02:24 AM
I have a flash file with the stage size 800x600

Now I change the stage size to 1024x768 but all the constant ( movie clip, images, buttons..) do not fit with the new stage size.


Well , I am trying help you by which You can change size according to your convienece and these are the simple steps to help you out:



In the Tools panel, click the Selection tool. http://kb.adobe.com/support/flash/ts/documents/tn_12839/selection.gif
On the Stage, click anywhere in the gray workspace that surrounds the Stage, or on the background area of the Stage, so that no objects are selected.

The Property inspector, under the Stage, displays properties for the document when no objects are selected.
To change the Stage background color, click the Background color box and select a light shade of gray, such as gray with the hexadecimal value of #CCCCCC.
To change the Stage size, click Size in the Property inspector. In the Document Properties dialog box, enter 1024/768 for the Stage width, and then click OK.

The Stage resizes to 750 pixels wide.