Flex :: Flash - Wrapping Or Embedding And MP3 In A SWF Using Flex's Mxmlc Compiler?

May 13, 2010

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 of steps to embed MP3 files into FLAs and then publish those to SWFs. Now, Flex SDK provides the mxmlc compiler. I've mixed ANT into our workflow, and command-line and automated builds have been a joy. So, I want to make transcoding or wrapping of MP3s part of our build process. I've found Embedding Asset at Compile time in Pure AS3, but this will require that I write a script to generate a wrapper class AS file. Is there a cleaner way to wrap or transcode MP3 files into SWFs?

View 1 Replies


Similar Posts:


Flex :: Specify Linked Resource Folder In MXMLC Compiler Arguments?

Oct 13, 2011

I've got external folder with resources (graphics, movies, etc) which is shared between a couple of projects. I'm able to link this resource folder in FlashBuilder (as described in [URL]). After that all the paths to embeds are relative to the project, and that's the behaviour I want.

This linked resource appears in .project file as follows:
<linkedResources><link>
<name>resources</name>
<type>2</type>
<locationURI>DOCUMENTS/Shared/resources</locationURI>
</link></linkedResources>

Note, that it isn't source folder and it is not included in compilerSourcePath tag. The question is how can I specify resource linked folder in mxmlc command line arguments? -source-path is not working here, relative pathes to embeds can not be resolved.

View 1 Replies

Java :: Flex Compiler - Mxmlc - Makes 64bits JVM Crash (dcpr.dll)

Aug 12, 2010

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

[Code]...

View 2 Replies

Flash :: Flex - Access A Stage Instance Name From A SWF Embedded With The Flex Compiler?

Sep 10, 2009

I've embedded a MovieClip symbol with the [Embed] syntax into my AS3 project, which I'm compiling with the Flex 3 SDK. That MovieClip has instances of other clips within it that are placed on stage with instance names. I can't just access them by instance name like I would if I were compiling with the Flash IDE. How can I reference them?

View 1 Replies

Flex :: Wrapping A MXML (or Spark) Component On A Flash Sprite?

Oct 19, 2011

When using an mx:Canvas from the Flex api inside a Sprite, I'm getting a TypeError: Error #1009 and following stack:

> StyleManager/getStyleManager
> StyleProtoChain/getStyleManager
> StyleProtoChain/initProtoChain

[code].....

View 1 Replies

Flash :: Mxmlc Compiler - Source-path Preferred Over Library-path?

Nov 9, 2011

the same class is passed to the mxmlc compiler in SWF library as a symbol linkage class and again in a source-path. But the compiler uses the definition from the source-path so creating new instance of that class won't create new instance of the library symbol. How do I tell the compiler to prefer the definition linked to the symbol (the one dfrom SWC)?

I have my design assets in an FLA file and they are linked to classes (e.g. [URL]. Then I export those assets to a SWC library and pass it to the compiler. Now when I create an instance of the class (new MyAsset();) it will be a new instance of the library object.

But there are other classes too in the source folder (e.g. "com.myproject.model.*" so I need to pass the source folder to the compiler too. And that is the problem, now the compiler will use the MyAsset.as definition from the source path, not from the SWC where it is assigned to the library object so if I create new instance of MyAsset now it won't duplicate the library object.

View 1 Replies

Flex :: Adding Runtime-library-path To Flex Build Configuration Using Ant Mxmlc Task

Feb 9, 2011

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

<runtime-shared-libraries>
<url>some-lib.swf</url>
<url>some-other-lib.swf</url>

[Code]....

View 2 Replies

Flash - Flex MXMLC Ant Task Steals The Window Focus?

Aug 5, 2010

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 doesn't interact at all with the window system?I'm running on Mac OS X (10.5.8, if that matters), and Flash 4.0.1 (although the behavior existed on 3.x as well).

View 1 Replies

Flex :: Compiler 4.0 25% More Rapid Than Compiler?

Aug 5, 2011

Its stated in adobe site that the Flash Builder 4 compiler is indeed 25% more performing than the previous Flex Builder 3 compiler.

How can I confirm that?

For example if I make a simple application on Fx3 and the same on Fx4, then how would I compare the compiler performance using my project?

View 1 Replies

Flash :: Flex - Compile .mxml Files At The Command Line Using Bin / Mxmlc?

Nov 7, 2009

I'm interested in learning just enough Flash/Flex to do things that I can't do from HTML and JavaScript alone - play sound files and video, use multiple file upload things, perform cross-domain Ajax requests using the crossdomain.xml file etc. As such, I don't really want to learn (or pay for) the Flex IDE. I'm not much of an IDE guy in any case.

The problem is, most of the tutorials I've found talk about the IDE. I've figured out how to compile .mxml files at the command line using bin/mxmlc - now I just need to learn MXML, ActionScript and the various APIs! What are the best resources for learning these? I'm fine with buying a book, I just don't want to shell out for the API itself.

View 3 Replies

Flash :: Compiler To Use Both The 3.5 SDK And 4.0 SDK In Flex?

Feb 16, 2011

There are some classes that were taken out of the 4.0 flex sdk and I would like to know how to configure my compiler to use both sdk's, if it is even possible.

View 1 Replies

Flex :: App Fails To Compile With Mxmlc Command-line But Works With Flash Builder IDE

Apr 21, 2011

i have this flex app (it's a flex project created from flash builder), and it compiles fine when i build it from the IDE.it fails to compile when i do it from command line through mxmlc.i am invoking the mxmlc at the location "flash-builder-installation"sdks"flex-ver"inthe mxml file is test.mxml.i don't have any dependency on any of custom swc file.i am getting the following type errors when i compile it.[code]

View 2 Replies

Flex :: Wrapping Text Around An Image?

Jun 28, 2010

Is it possible to wrap text around an image? Here is a link of what I would like to do with Flex, not HTML as in the example. Will it be possible to use the textFlow component like we tried here?

<s:TextArea width="100%" height="100%" editable="false">
<s:textFlow>
<s:TextFlow>

[code]....

View 1 Replies

Flex :: Setting Compiler.theme Option For Halo/Flex 4 In FlashDevelop?

Jul 12, 2010

Here's what works with ant build.xml:

[Code]...

I tried the following values in Project > Properties > Compiler Options > Additional Compiler Options but none of them worked:

View 2 Replies

ActionScript 3.0 :: Flex Mxmlc Access Of Undefined Property Even Though The Code Runs Fine In Flash IDE

Dec 28, 2009

I've been trying for hours to make sense of this problem. When I run my code through the Flash IDE, everthing is fine. However, when I run it through the command line compiler or Flex itself t doesn't work. This is after setting up all the required Flex bits to create a Flash stage and display content. it keeps giving me an "Access of undefined property" error though I've clearly defined those properties in question a line or two before.

[Code]...

What the heck is going on?? I'm stumped. Embed seems to work fine, but I'd prefer to change it this way. I think there's something about XML dynamism if you use embed instead.

View 6 Replies

Flash :: Flex - Compiler Arguments - Force SWC Inclusion

May 2, 2011

I'm trying to write a compiler argument for FDT to force the inclusion of one of my SWCs. It looks kind of like this (App name changed, but the real one also contains mixed case and a space): -include-libraries "C:WorkspacesMy Applibssite.swc" Problem is that the compiler claims it is unable to open this file. Is there a problem maybe with using a full path like this? Ideally I would prefer to use a token to represent the project folder, something like -include-libraries "${project}/libs/site.swc", but I don't seem able to find a token list in the docs.

View 1 Replies

Flex :: User Interface - Spark Datagrid And Word Wrapping

Nov 18, 2011

I would like to have a spark datagrid that wordwraps all rows where relevant. At the moment it appears like the width of a cell is dependent on the contents of the first row and then subsequent rows are word wrapped. For example:

[Code].....

How can I get the datagrid to dynamically resize to 100% of the container width and for wordwrapping to happen on all rows? (not just rows after row 1)

View 1 Replies

Flash - Flex Compiler Appears To Misinterpret .as Files As MXML?

Nov 21, 2011

After changing the Flex SDK to 3.6 (from 4.5.1) so as to target Flash player 9.0.124, the project no longer compiles, producing spurious errors such as XML does not have matching begin and end tags leading me to believe that the compilation process is 'borked'.

This is a pure AS project, and so should have no dependency on the Flex SDK, howver, it seeems to be inextricably linked to the Flex 4.x SDK and Flash Player 10+. I have tried swf-version and -target-player-version in the compiler arguments, but there is still something I am missing to get this to compile for Flash player 9.

View 1 Replies

Flash :: BlazeDS Generated Files Causing Flex Compiler To Fail

Feb 7, 2012

I have a project that I need to develop some Java code for. The project is using Flash and BlazeDS. For the initial build of the project, an Ant script is run that eventually runs what I believe is the Flex compiler (the sdk attribute points to a FlashBuilder 4 sdk/4.1.0 directory).

View 1 Replies

Flash :: Flex4 - Compiler Error Using All Flex Charting Components Using 4.1 SDK W/Builder 4?

Mar 12, 2012

Why do I need to do add extra namespace declarations (below) in a Flex 4.1 "MX only component set" project to get it to compile within Flash Builder? (It says mx:LineChart cannot be resolved when a chart is added via Design View, and datavisualization.swc is referenced.)

Is there a way I can get this to compile without adding these special xmlns:charts, xmlns:series and chartClasses to the declaration? (If I just leave the default namespaces and use mx:SomeChartComponent, it doesn't compile.)

[Code]...

View 1 Replies

Flex :: Can't Get MXMLC To Work On Ubuntu

Jun 22, 2010

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

[Code]....

When I compile it with mxmlc /path/to/file.mxml, I get:

Loading configuration file ~/Documents/flex4_sdk/frameworks/flex-config.xml/path/to/file.mxml (38642 bytes)

However, the resultant SWF file is blank. (Basically just a white canvas.)

View 1 Replies

Compile AS3 Into A SWF Online Using Flex SDK's Mxmlc

Aug 7, 2010

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 thought it'd be a thing that would be interesting to use for a website, or like some private projects.

View 1 Replies

Flex :: Speed Up MXMLC Compiles?

Feb 6, 2012

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 optimize this task?[code]...

View 2 Replies

Flex :: Change Mxmlc From Swf To Html On Ubuntu

Aug 18, 2009

When I use mxmlc to compile my mxml file, I get swf file. Now, I want to change the config to make mxmlc compiler generate html file instead, as we can do in Eclipse or Flex Builder.

View 2 Replies

Actionscript 3 :: Generate EXE From Flex Project Using Mxmlc?

Dec 13, 2010

How to generate an Executable file of my MXML (flex) Application. What is the command using in command prompt for MXMLC.exe.

View 1 Replies

Flex :: Determine What Files MXMLC Compiles?

Mar 2, 2011

I need a way to programmatically record what source files are consumed in an MXMLC compile.Ideally there would be a flag to pass to MXMLC to have it report the complete list of sourc files it is compiling, but there doesn't seem to be such a flag. It seems generally you just pass a main.mxml file to MXMLC and it goes off and compiles everything it needs to without telling you what it's doing. As far as I can tell, you also cannot explicitly list the files for it to compile; it will resolve references automatically and compile referenced sources without any way to control that behavior or report on it.

If the compiler cannot supply this information and a user cannot control this behavior, the only other option I can think of is write my own source code scanner for MXML that will traverse all the references in a code tree to give a report of what MXMLC should be compiling, though that's obviously error prone and certainly not something I'm looking forward to.

View 3 Replies

Flex :: Mxmlc Attributes For Release Build

Apr 7, 2011

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.

View 1 Replies

Flex :: Why Does Flexmojos Produce A Different Size Swf To Mxmlc

Oct 5, 2011

I am compiling a very simple app, Main.mxml:

<?xml version="1.0" encoding="utf-8"?>
<s:Application
xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark">

[code]....

This is quite worrying because I am developing in Eclipse (which uses mxmlc) yet my master build script (which uses flexmojos) is producing a totally different file.

View 2 Replies

Flex :: Mxmlc Outputs Russian Symbols?

Oct 5, 2011

I've downloaded flex SDK from hen I call mxmlc or compc russian symbols are outputed, so it's impossible to work in command line. Is it possible somehow to switch language to English?

View 1 Replies

ActionScript 3.0 :: Flex Catch Mxmlc Output With Php?

Dec 9, 2009

I am compiling an .as file with mxmlc on the fly using PHP.

CODE:
exec("mxmlc example.as",$retval,$success);
print_r($retval);

[code].....

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved