Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有人注意到使用 mxmlc ANT 任务(在后台运行)构建 Flex 程序的以下行为:当 MXMLC 任务启动时,它会从当前正在运行的任何应用程序中窃取窗口焦点,然后再次将其归还!这是极具破坏性的。
有没有办法“无头”运行 MXMLC 任务,使其完全不与窗口系统交互?
我在 Mac OS X(10.5.8,如果重要的话)和 Flash 4.0.1 上运行(尽管这种行为也存在于 3.x 上)。
谢谢!
标记
注意 -compiler.headless-server 选项(http://www.senocular.com/flash/tutorials/as3withmxmlc/)
我只是尝试在我的一个 mxmlc ant 任务中将其设置为 true,它可以防止窃取焦点。HTH。