【发布时间】:2024-01-12 06:40:01
【问题描述】:
在 Adobe Flex 文件中编译 swf 文件时如何监控 swf 文件中的版本?
【问题讨论】:
-
您能否编辑您的问题以澄清您的意思?是否要将 Flex 源文件中的版本嵌入 SWF 中?您如何分配该版本号 - 或者您首先对此有疑问?
标签: apache-flex adobe versioning
在 Adobe Flex 文件中编译 swf 文件时如何监控 swf 文件中的版本?
【问题讨论】:
标签: apache-flex adobe versioning
假设我正确理解了您的问题,您应该查看我的这篇博客文章,标题为 "Saving and Accessing Version/Compilation Information with Flex Applications",它继续解释了如何使用 mxmlc 编译器中的 条件编译 功能来将变量值保存到编译后的二进制文件中,然后将它们打印到应用程序本身的日志中(或显示在用户界面中)。
以下是该帖子中的相关 sn-ps:
# Compiling the binary with the conditional compilation parameter:
/path/to/mxmlc -define+=DEBUG::compiled,"Fri_Sep_12_17:26:13_on_Alis-MacBook.local" -strict=true /path/to/myApp.mxml
// Printing out the "compiled" value in the application code:
var DEBUG:Namespace = new Namespace("DEBUG");
var compiledStr:String = DEBUG::compiled;
trace("SWF was compiled: "+compiledStr);
就实际的“版本号”而言,我只使用了三件事:
【讨论】: