mxmlc

Height and width of a SWF file in html

白昼怎懂夜的黑 提交于 2020-01-23 09:20:27
问题 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 and width of a SWF file in html

ε祈祈猫儿з 提交于 2020-01-23 09:20:21
问题 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

Flex actionscript code for activitylevel

梦想的初衷 提交于 2020-01-17 06:59:35
问题 Can any one indicata me a small piece of code for making this progress bar move on mic activitylevel. i.e, When spoken on the microphone the progressbar should indicate it.Also which works on internet explorer <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" width="300" height="100" creationComplete="init()"> <mx:Script> <![CDATA[ import mx.controls.Alert; import flash.net.NetStream; private var myMic:Microphone; private var

Conditionally including Flex libraries (SWCs) in mxmlc/compc ant tasks

断了今生、忘了曾经 提交于 2020-01-11 10:52:31
问题 I have been struggling trying to figure out how to conditionally include Flex libraries in an ant build based on a property that is set on the command line. I have tried a number of approaches with the <condition/> task, but so far have not gotten it to work. Here is where I am currently. I have an init target that includes condition tasks like this: <condition property="automation.libs" value="automation.qtp"> <equals arg1="${automation}" arg2="qtp" casesensitive="false" trim="true"/> <

Compile actionscript using mxmlc compiler

天涯浪子 提交于 2020-01-07 05:05:47
问题 How would you compile actionscript code whose main class is inside a package using mxmlc command line compiler? Consider the following - com.nuaavee::MainClass com.nuaavee.utility::SomeUtility MainClass imports SomeUtility class. Is there a way to compile these classes keeping MainClass as the main class to generate a swf? 回答1: Here is a solution that has been tested to work - mxmlc -output main.swf src/com/nuaavee/MainClass.as -source-path src/ 回答2: If it's just a Utility class, it should be

Compile actionscript using mxmlc compiler

吃可爱长大的小学妹 提交于 2020-01-07 05:05:11
问题 How would you compile actionscript code whose main class is inside a package using mxmlc command line compiler? Consider the following - com.nuaavee::MainClass com.nuaavee.utility::SomeUtility MainClass imports SomeUtility class. Is there a way to compile these classes keeping MainClass as the main class to generate a swf? 回答1: Here is a solution that has been tested to work - mxmlc -output main.swf src/com/nuaavee/MainClass.as -source-path src/ 回答2: If it's just a Utility class, it should be

AS3 audiioencoder to convert to audio

ε祈祈猫儿з 提交于 2020-01-07 02:57:07
问题 In action script how to convert using audio encoder a recorded byte array from microphone to MP3 public var recordedData:ByteArray; recordedData.writeBytes(sample.data, 0, sample.data.bytesAvailable); How to save recordedData to mp3 using audio encoder 回答1: You find yourself an MP3 encoding library that runs in the Flash player. A simple google search finds Shine to be pretty popular. Another option is to stream the audio up to the server and encode there. Depending on your environment, you

flash crash when loading external swf (with code example this time around)

♀尐吖头ヾ 提交于 2020-01-05 13:09:10
问题 This is a AS3 project created in FlashDevelop. It targets flash player 10. I have a disturbing problem when running this code: package { import flash.display.Loader; import flash.display.MovieClip; import flash.display.Sprite; import flash.events.Event; import flash.net.URLRequest; public class Main extends MovieClip { private var loader:Loader; private var sprite:Sprite; public function Main():void { if (stage) init(); else addEventListener(Event.ADDED_TO_STAGE, init); } private function

flash crash when loading external swf (with code example this time around)

我只是一个虾纸丫 提交于 2020-01-05 13:09:07
问题 This is a AS3 project created in FlashDevelop. It targets flash player 10. I have a disturbing problem when running this code: package { import flash.display.Loader; import flash.display.MovieClip; import flash.display.Sprite; import flash.events.Event; import flash.net.URLRequest; public class Main extends MovieClip { private var loader:Loader; private var sprite:Sprite; public function Main():void { if (stage) init(); else addEventListener(Event.ADDED_TO_STAGE, init); } private function

How do I tell mxmlc to treat warnings as errors?

南楼画角 提交于 2020-01-03 19:16:49
问题 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