Questions tagged [mxmlc]

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

206 questions
4
votes
2 answers

Unsupported sampling flex/actionscript

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. …
Rajeev
  • 44,985
  • 76
  • 186
  • 285
4
votes
2 answers

Using compiler constants with ant task

I'm converting an existing build script from to to generate a swc. However, the build is failing, giving the error: [compc] C:\xxxx\LogViewer.mxml(32): Error: Access of undefined property VERSION. [compc] [compc] private static…
Marty Pitt
  • 28,822
  • 36
  • 122
  • 195
4
votes
3 answers

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…
Monokai
  • 1,163
  • 2
  • 10
  • 16
4
votes
1 answer

Change JDK for running task from within build xml

I have build.xml which calls swfbuild.xml. I want parent build.xml to use IBM JDK 1.5 and swfbuild.xml to use Sun JDK 1.6 Is there any option in task to specify different JDK to use? I tried setting JAVACMD like below but that doesn't work…
Vineet Bhatia
  • 2,469
  • 4
  • 30
  • 28
4
votes
1 answer

How to derive a relative path using Ant

I'm using Ant and mxmlc to compile ActionScript classes and MXML into swfs, while maintaining the default organization of a Flex Builder (Flash Builder) project. Many of my ActionScript classes are in project subdirectories, so my project is…
user56512
4
votes
5 answers

Using ant mxmlc task with native extension

I have an AIR application that I'm compiling to mobile. There is an iOS native extension (JamPot MobileBackup) that compiles fine when used in the IDE. However, the IDE isn't sufficient now that we're moving to support other platforms and I decided…
Scott A
  • 7,745
  • 3
  • 33
  • 46
3
votes
3 answers

Can relative paths be used when using "include-libraries" in the Flex mxmlc compiler?

I am trying to force all of the classes in a .swc to be linked into my Flex project's resulting SWF file. From the docs: http://livedocs.adobe.com/flex/3/html/help.html?content=compilers_03.html include-libraries library [...] Links all classes…
cliff.meyers
  • 17,666
  • 5
  • 51
  • 66
3
votes
1 answer

Advice for learning to compile pure AS3 projects with Ant

I'm interested in breaking free of IDEs with my ActionScript development. It seems that using Ant with mxmlc is the preferred way of doing this; however, I've never used Ant or the compiler directly before. Information of note that may or may not be…
James Tomasino
  • 3,520
  • 1
  • 20
  • 38
3
votes
1 answer

Stage3D in Flash Player 11 doesn't display

I'm trying to write a 3D game in ActionScript 3.0 using the Stage3D API. I've copied the playerglobal.swc in my frameworks/libs/player/11.0 directory, and modified the frameworks/flex-config.xml file by changing the target-player to 11.0.0 and the…
Aadit M Shah
  • 72,912
  • 30
  • 168
  • 299
3
votes
5 answers

How to include additional compiler arguments when using mxmlc ant task?

Flex Builder allows additional compiler arguments to be set in the compiler options, under properties. It sets the argument; -services ".../services-config.xml" Is there a way to set the same argument when using the ant task mxmlc? Cheers, Mike
Mike
  • 4,462
  • 4
  • 22
  • 11
3
votes
1 answer

static-link-runtime-shared-libraries in mxmlc

I use -static-link-runtime-shared-libraries=false for compiling my app and when I upload the new swf I periodically receive an Error #2046. If -static-link-runtime-shared-libraries=true used it works OK. How do I handle with that? I placed all the…
Soid
  • 2,585
  • 1
  • 30
  • 42
3
votes
3 answers

Height and width of a SWF file in html

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…
Naveen
  • 230
  • 1
  • 3
  • 12
3
votes
3 answers

Mxmlc generates different binary on same source

I'm compiling a single .as file into swf using mxmlc. Whenever I run mxmlc, results are different in size even when the source code is not changed. For example, // Test.as package { public class Test { } } And generates .swf using mxmlc…
Flexx
  • 51
  • 2
3
votes
1 answer

mxmlc attributes for release build

Which mxmlc attributes do I need to replicate the behaviour of Flash Builder 4's Export Release Build? debug=false and optimize=true seems obvious, but doesn't reduce the swf's file size as FB4's Export Release Build does.
3
votes
3 answers

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

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…
phtrivier
  • 13,047
  • 6
  • 48
  • 79
1
2
3
13 14