将 AS3 转换为 FLA 以生成 SWF [英] Convert AS3 to FLA for generating SWF

查看:34
本文介绍了将 AS3 转换为 FLA 以生成 SWF的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要操作已编译的 SWF 并将其重新编译回 SWF 并进行部署.我尝试了 3 个选项,但所有选项都没有运气:

I Need to manipulate the compiled SWF and recompile it back to SWF and deploy. I have tried 3 options but no luck on all the options :

1) 将 swf 转换为 fla 到 AS3,我能够编辑 AS3 文件,然后我无法继续创建新的 FLA &新的 SWF 文件.

1) Converting swf to fla to AS3, I was able to edit the AS3 file, then I am not able to move forward to create the new FLA & new SWF file.

2) 将 swf 转换为 flex 项目并导入到 flex builder,然后在发布时说我没有主 MXML 文件来获取新的 SWF.

2) Converting swf to flex project and importing to flex builder, then while publishing it says that I did not main MXML file to get new SWF.

3) 目前我曾尝试将 AS3 转换为 FLA,但没有成功.

3) Currently I had tried converting AS3 to FLA, but no luck.

如果您有任何已知的选项可以成功将 AS3 转换为 FLA,请告诉我,我将监控线程!...

If you have any known options to convert AS3 to FLA sucessfully please let me know, I will be monitoring the thread!..

更新 1):我曾尝试将 SWF 从 SWF 反编译器转换为 FLA,它成功了,但问题是我如何编辑它并将其再次转换回新的 SWF.我的目标是添加几个字符串或名称,在反编译之后,我得到了 FLA 和一堆 AS3 文件,在编辑我的 AS3 文件后,我无法将所有一堆 AS3 文件转换在一起以制作新的 SWF 或新的FLA ...请回复 感谢其他回复!...

UPDATE 1 ) : I had tried converting SWF to FLA from SWF decomplier , it was successful , but the problem was how do i edit it and convert it back new SWF again. My Aim , was to add few strings or names, After decompiling it , i got both FLA , bunch of AS3 files , after editing my AS3 files and i am not able to convert All bunch of AS3 files together to make a new SWF or new FLA ... Please respond Thanks for other replies!...

更新 2:感谢你们之前的回复,我想我不能找到从先前导入错误中产生的正确库,执行你知道怎么做,我能找到吗?是嵌入资产类型帮助我解决此类错误.请看看这个线程让我知道"错误 #1014:找不到类 mx.core::BitmapAsset"尝试使用运行时共享库​​时, 如果有人知道这一点,请回复,这将是一个很大的帮助..

Update 2: Thanks for your previous replies guys , i think i cannot find the correct library that was from the previous import errors , do u know how , were can i find it. IS Embedding asset types help me to solve this kind of errors. please look at this thread let me know "Error #1014: Class mx.core::BitmapAsset could not be found" while trying to use Runtime Shared Library , If any body knows this please reply , It will be a great help..

推荐答案

  1. 在适当的编辑器(通常是 Flash Professional 或其他 IDE)中打开 FLA例如 Flash BuilderFlex 等...)
  2. 编译(控制进入 Flash Professional)
  1. Open the FLA in an appropriate editor (usually Flash Professional, or other IDEs such as Flash Builder, Flex, etc...)
  2. Compile (controlenter for Flash Professional)

澄清:

  • .swf 是已编译的 Flash 程序(带有嵌入的代码、文本和资源).
  • .fla 是一个项目文件,其中包含对您要编译的所有内容的引用.
  • .as 文件是程序中使用的代码.
  • .mxml 文件是包含布局标记和代码块的 XML 文档.通常存在于基于 Flex 的项目中.
  • .swf is a compiled Flash program (with embedded code, text, and assets).
  • .fla is a project file that holds the references to everything you want to compile.
  • .as file is the code used in the program.
  • .mxml file is an XML document that contains markup for layout and chunks of code. Usually present with a Flex based project.

警告:反编译器在重建项目时并不总是成功.除了原始开发人员提供的一些深奥设置之外,您从中获得的文件完全有可能无法重新编译.

A word of warning: a decompiler will not always be successful in reconstructing the project. It is entirely possible that the files you get out of it cannot be recompiled apart from some esoteric settings that the original developer had present.

这篇关于将 AS3 转换为 FLA 以生成 SWF的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆