mxmlc

I can't get MXMLC to work on Ubuntu.

Okay, I downloaded the Flex 4 SDK from Adobe and extracted the contents to ~/Documents/flex4_sdk. Now I have the following simple MXML file: <?xml version="1.0"?> <!-- usingas/StatementSyntax.mxml --> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"&gt; <mx:Label id="label1"/> </mx:Application> When I compile it with m...

Extending Array in Actionscript 3 (Flex)

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

How to link against SWC when source is in project?

I would like to compile my view classes into an SWC from flash, and compile the rest of the application using mxmlc (avoiding recompiling through the IDE). However, because the view classes (source) are in the project class path, mxmlc gives them precedence over the compiled SWC. Now I'm thinking that maybe the view classes have to be s...

Video is corrupting when compiled with mxmlc but not Flash IDE

Hi, I have movieclips containing FLV video sequences. When this FLV plays in a SWF compiled from mxmlc, the video is completely corrupted - all different coloured blocks. If I compile from the IDE the video plays fine. It's a bit more involved than this: if I play multiple copies of the same FLV at the same time, they're fine, wher...

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

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

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 extends FlxState { [Embed(source = "../../data/tiles.png")] private var _tiles:C...

Compiling MXML with ANT - default-background-color not working

When I compile an .as file with MXMLC via ANT Build and set the default-background-color and default-frame-rate compiler options everything works fine. However, when I compile the main Application file of a Flex Project ( .mxml ) these options are not working or are not visible in the output when I launch. The framerate returns as NaN an...

Flex 4, compile a class package for runtime class instantiation.

Hi, I'm looking for a way to ensure classes are compiled for dynamic run time instantiation using getDefinitionByName() in Flex4. I've looked at using the -include-libraries compiler argument but I would rather not have to pre-compile my classes in an swc. There appears to be another compiler argument -includes, but whenever I try thi...

Flex MXMLC Ant task steals the window focus

Has anyone noticed the following behavior building Flex programs using the mxmlc ANT task (running in the background): as the MXMLC task starts, it steals the window focus from whatever application is currently running, and then gives it back again! This is extremely disruptive. Is there a way to run the MXMLC task "headless" so it does...

Compile AS3 into a SWF online using Flex SDK's mxmlc

Read my question thoroughly before responding, I know there’s a site called wonderfl.net I‘ve got the Flex SDK 4 on my Mac and I found a way to compile AS3 into SWF files using Flex's mxmlc compiler in Xcode, so I wondered, would it be possible to do this sort of simply online? Using for example a language I'm familiar with, PHP? I tho...

mxmlc/fcsh ignoring [SWF(width="550", height="400", ...)]

I'm compiling an .as file using fcsh, which uses it mxmlc. I use the following shell: mxmlc /Users/johannesjensen/Desktop/Doodler.as -static-link-runtime-shared-libraries=true But when I get the .swf on my desktop it's dimensions are 500x375 and framerate is 24 when I told it that it needs to be 550x400 and framerate needs to be 12...

Flex compiler, mxmlc, called in Java makes 64bits JVM crash (dcpr.dll)

Hi, I have a web application that converts SVG files into swf ones. In order to do so, there are 3 steps : 1 - Running through SVG Files in a folder for (final File file : tFiles) { final String fileName = file.getName(); final int nbEr = flashEngine.convert(fileName); if (nbEr > 0) { LOG.error("Error with SVG ...

Recompiling with mxmlc

Hi. I'm having some trouble with the mxmlc compiler. It doesn't catch my changes in the code. It's like it uses some old cache. I can for instance change the structure of a method, build and the see the compiler say "Successful build" even thou it's obvious that some lines will fail! I have looked at the args list for mxmlc but nothi...

Flex application font style is different between Flash Builder and MXMLC

The title says it all. When I compile my project with MXMLC I get a light grey font; if I specify a CSS style Application { color: black;} it fixes some of the colors but not most of them. When I compile with Flash Builder it's a nice solid black. I'm using Halo.swc and not any Spark stuff, I have the same fonts installed on the MXMLC co...

Compiling Flex Modules - Speed up link-checking?

Hi all, I'm working on a Flex project that has 28 modules, and 1 main SWF. Compiling everything takes 18 minutes total. I'm using load-externs to load a link-report from my main SWF - that works great. The file size of the modules is minimal. But link-checking still occurs for each individual module, increasing the compile time dram...

Building Flex with Nant?

I'm wondering if I'm barking up the wrong tree here. Is it possible to replace an Ant build script used for building Flex projects with a Nant build script? Specifically, it doesn't seem like there are any replacements for the Ant <mxmlc>, <macrodef> and <taskdef> tasks provided with Nant or Nant-contrib. I'm not too experienced in ei...

osx compiling AS3 project from the command line

When working on small projects or some test classes , I would prefer to quickly compile my code from the command line as opposed to creating a full Actionscript project in Flash Builder for instance. In a previous similar question , an answer was given referring to this article: http://www.senocular.com/flash/tutorials/as3withmxmlc/ b...

trace() not written to flashlog.txt

Hi I'm using mxmlc on a Mac terminal to compile an AS 3.0 project and then I run it by opening the Main.swf in Flash Debugger 10. Now, errors get written to the flashlog.txt just fine but my trace statements don't : ( I have mm.cfg in /Library/Application Support/Macromedia and it contains the following lines: ErrorReportingEnable=1 Tr...

How to include resource bundles in ActionScript Modules using Flex 4.1?

In the simplest of Flex Projects, create an MXML Flex Module and then load it using the ModuleManager. No problem. Create an ActionScript class that extends Module and then configure your project to compile that into a Module. Load this new module instead. The project compiles, but crashes when running with the following error: "Err...

Flex Compilier says source-path and package definition mismatch

Here's the issue: I have three files in the same package: com.foobar The directory to these files is: C:..\mylibrary\src\com\foobar\ then inside I have foo.as and bar.as When I try to run mxmlc C:..\mylibrary\src\com\foobar\foo.as I get the error: A file found in a source-path must have the same package structure ' ', as the defini...