为什么使用SWF元标记,如果他们可以设置在FLA文件的分辨率闪存编程器?闪存、标记、编程器、分辨率

2023-09-08 14:17:23 作者:攒一口袋星星

我有一个Flash应用程序。在FLA文件的分辨率为800 x 600。我的一位朋友说,我必须使用SWF meta标签:

I have a flash application. The resolutions in the .fla file are 800 x 600. A friend of mine said I have to use the swf meta tag:

[SWF(width='800', height='600', backgroundColor='0x000000')]

它不会做任何事情对我来说。我不明白为什么它是必要的。请告诉我为什么程序员在他们的来源$ C ​​$ C把这个命令?

It doesn't do anything to me. I don't understand why it is necessary. Please tell me why programmers put this command in their source code?

推荐答案

这取决于用于开发基于Flash的应用程序的IDE和创作工具。

This depends on the IDE and authoring tools used to develop Flash based applications.

有关使用Flash Builder或等效的IDE不使用闪光灯的专业艺术委员会和文档属性为创作开发的SWF meta标签需要定义的SWF属性。

For developers using Flash Builder or equivalent IDE without the Flash Professional art board and document properties for authoring, the SWF meta tag is required to define attributes of the SWF.

package
{
    [SWF(percentWidth=100, percentHeight=100, backgroundColor=0x313131, frameRate=30)]
    public final class example extends Sprite
    {
        /* ... */
    }
}

Flash Professional中

在Flash Professional中,这些都是从文件属性中定义。

Flash Professional

Within Flash Professional, these are defined from the document properties.