简体   繁体   English

Adobe Flash Professional CS5编辑

[英]Adobe Flash Professional CS5 edit

I am new to Flash and I need to edit some files that are used in a flash project. 我是Flash的新手,我需要编辑Flash项目中使用的一些文件。 The files I need to edit are in actionscript. 我需要编辑的文件在动作脚本中。 What is the relation to the file types .as(actionscript), .fla (flash?), and .swf Also, do I need to recompile after any changes I make to an actionscript file. 与.as(actionscript)、. fla(flash?)和.swf文件类型有什么关系?此外,在对动作脚本文件进行任何更改后,我是否需要重新编译。

Most likely, the .fla file is the main project file (what ties everything together). .fla文件很可能是主项目文件(将所有内容捆绑在一起)。 The .swf files are likely the final output from said project file. .swf文件可能是该项目文件的最终输出。 The .as files are code files that are likely attached to various items in the .fla file. .as文件是可能附加到.fla文件中各个项目的代码文件。

Here is an example: 这是一个例子:

You create a project in FlashPro/AdobeAnimate, you import some graphics, animate them on a timeline, and then want to add some code to those graphics to make them do something dynamic, so you create a class file (.as) and write some code, then link that class file to a timeline or object in FlashPro. 您在FlashPro / Adob​​eAnimate中创建一个项目,导入一些图形,在时间轴上对其进行动画处理,然后想要向这些图形中添加一些代码以使其动态化,因此您创建了一个类文件(.as)并编写了一些代码,然后将该类文件链接到FlashPro中的时间轴或对象。 When you are all done, you publish your application. 完成后,即可发布应用程序。 This creates a .swf file which is then used on the web (legacy) or loaded by another application (Adobe Air, Visual Studio etc.). 这将创建一个.swf文件,然后将其在Web上使用(旧版)或由其他应用程序(Adobe Air,Visual Studio等)加载。

Now, .swf files can also be used by other .swf files when a program runs. 现在,程序运行时, .swf文件也可以由其他.swf文件使用。 So some assets like graphics (.png, gif, jpeg, .swf) could be used by the application at run-time. 因此,应用程序可以在运行时使用诸如图形(.png,gif,jpeg,.swf)之类的资产。 The .fla & the .as file(s) though are only used for authoring and are not needed for running the published application. 尽管.fla.as文件仅用于创作,而运行已发布的应用程序则不需要。

You DO need to re-publish your .fla after any changes to an Actionscript (.as) file - this will generate a new .swf file. 对Actionscript(.as)文件进行任何更改后,您都需要重新发布.fla-这将生成一个新的.swf文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM