mxmlc

Does Flex SDK's mxmlc create a cache file or hash to determine if source code has changed?

My ant buildfiles tell mxmlc.jar to recompile target mxml source. However, if the target mxml source file has not changed, either ant or mxmlc is ignoring the file and will not create a new swf. This is an annoyance because I'm editing files imported by the target mxml. I need it to rebuild when those files change. I'm guessing that ...

Difference in building swf through FlexBuilder and mxmlc(ANT build)

Hi, Will there be any difference between the swf generated by Flex Builder and mxmlc? In my application, there is a page with certain fields to be filled in. Upon clicking a button, it opens up a popup. Upon selecting an option in the popup and clicking OK, it makes a request to the server, fetches some data and adds it to the main pag...

Flex Compilation - Strange Behavior of metadata tags

I'm trying to move the build of a Flex Builder workspace from the IDE into an Ant task, and I'm having some trouble with the behavior of some custom metadata tags in the projects. I have one library project which is compiled as a .swc, which includes several classes that read metadata off of classes passed to them. An application depend...

mxmlc (flex4 beta)command line on ubuntu hangs

Im using mxmlc to compile as3 on ubuntu linux. I've donwloaded flex4_b2_100509, just to use the most recent stuff... so Im typing 'mxmlc file.as' but it just hangs on me... it doesnt return anything. I checked running processes ('ps -e') and its showing both mxmlc and java as running, which tells me the compiler started... after a wh...

using property file along with config file to be used with mxmlc

Hi, I'm trying to run mxmlc in the following manner. mxmlc -load-config+=mycfg.xml C:\\projects\\src\\main.mxml -output myswf.swf In the config file, I want to keep some values configurable, for example the paths of the external libraries. Is it possible to include a property file into the config file and use it as {property_name} in...

Why is the compiler complaining about a possibly undefined property

Hello, I have a very simple practice program for Flex 4 ( Gumbo ). package { import mx.controls.ColorPicker; import mx.controls.Label; import mx.events.ColorPickerEvent; import flash.display.Sprite; public class testClass extends Sprite { private var cPicker:ColorPicker = new ColorPicker(); privat...

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

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 ...

How can I speed up Ant Compilation in FDT / Flex Builder

Is there any way to speed up MXMLC compiles using Flextasks in Ant in Eclipse. Compared to FDT and Flex Builder's in-built compilation, it is painfully slow. ...

Can't embed XML in FlashDevelop

I am trying to embed some xml into my application but I get the following error Fault] exception, information=TypeError: Error #1090: XML parser failure: element is malformed. Here is my code. package { import com.objects.EngineApi; import com.objects.Rectangles; import flash.display.Sprite; import flash.events.Even...

How to suppress Flash migration warnings (1090)

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 t...

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 written JSFL scripts that automate the Flash IDE and walk through a complicated, fragile set ...

Including configuration files while compiling a Flex application with MXMLC

Hello there, I'm using: - Flex SDK 3.5.0 - Parsley 2.2.2. - Flash Builder 4 Down in my src folder (which is configured as part of the source path in the Flash Builder), I have a logging.xml which I configure via Parsley: FlexLoggingXmlSupport.initialize(); XmlContextBuilder.build("com/company/product/util/log/loggi...

Compiling CSS to SWF server side Java, What is the best practice?

My project allows users to create custom css for our flex app. In regards to compiling the CSS into SWFs on the server side: Should I use the flex2.compiler.css.Compiler class in mxmlc-3.5.0.12683.jar? Or Should I invoke mxmlc from Runtime.getRuntime().exec()? The css.Compiler class is not very well documented. Does anyone have any...

MXMLC Ant task results in java.lang.OutOFMemoryError

I'm making a change to a set of code for a Flex project that I didn't write and was set up to compile using ant tasks. I assume that the codebase was stable at the last checkin but I'm running into memory issues when trying to build a project using MXMLC and ant (see stack trace below). Before, I was just getting an out of memory error. ...

MXMLC and 64bit JRE

Are there any workarounds to get the Flex compiler to work with a 64bit JRE? If I use an MXMLC task in an Ant buildfile in Eclipse it works fine but if I try to use MXMLC from the command line (or try the Run... command from FDT in Eclipse) it fails, telling me ... "Error loading: C:\Program Files\Java\jrrt-1.6.0\jre\bin\jrockit\jvm.dll...

Ant MXMLC task with arbitrary list of source/lib paths?

Does anyone know of a way to use the mxmlc task of the Flex Ant tasks with a user-definable list of source path or library paths? The idea is that the user can define an arbitrary list of source paths and/or library (swc) paths into an Ant properties file and the build file takes these values and evaluates them for use in the mxmlc task....

Generating arguments for the mxmlc Flex Ant task

My ActionScript project builds with several compile-time specified constants. They are all Booleans, and only one of them is true at any given time. The rest must be false. When I represented my build process in a bash script, I could loop through the names of all these constants, set one of them to be true and the rest to be false, the...

FlexBuilder/mxmlc: static type checker decides not to statically check types?

I've noticed that FB3/mxmlc occasionally get lazy and decide not to do static type checking. For example, if I change a method name from oldMethod to newMethod, the compiler will produce a few "possibly undefined method" errors for some references to oldMethod, but other references will go compleatly unnoticed until runtime. A few othe...

How to compile multiple css files into individual swfs using pure Maven?

Right now I am using an apply task inside of an antrun execution. <plugin> <artifactId>maven-antrun-plugin</artifactId> <version>1.4</version> <executions> <execution> <id>compile-default-theme-css</id> <phase>compile</phase> <configuration> <tasks> ...

Compiling with Flex4 SDK

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 tru...