mxmlc

How do I tell mxmlc to treat warnings as errors?

旧城冷巷雨未停 提交于 2020-01-03 19:16:18
问题 I'm using the mxmlc command line tool to compile a pure AS3 project. Is there a command line option to make mxmlc treat warnings as errors? I've read through all the compiler flags and flex-config.xml but wasn't able to find this option. 回答1: You cannot. The default mxmlc value for 'strict' is true. Setting it to true has no effect. 回答2: What about... -compiler.strict alias -strict runs the AS3 compiler in strict error checking mode. strict must be 'false' when es3 is 'true' . I believe you

Adobe record sound and save

心不动则不痛 提交于 2019-12-31 04:23:31
问题 In the following code i am trying to save the microphone contents to a file.The saved file doesn't play and Every time the file is saved i see that the size is only of 10 bytes only.What am i doing wrong in the code.Can someone please show me the correct code to save it .And the saved file should play the recorded contents accordingly. <?xml version="1.0" encoding="utf-8"?> <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library:/

External Config file in Actionscript 3

岁酱吖の 提交于 2019-12-23 20:55:08
问题 I need to be able to load external configuration files into my flex app. I've read that this is possible using embeds, so long as the mimeType is set to application/octet-stream. package learning { import org.flixel.*; public class PlayState extends FlxState { [Embed(source = "../../data/tiles.png")] private var _tiles:Class; [Embed(source = '../../data/map.txt', mimeType = "application/octet-stream")] private var ExternalMapData:Class; public var txt:FlxText; public var player:FlxSprite;

How to determine what files MXMLC compiles

泪湿孤枕 提交于 2019-12-23 02:25:08
问题 I need a way to programmatically record what source files are consumed in an MXMLC compile. Ideally there would be a flag to pass to MXMLC to have it report the complete list of source files it is compiling, but there doesn't seem to be such a flag. It seems generally you just pass a main.mxml file to MXMLC and it goes off and compiles everything it needs to without telling you what it's doing. As far as I can tell, you also cannot explicitly list the files for it to compile; it will resolve

How to suppress Flash migration warnings (1090)

有些话、适合烂在心里 提交于 2019-12-21 09:22:12
问题 In Flash Professional CS4, I get "migration issue" warnings when I use mouse/keyboard input handler names such as onMouseDown, onKeyUp, etc., even though I have added event listeners for them. These names are perfectly legal for functions, but since these were automatically fired in ActionScript 2.0, we are now (albeit sensibly) warned that their use is no longer automatic in AS3. I understand the purpose of the warnings, but they aren't useful for me. I want to suppress these warnings, but

Compiling with Flex4 SDK

心不动则不痛 提交于 2019-12-21 02:57:11
问题 I'm trying to compile an existing Flex3 project with the Flex4 SDK. I'm getting this error: Warning: This compilation unit did not have a factoryClass specified in Frame metadata to load the configured runtime shared libraries. To compile without runtime shared libraries either set the -static-link-runtime-shared-libraries option to true or remove the -runtime-shared-libraries option. The resulting file is roughly the same as my old Flex3 compiled .swf file. Playing the resulting .swf file in

Change progress bar color in flex

怎甘沉沦 提交于 2019-12-13 05:46:23
问题 How to chnage progress bar color to green in the following code <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" width="100" height="100" creationComplete="init()"> <mx:Script> <![CDATA[ import mx.controls.Alert; import flash.net.NetStream; private var myMic:Microphone; private var nc:NetConnection; private function init():void { initMic("0x19D319"); myMic = Microphone.getMicrophone(); myMic.setSilenceLevel(0); myMic.rate = 44;

Does ASC 2.0 recognize [Frame] metadata tags (ex: for Preloader factoryClass)?

强颜欢笑 提交于 2019-12-12 11:04:15
问题 I'm trying to use the new ASC2.0 compiler in the AIR SDK 3.7, but I seem to be running into a problem where it cannot detect my preloader class. If I use the non-ASC2.0 compiler, it recognizes and compiles the Preloader class declared in the Frame metadata tag in my Main class, like so: [Frame(factoryClass = "Preloader")] But as soon as I compile it with ASC2.0, it disregards the Frame metadata and just tries to compile the Main class and assume that it HAS to be a subclass of Sprite /

mxmlc does not include *.ane files during command line build

假装没事ソ 提交于 2019-12-11 12:58:38
问题 Here is the command that I am using to build an android application. mxmlc +configname=airmobile -output Example.swf -locale=en_US -source-path+=D:\fb_projects\Example\localeB\{locale} -library-path+=D:\fb_projects\Example\libs -source-path+=D:\fb_projects\Example\src -external-library-path+=D:\fb_projects\Example\extensions\android.ane -- D:\fb_projects\Example\src\Example.mxml Update : Please check the command that i am using now to build/compile my flex android application , I have

MXMLC strange error: Error: only one source is allowed in the filespec

我是研究僧i 提交于 2019-12-11 07:53:42
问题 I'm trying to compile the simple AIR app from here. I get a strange error, strange in that Googling it hardly reveals three results. mxmlc -library-path=/Applications/Adobe Flash Builder Burrito/sdks/4.5.0/frameworks/libs/air/airglobal.swc NativeProcessTestFlex.mxml Loading configuration file /Applications/Adobe Flash Builder Burrito/sdks/4.5.0/frameworks/flex-config.xml Adobe Flex Compiler (mxmlc) Version 4.5.0 build 17689 Copyright (c) 2004-2009 Adobe Systems, Inc. All rights reserved.