mxmlc

How do I get FlashBuilder to show me the command-line output?

一个人想着一个人 提交于 2019-12-09 15:46:50
问题 Specifically, I want to know what the commands are... all the flags it produces and passes to mxmlc. There must be a way, but I just can't figure it out. 回答1: Ultimate method - locate mxmlc executable for your platform, then create program with the same name which will log arguments. If you just want to master mxmlc, there are docs for it and compiler option dump-config: -dump-config=config.xml . Config contains almost everything about the project and I used such config to make an automated

Unsupported sampling flex/actionscript

落花浮王杯 提交于 2019-12-07 09:15:04
问题 In action script i need Loading configuration file /opt/flex/frameworks/flex-config.xml t3.mxml(10): Error: unsupported sampling rate (24000Hz) [Embed(source="music.mp3")] t3.mxml(10): Error: Unable to transcode music.mp3. [Embed(source="music.mp3")] The code is <?xml version="1.0"?> <!-- embed/EmbedSound.mxml --> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"> <mx:Script> <![CDATA[ import flash.media.*; [Embed(source="sample.mp3")] [Bindable] public var sndCls:Class; public var

How to determine what files MXMLC compiles

泪湿孤枕 提交于 2019-12-06 16:45:56
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 references automatically and compile referenced sources without any way to control that behavior or

Adding runtime-library-path to flex build configuration using ant mxmlc task

亡梦爱人 提交于 2019-12-06 06:49:01
问题 I'm trying to build a flex project, linking it to some RLSs. When setting up the project in Flex Builder, the corresponding "build configuration" (that I got by adding -dump-config to the compiler options) generates (among other things) a tag like this : <runtime-shared-libraries> <url>some-lib.swf</url> <url>some-other-lib.swf</url> </runtime-shared-libraries> Now, I am trying to build the project using mxmlc ant task, but I can't seem to add any reference to a share-library. I thought

Height and width of a SWF file in html

大城市里の小女人 提交于 2019-12-05 21:12:48
In the following code Only the button image has been embeded into the flex code.But in the html object or embed tag why the height and width has to be specified.Even though for this is a normal button if we do not specify the height and width there seems to be some error html <div align="center"> <br /> <div style="display:block;width:100px;height:100px;" id="audio" class="testsound" align="center"/> <p class="clickable"> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="400" height="100" id="myMovieName"> <param name="movie" value="/media/players/testsound.swf"/> <param name

Unsupported sampling flex/actionscript

ε祈祈猫儿з 提交于 2019-12-05 16:20:42
In action script i need Loading configuration file /opt/flex/frameworks/flex-config.xml t3.mxml(10): Error: unsupported sampling rate (24000Hz) [Embed(source="music.mp3")] t3.mxml(10): Error: Unable to transcode music.mp3. [Embed(source="music.mp3")] The code is <?xml version="1.0"?> <!-- embed/EmbedSound.mxml --> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"> <mx:Script> <![CDATA[ import flash.media.*; [Embed(source="sample.mp3")] [Bindable] public var sndCls:Class; public var snd:Sound = new sndCls() as Sound; public var sndChannel:SoundChannel; public function playSound():void {

Adding runtime-library-path to flex build configuration using ant mxmlc task

落花浮王杯 提交于 2019-12-04 12:58:34
I'm trying to build a flex project, linking it to some RLSs. When setting up the project in Flex Builder, the corresponding "build configuration" (that I got by adding -dump-config to the compiler options) generates (among other things) a tag like this : <runtime-shared-libraries> <url>some-lib.swf</url> <url>some-other-lib.swf</url> </runtime-shared-libraries> Now, I am trying to build the project using mxmlc ant task, but I can't seem to add any reference to a share-library. I thought something like this would have help, but it didin't: <!-- Skipping attributes that I don't think are

Extending Array in Actionscript 3 (Flex)

自古美人都是妖i 提交于 2019-12-04 12:05:23
问题 I'm trying to make a variation on Array for a very specific purpose. When I have the following: public class TileArray extends Array { // Intentionally empty - I get the error regardless } Why can't I do this? var tl:TileArray = [1,2,3]; despite the fact that I can do this var ar:Array = [1,2,3]; The error I receive is this: Implicit coercion of a value with static type Array to a possibly unrelated type 回答1: Instead of extending Array you could write your own class that exposes all the

How do I get FlashBuilder to show me the command-line output?

蓝咒 提交于 2019-12-04 03:13:47
Specifically, I want to know what the commands are... all the flags it produces and passes to mxmlc. There must be a way, but I just can't figure it out. Ultimate method - locate mxmlc executable for your platform, then create program with the same name which will log arguments. If you just want to master mxmlc, there are docs for it and compiler option dump-config: -dump-config=config.xml . Config contains almost everything about the project and I used such config to make an automated build. merv The official answer : In Flash Builder, select Project > Properties > Flex Compiler In Additional

Extending Array in Actionscript 3 (Flex)

*爱你&永不变心* 提交于 2019-12-03 06:44:06
I'm trying to make a variation on Array for a very specific purpose. When I have the following: public class TileArray extends Array { // Intentionally empty - I get the error regardless } Why can't I do this? var tl:TileArray = [1,2,3]; despite the fact that I can do this var ar:Array = [1,2,3]; The error I receive is this: Implicit coercion of a value with static type Array to a possibly unrelated type Instead of extending Array you could write your own class that exposes all the methods of Array. By employing the Proxy class you can redirect all default Array methods to an internal array