How to make flash animation responsive

后端 未结 1 1086
长情又很酷
长情又很酷 2020-12-12 04:57

i\'m starting to build this bootstrap site where I have flash animation on my fontpage. --> http://testi9.aada.fi/index.php?cID=180

My animation size is 1472px x 485

相关标签:
1条回答
  • 2020-12-12 05:25

    You need to set the proper scaling mode for the flash object. (the scale embed property) or stage.scaleMode through AS3 code.

    Here is a visual rundown of the options: (you will likely want exact fit or no border)

    Let's say this is your document: enter image description here

    We have four boxes (one per corner), and some gray boxes that are off the stage.

    Here are you options:


    Show All: enter image description here

    Show all scales the content so the whole stage fits, but then you get a gutter if it's not the right size and objects off stage may be visible.


    No Border: enter image description here

    This will scale it so the whole content will fill the bounds (keeping aspect), but then if it's not the exact size, you'll get cropping of the stage, see how the boxes are being cropped on the top bottom? You can change the way it aligns the cropped stage with the stageAlign property.


    Exact Fit enter image description here This will just make the whole stage fit in the area defined, but it will not honor your aspect ratio and things could looked squished/stretched.


    No Scale enter image description here This won't scale the stage AT ALL. So if the defined area is smaller than the stage, it will crop it, if larger, you'll get gutters.


    You probably want exact fit or no border - depending on if you need the aspect ratio to be fixed. You can also use no-scale and use code to align your contents the way you want.

    You can align the content several ways too using the align embed parameter.

    You can adjust these in your embed code. There are also options in the FlashPro publish settings (when you click on the HTML Wrapper Format), or you can use an online tool like: http://embed-swf.org/embed-swf.php

    0 讨论(0)
提交回复
热议问题