Questions tagged [mxmlc]

mxmlc is Adobe's application compiler that compiles SWF files from ActionScript and MXML source files.

206 questions
3
votes
2 answers

MXML without Flex Framework/Components

The Flex compiler can compile "pure AS3" SWF files that don't contain any Flex Component bytecode. So, Would it be possible to create a custom component framework (used in place of the Flex Framework), that can still be visually laid out using MXML…
darscan
  • 963
  • 1
  • 12
  • 17
3
votes
3 answers

Flex Command Line compiler capablities

Although the Flex command-line compiler (mxmlc) can compile MXML+ActionScript files into SWFs, I need specific insights into its capabilities, via the command-line switches. Configure which language you're writing in, ActionScript 2 / 3 Configure…
Robin Rodricks
  • 110,798
  • 141
  • 398
  • 607
3
votes
2 answers

External Config file in Actionscript 3

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…
Jamie Wong
  • 18,104
  • 8
  • 63
  • 81
3
votes
1 answer

Wrapping or Embedding and MP3 in a SWF using Flex's mxmlc compiler

Our Flash web-based applications play lots of audio for narration and sound-effects. Some of our customers have firewall rules that block downloading of MP3 and other audio files. So, we need to wrap those MP3 files in SWFs. In the past, I've…
user56512
3
votes
1 answer

How to get Flex Builder 3 to generate two builds: one "-use-network=true", another "-use-network=false"?

I'm building a Flex application that will need run under two different deployment scenarios: First, the application will be hosted on the web. The SWF loads some external resources (images, text) so it requires network access, which is the Flex…
Chris W. Rea
  • 5,430
  • 41
  • 58
3
votes
1 answer

Flex Conditional Compile Error

I'm doing the following: CONFIG::TEST{ rootURL = "myTestURL"; } CONFIG::PROD{ rootURL = "myProdURL"; } In compiler arguments I have this: -locale en_US -define+=CONFIG::AIR,true -define+=CONFIG::WEB,false…
David
  • 703
  • 1
  • 15
  • 31
3
votes
2 answers

How do I tell mxmlc to treat warnings as errors?

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.
pian0
  • 837
  • 1
  • 8
  • 19
2
votes
1 answer

Flex ant mxmlc command vs exec command

I am trying to figure out if there is any difference in any aspect of triggering flex compiler from ant file by using ant task 'mxmlc' or OS command 'exec'.
2
votes
2 answers

How can I speed up MXMLC compiles?

I am using ant to build my web application. I have a target in my ant script which takes approximately 8 minutes to compile. Since mxmlc compiles everything from scratch and loads up the JVM each time, it is taking a lot of time. Is there a way to…
yesh
  • 2,052
  • 4
  • 28
  • 51
2
votes
2 answers

Actionscript 3 - Script Libraries

I'm attempting to load the resulting swf of a swc build manually. Due to my particular environment, we have a need to segregate class definitions into swcs (where it makes sense) to remove redundant code from output swfs. In a nutshell, I'm defining…
Demian Brecht
  • 21,135
  • 5
  • 42
  • 46
2
votes
2 answers

How to use custom tokens with flex ant tasks

I am trying to use the flex ant task to build my Flex project. Before using ant, I ran the mxmlc command like this: mxmlc -load-config mxmlc_conf.xml src\project.mxml -output bin-debug +libs=3rdparty\libs…
Ivan Salazar
  • 296
  • 2
  • 12
2
votes
2 answers

Why does mxmlc Incremental Compile cause a fault relating to particular embedded asset?

I have a swf which embeds around 40 various png and fxg objects using the embed metatag... eg.: public class OneOfMyEbeddedAssets { [Embed(source = "./assets/OneOfMyEbeddedAssets.png")] private static const shapeClass: Class; public…
Cookie
  • 287
  • 4
  • 9
2
votes
1 answer

Any way of parametrizing whether or not to append inner elements in ant?

I am writing an ant file for compiling a flex project (but this question may apply to non-flex ant scripts as well). I had several targets there that look like this:
yonix
  • 11,665
  • 7
  • 34
  • 52
2
votes
1 answer

Embeding image in Flex 4 spark button control

How can I embed an image in Flex 4 button control? I found one here, but its for flex 3 mx controls. I just want an image above a text label on the button for accessibility reasons. Can someone suggest any technique both using skins and not using…
iceman
  • 4,211
  • 13
  • 65
  • 92
2
votes
1 answer

Mute speaker in action script

In the following code how to mute the speakers
Rajeev
  • 44,985
  • 76
  • 186
  • 285
1 2
3
13 14