如何使Flash动画响应动画、Flash

2023-09-08 12:20:54 作者:青春╰莪揮霍不起

我开始建立这个引导网站,我有flash动画在我的fontpage。 - > http://testi9.aada.fi/index.php?cID=180

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

我的动画尺寸为1472px x 485px。现在,我想这是在引导网站100%的宽度,这样会很好地STRETCH时在不同的屏幕尺寸。

My animation size is 1472px x 485px. Now I want it to be 100% width on bootstrap site so that it would strech nicely on different screen sizes.

我说这个CSS code上引导css文件:

I added this css code on bootstrap css file:

#swfcontent169 {
border:solid thin #f00;
width:100%;
}

现在我的flash动画是100%,但不知何故,这些符号是 在我的flash动画,每边都可见得和动画没有被拉伸,因为我想它是(全宽)。

Now my flash animation is 100% but somehow those "symbols" that are on my flash animation on each side are visible too and animation is not stretched as i would like it to be (full width).

有人可以帮助我呢?

//米卡

推荐答案

您需要设置适当的缩放模式,闪光灯对象。 (在比例嵌入属性)或者在Stage.scaleMode 通过AS3 code。

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:

我们有四盒(每个角一个),以及一些灰色的盒子是走下舞台。

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

下面是你的选择:

显示全部

Show All:

显示所有缩放内容,所以整个舞台适合,但你得到一个排水沟,如果这不是正确的大小和物体起飞阶段可能是可见的。

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:

这将缩放以全部内容将填补界限(保持方面),但如果它不是确切大小,你会得到舞台裁剪,看到箱子被裁剪的顶部底部?你可以改变它对准了 stageAlign 属性裁剪阶段的方式。

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 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 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.

您可能需要精确配合或无边界 - 这取决于你所需要的高宽比是固定的。您还可以使用无规模和使用code来调整你的内容,你想要的方式。

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.

您可以在您的嵌入code调整这些。也有在的FlashPro发布设置(当你点击HTML包装格式),也可以使用在线工具如期权:的 http://embed-swf.org/embed-swf.php

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