Mxmlc compiler parameter?

Hi:
I am trying to upload a .properties file to a web server (linux), let server compile it into .swf file, then the user can download it.
However, the compile failed:
/tmp/Adobe/Flex/GeneratedResourceModules/GeneratedResourceModule40155.as(13): col: 51 Error: The definition of base class ModuleBase was not f
ound.
public class GeneratedResourceModule40155 extends ModuleBase
                                                  ^
/tmp/Adobe/Flex/GeneratedResourceModules/GeneratedResourceModule40155.as(14): col: 16 Error: Interface IResourceModule was not found.
    implements IResourceModule
Seems like the mxmlc create some temp file and directory in the /tmp and the wwwrun can not do it.
Is it possible to configure this default location /tmp to somewhere else?
Thanks

I am sorry but can you give me some details?
I am new to this FLEX. This is my problem:
I built a FLex application that can upload a .properties file to a Linux web
server. The file uploaded is in my home directory. I also installed the Flex
SDK  under my home directory.
The script (upload.php) ran the "mxmlc" command from shell_exec(). But the
command failed, since it can not create any file under
/tmp/Adobe/Flex/GeneratedResourceModules/, where the compiler puts the
temporary files.
Would it be possible that I can instruct the mxmlc to put the temporary file
under my home directory? Thanks

Similar Messages

  • Missing java files in the mxmlc compiler svn

    import flex2.compiler.mxml.Parser;
    import flex2.compiler.mxml.ParserConstants;
    import flex2.compiler.mxml.Token;
    import flex2.compiler.mxml.TokenManager;
    the files in the package flex2.compiler.mxml  in the url ,the mxmlc compiler svn seems to be missed....
    someone has some suggestions or references about this?
    thanks

    You need to run the ant build as these are generated classes.

  • The mxmlc compiler displays the compilation errors in Japanese - and I want them in English!

    Working in a Japanese company I have to use a machine with
    Windows XP in Japanese. The thing is that I can barely read this
    language so it's really depressing when most Java apps (and Flex,
    through Eclipse, is one of them) outsmart themselves and default to
    displaying their UI strings/messages in Japanese
    without giving the user the ability to select another
    language.
    When compiling Flex apps using Flex Builder 2, the mxmlc
    compiler is internally called by the IDE to perform the compilation
    and then its output is displayed in the Problems View.
    Well, the English version of mxmlc, has all its messages
    (compilation warnings, errors etc) translated into Japanese (as far
    as I can tell, they are hardwired into the exe). So although I'm
    using the English version of the FB2,
    with -locale en_US specified as an argument for the
    compiler, all the compilation erros are reported in Japanese!
    Even after changes in "flex-config.xml" and "jvm.config" as
    you can see below, the compilation errors are still in Japanese. I
    started to doubt that there's a solution to this problem but I
    really hope there is one.
    TIA,
    .x.
    Here are the relevant portions of my config files and an
    example of mxmlc's output (Japanese might not display correctly):
    -- C:\Program Files\Adobe\Flex Builder 2\Flex SDK
    2\frameworks\flex-config.xml --
    <flex-config>
    <compiler>
    <!-- Turn on generatation of accessible swfs. -->
    <accessible>false</accessible>
    <!-- Specifies the locale for internationalization.
    -->
    <locale>en_US</locale>
    </compiler>
    </flex-config>
    -- C:\Program Files\Adobe\Flex Builder 2\Flex SDK
    2\bin\jvm.config --
    # Arguments to VM
    java.args=-Xmx384m -Dsun.io.useCanonCaches=false
    -Duser.language=en
    -- mxmlc invoked on the command line --
    mxmlc -o ASCIIArt -locale en_US ASCIIArt.mxml
    Loading configuration file C:\Program Files\Adobe\Flex
    Builder 2\Flex SDK 2\frameworks\flex-config.xml
    ASCIIArt\AsciiArtBuilder.as(7): col: 45 Error:
    定義
    com.example.programmingas3.asciiArt:BitmapToAsciiConverter
    が見つかりません。
    import
    com.example.programmingas3.asciiArt.BitmapToAsciiConverter;
    ^
    ASCIIArt\AsciiArtBuilder.as(8): col: 45 Error:
    定義 com.example.programmingas3.asciiArt:Image
    が見つかりません。
    import com.example.programmingas3.asciiArt.Image;

    inlineblue you are right about the "-locale" switch. I've
    just found this page on live docs:
    http://livedocs.macromedia.com/flex/2/docs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=L iveDocs_Parts&file=00001500.html
    with all the compiler options
    I thought that "-metadata.language <code>" (alias
    "-language") sets the language, but it seems that it's only for
    metadata.
    So -locale is out. Thanks for clearing this for me. There's
    one more path left...
    As I wrote in my first message, besides the "-locale en_US"
    compiler option, I am also setting the "user.language" flag in
    jvm.config to "en":
    -- C:\Program Files\Adobe\Flex Builder 2\Flex SDK
    2\bin\jvm.config --
    # Arguments to VM
    java.args=-Xmx384m -Dsun.io.useCanonCaches=false
    -Duser.language=en
    According to the docs:
    http://livedocs.macromedia.com/flex/2/docs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=L iveDocs_Parts&file=00001462.html
    this is the standard (only?) way to pass arguments to the JVM. And
    AFAIK "-Duser.language=en" is supposed to set the user language to
    English. But it does not happen... I have to investigate this
    more...

  • Importing the mxmlc compiler into Eclipse&missing files

    import flex2.compiler.mxml.Parser;
    import flex2.compiler.mxml.ParserConstants;
    import flex2.compiler.mxml.Token;
    import flex2.compiler.mxml.TokenManager;
    hello guys:
         I've tried to import the mxmlc compiler to my Eclipse IDE, but failed .
         and I found that the classes below seems to be missed,even in the http website   http://opensource.adobe.com/svn/opensource/flex/sdk/trunk/
    import flex2.compiler.mxml.Parser;
    import flex2.compiler.mxml.ParserConstants;
    import flex2.compiler.mxml.Token;
    import flex2.compiler.mxml.TokenManager;
         do you have any ideas or suggestions ?
         any suggestions or references are appreciated.thx!

    hello :
          thanks James for reminding me about that.These files seems to be generated by Ant
         thanks for that

  • Mxmlc compiling issue

    I have done quite a few things with Alchemy using multiple C
    files and only a single AS file that is not part of a larger
    package. Now I am trying to use some compiled C code, namely
    audioModule.swc, which is my compiled C code for some audio
    processing that I only need with CreateRoom.as in my larger com
    package. I keep getting the following error when I run the command
    below. I did a google search on this and nothing came up to be very
    helpful. Am I just being stupid here? What am I doing wrong?
    Code that I run:
    mxmlc -library-path+=audioModule.swc --target-player=10.0.0
    com/RoomCreation/CreateRoom.as
    Output I get back:
    Loading configuration file
    /Users/tdoll/Documents/Alchemy/flex_sdk_3/frameworks/flex-config.xml
    /Users/tdoll/Desktop/CS3 Stuff/Hide and Speak with
    Alchemy/com/RoomCreation/CreateRoom.as: Error: A file found in a
    source-path must have the same package structure '', as the
    definition's package, 'com.RoomCreation'.
    Here is a snippet from CreateRoom.as:
    package com.RoomCreation {
    import flash.display.MovieClip;
    // remove some general classes from here
    import cmodule.audioModule.CLibInit;
    public class CreateRoom extends MovieClip {
    Any help is appreciated!!! Thanks!

    Ok, I would try not to use the system name for the font, but
    rather use a specific path to the font's file. For example, in the
    @font-face declaration, instead of:
    src: local( "Verdana" );
    Use something like (your path might be different):
    src: url( "../assets/fonts/Verdana.ttf" );
    There's a section in the docs called "Locating Embedded
    Fonts" (
    http://livedocs.adobe.com/flex/3/html/help.html?content=fonts_04.html)
    that explains the difference in detail. I always try to use the url
    rather than local attribute because it's more reliable and not at
    all system-dependent.
    hth,
    matt horn
    flex docs

  • Local configuration files - mxmlc compiler

    I'm baffled by the inability to override configuration
    variables in a local config file (i.e. myApp-config.xml) that have
    been defaulted in flex-config.xml. For example, I have a unit test
    runner application where I want to set 'verbose-stacktraces' to
    true, but since this is defaulted in flex-config.xml I get an error
    that the variable 'verbose-stacktraces' must only be set once. The
    livedocs lead you to believe that you can override any variable. Is
    this as designed or a bug?

    Ok, so I dug a little deeper and you're partially right. My
    local config file looked like this when I got the error message:
    <compiler>
    <allow-source-path-overlap>true</allow-source-path-overlap>
    <library-path append="true">
    <path-element>lib/swc</path-element>
    </library-path>
    <source-path append="true">
    <path-element>locale/{locale}</path-element>
    </source-path>
    <verbose-stacktraces>true</verbose-stacktraces>
    </compiler>
    I found that if I moved the <verbose-stacktraces> tag
    to be the first child node under the compiler tag the compilation
    worked just fine. I'm not sure why it's reacting to where tags are,
    but I'm just happy that it works if ordered correctly. It would
    help if the livedocs mentioned this as well.
    FYI, I'm running the mxmlc command line compiler with Flex
    2.0.1.

  • Custom Compile time parameter

    hi
    i try to add the svn version to my flex gui. so i have to add this information during compiling.
    question 1) can i a custom parameter during compile time. if yes how can i access this value in my flex app?
    question 2) i could use the compile parameter "metadata.title". how can i access this value inside my flex app?
    thanks for your help.
    cheers joe

    http://livedocs.adobe.com/flex/3/html/help.html?content=compilers_21.html

  • FlexUnit not generating TestRunner.swf when compiled with Hudson / Ant

    I've been dabbling with FlexUnit (4.1 RC2) and CI under Hudson. To that effect, I chose to test the server configuration with the sample CI project that comes with the 4.1 RC2 distribution of FlexUnit, and compiling the project with Hudson (now Jenkins after most recent update) and Ant (1.8). It doesn't work because it does not seem to compile the TestRunner swf. After exploring the artifacts in the workspace, it appears that the TestRunner mxml file is created as you would expect, but then the mxmlc compiler is seemingly silently failing to complete the compile step.
    It's worth noting at this point that compiling on my local dev machine does work (as it does on a half dozen other dev machines), also, the Hudson configuration is good for compiling other Flash projects. So mxmlc from the Flex SDK is setup and compiling other projects successfully.
    Here's the first part of the build log from Hudson / Jenkins as it tries to compile the sample project:
    compile:
        [mxmlc] Loading configuration file /opt/flex/frameworks/flex-config.xml
    test:
    [flexunit] Validating task attributes ...
    [flexunit] Generating default values ...
    [flexunit] Using the following settings for compilation:
    [flexunit]      FLEX_HOME: [/opt/flex]
    [flexunit]      player: [flash]
    [flexunit]      sourceDirectories: ["/var/lib/jenkins/jobs/FlexUnit4SampleCIProject/workspace/FlexUnit4SampleCIProject/src/main/flex"]
    [flexunit]      testSourceDirectories: ["/var/lib/jenkins/jobs/FlexUnit4SampleCIProject/workspace/FlexUnit4SampleCIProject/src/test/flex"]
    [flexunit]      libraries: ["/var/lib/jenkins/jobs/FlexUnit4SampleCIProject/workspace/FlexUnit4SampleCIProject/libs/flexunit-4.1.0_RC2-4-as3_4.1.0.16076.swc","/var/lib/jenkins/jobs/FlexUnit4SampleCIProject/workspace/FlexUnit4SampleCIProject/libs/flexunit-aircilistener-4.1.0_RC2-4-4.1.0.16076.swc","/var/lib/jenkins/jobs/FlexUnit4SampleCIProject/workspace/FlexUnit4SampleCIProject/libs/flexunit-cilistener-4.1.0_RC2-4-4.1.0.16076.swc","/var/lib/jenkins/jobs/FlexUnit4SampleCIProject/workspace/FlexUnit4SampleCIProject/libs/flexunit-uilistener-4.1.0_RC2-4-4.1.0.16076.swc"]
    [flexunit] Found SDK version: 4
    [flexunit] Created test runner at [/var/lib/jenkins/jobs/FlexUnit4SampleCIProject/workspace/FlexUnit4SampleCIProject/target/bin/TestRunner.mxml]
    [flexunit] Compiling test classes: [org.flexunit.demo.EchoPanelTest, org.flexunit.demo.SampleTest]
    [flexunit] Executing '/var/lib/jenkins/tools/JDK_6/jre/bin/java' with arguments:
    [flexunit] '-Xmx256M'
    [flexunit] '-jar'
    [flexunit] '/opt/flex/lib/mxmlc.jar'
    [flexunit] '+flexlib'
    [flexunit] '/opt/flex/frameworks'
    [flexunit] '-output'
    [flexunit] '/var/lib/jenkins/jobs/FlexUnit4SampleCIProject/workspace/FlexUnit4SampleCIProject/target/bin/TestRunner.swf'
    [flexunit] '-source-path'
    [flexunit] '/var/lib/jenkins/jobs/FlexUnit4SampleCIProject/workspace/FlexUnit4SampleCIProject/src/main/flex'
    [flexunit] '/var/lib/jenkins/jobs/FlexUnit4SampleCIProject/workspace/FlexUnit4SampleCIProject/src/test/flex'
    [flexunit] '-library-path+=/var/lib/jenkins/jobs/FlexUnit4SampleCIProject/workspace/FlexUnit4SampleCIProject/libs/flexunit-4.1.0_RC2-4-as3_4.1.0.16076.swc'
    [flexunit] '-library-path+=/var/lib/jenkins/jobs/FlexUnit4SampleCIProject/workspace/FlexUnit4SampleCIProject/libs/flexunit-aircilistener-4.1.0_RC2-4-4.1.0.16076.swc'
    [flexunit] '-library-path+=/var/lib/jenkins/jobs/FlexUnit4SampleCIProject/workspace/FlexUnit4SampleCIProject/libs/flexunit-cilistener-4.1.0_RC2-4-4.1.0.16076.swc'
    [flexunit] '-library-path+=/var/lib/jenkins/jobs/FlexUnit4SampleCIProject/workspace/FlexUnit4SampleCIProject/libs/flexunit-uilistener-4.1.0_RC2-4-4.1.0.16076.swc'
    [flexunit] '-headless-server=true'
    [flexunit] '/var/lib/jenkins/jobs/FlexUnit4SampleCIProject/workspace/FlexUnit4SampleCIProject/target/bin/TestRunner.mxml'
    [flexunit]
    [flexunit] The ' characters around the executable and arguments are
    [flexunit] not part of the command.
    [flexunit]
         [null] Loading configuration file /opt/flex/frameworks/flex-config.xml
    After this line I would expect another line indicating the swf output and the size of the file - as I see in the build log on my dev machine - but that never happens because mxmlc never writes the swf. I have no idea why this fails.
    Then there is a bunch of other stuff to do with attempting to launch the test with Xvnc:
    [flexunit] Using the following settings for the test run:
    [flexunit]      FLEX_HOME: [/opt/flex]
    [flexunit]      haltonfailure: [false]
    [flexunit]      headless: [false]
    [flexunit]      display: [99]
    [flexunit]      localTrusted: [true]
    [flexunit]      player: [flash]
    [flexunit]      port: [1024]
    [flexunit]      swf: [/var/lib/jenkins/jobs/FlexUnit4SampleCIProject/workspace/FlexUnit4SampleCIProject/target/bin/TestRunner.swf]
    [flexunit]      timeout: [60000ms]
    [flexunit]      toDir: [/var/lib/jenkins/jobs/FlexUnit4SampleCIProject/workspace/FlexUnit4SampleCIProject/target/report]
    [flexunit] Setting up server process ...
    [flexunit] Starting server ...
    [flexunit] Opening server socket on port [1024].
    [flexunit] Waiting for client connection ...
    [flexunit] Entry [/var/lib/jenkins/jobs/FlexUnit4SampleCIProject/workspace/FlexUnit4SampleCIProject/target/bin] already available in local trust file at [/var/lib/jenkins/.macromedia/Flash_Player/#Security/FlashPlayerTrust/flexUnit.cfg].
    [flexunit] Executing 'gflashplayer' with arguments:
    [flexunit] '/var/lib/jenkins/jobs/FlexUnit4SampleCIProject/workspace/FlexUnit4SampleCIProject/target/bin/TestRunner.swf'
    [flexunit]
    [flexunit] The ' characters around the executable and arguments are
    [flexunit] not part of the command.
    [flexunit]
    [flexunit]
    [flexunit] Error: Invalid SWF file name
    [flexunit]
    [flexunit]
    [flexunit] Stopping server ...
    [flexunit] End of test data reached, sending acknowledgement to player ...
    [flexunit] Closing client connection ...
    [flexunit] Closing server on port [1024] ...
    But of course by this point we're toast because mxmlc has not output the TestRunner swf, so the filename is invalid. If anyone has any idea what's wrong, or any suggestions on things to try, please let me know, we're desperate!!
    Thanks for your time.

    Try ensuring the flash player on the server is definitely the Flash Debugger, also you have set headless to false, it needs to be true.

  • Error: Could not find compiled resource bundle 'components' for locale 'en_US'

    We are porting a fairly large body of Flex3 code developed under FlexBuilder 3 to Flex4 under FlashBuilder 4.  Most of the conversion appears to be working fine, with one exception.  When I launch the Flex4 version, all my data interchanges with the server works.  Just as it is about to show the UI, the following error occurs:
         Error: Could not find compiled resource bundle 'components' for locale 'en_US'
    I am actually using a locale of fr_FR, but I assume it couldn't find that, reverted to en_US, failed again and then barfed.  If I look in
         ~Adobe Flash Builder 4\sdks\4.0.0\frameworks\locale\fr_FR
    I see a lot of swc files, and of course no 'components.swc'.  I believe the problem is that our Flex3 code is using mx components, and the compatibility mode is not properly handling it for some reason.  I think this is mostly from our in-house UI library.  The properties for that library (and for my main app I am testing now) have:
         - Use default SDK (currently "Flex 4.0")
         - Use Flex 3 compability mode
         - Use minimum version (Flash Player) required by the Flex SDK
         - Enable strict type checking
         - Enable warnings
    I also tried putting the compatibility flag in the mxmlc compile line, with no change in behavior.  This project is built by the following script:
    ruby scripts/concat_properties.rb -o resources.properties ^
         src/main/flex/locale/fr_common/res_myname_fr_common.properties ^
         src/main/flex/locale/fr_common/scout/res_myname_scout_fr_common.properties ^
         src/main/flex/locale/fr_fr/res_myname_fr_fr.properties ^
         ../../scout/common/src/locale/fr_common/mypals/resources.properties
    mxmlc -locale=fr_FR -source-path=. ^
         -compatibility-version=3.0.0. ^
         -static-rsls=true ^
         -include-resource-bundles=resources ^
         -output src/main/resources/bundles/mypals/fr_fr_resources.swf
    copy src\main\resources\bundles\mypals\fr_fr_resources.swf ^
         bin-debug\bundles\mypals
    What have I missed???

    You have two posts. I will try to answer each completely.  Second one first. You say I should change my build to include the framework resources.  I am afraid I am not sure which and what to do there.  We combine all our properties file into one large one, then use the following build line:
    mxmlc -locale=fr_FR,en_US -source-path=. ^
         -compatibility-version=3.0.0. ^
         -static-rsls=true ^
         -include-resource-bundles=resources ^
         -output src/main/resources/bundles/mypals/fr_fr_resources.swf
    I am assuming you are telling me to change the "-include-resource-bundles" line, but what to add?  The "sdks\4.0.0\frameworks\locale\en_US" holds 13 swf files.  I tried adding that entire folder (along with the fr_FR folder) to the project library path (in the project properties dialog), but that made no change.  I also tried reverting the library path tab back to "MX Only" instead of "MX + Spark", but again no change.
    ====================
    For your first message, I did a search for 'spark' in the entire project.  It only existed on 3 lines, each at the start of css files:
        @namespace s "library://ns.adobe.com/flex/spark";
    I had put those in based on reading needed changes to naming in CSS.  Since I was not actually using any spark ('s') components yet, I removed these lines.  The entire project now does not have the word 'spark' anywhere in it. No change in behavior (as I expected).
    I did a search for "s:" throughout the project.  That does exist in probably 100 places, but all are legitimate. Things like (xmlns:mx="http://www.adobe.com/2006/mxml") or variable names ("var matches:Object").  No reference to any s: object.  (While on the topic, why does FlashBuilder still not have a "whole word" box to limit searches??).
    Note that when I first reported this problem, the compiler was set to ONLY support fr_FR.  In fighting this, I changed it to "en_US,fr_FR" hoping that would tell the compiler to load whatever en_US items it was looking for.  We really do not want any English support in this version. (We do have another SWF created with only support for en_US, and another for en_UK, etc.  Each language is a separate node on our server, so there is no need to mix & match at runtime)
    The console shows a lot of swf loads that I do not understand...
    The console output shows (my comments after ==> indicator)
    [SWF] C:\ConnectedProducts\common-web\myname\bin-debug\myname.swf - 2,229,992 bytes after decompression
                 ==> our locale is set here, after the above load and before the next line
    Look for name file at: ./data/fr_fr/names.csv
    [SWF] C:\ConnectedProducts\common-web\myname\bin-debug\myname.swf - 21,200 bytes after decompression
    Loaded 2278 names.       ==> indicates successful load of data retrieved from server
    Loaded 154 bad words     ==> our second data set has been retrieved and loaded
    [SWF] C:\ConnectedProducts\common-web\myname\bin-debug\styles\mypals_style.swf - 58,777 bytes after decompression
    [SWF] C:\ConnectedProducts\common-web\myname\bin-debug\styles\mypals_style.swf - 322,606 bytes after decompression
    [SWF] C:\ConnectedProducts\common-web\myname\bin-debug\bundles\mypals\fr_fr_resources.swf - 595,025 bytes after decompression
    [SWF] C:\ConnectedProducts\common-web\myname\bin-debug\styles\mypals_style.swf - 202,168 bytes after decompression
        ==> not sure what this next warning means.  I'm guessing I will later have to research it and return to 'secure' comm with server, but I'm ignoring for now
    Warning: Ignoring 'secure' attribute in policy file from http://fpdownload.adobe.com/pub/swz/crossdomain.xml.  The 'secure' attribute is only permitted in HTTPS and socket policy files.  See http://www.adobe.com/go/strict_policy_files for details.
    Resource bundle loaded for locale fr_fr  ==> at this point, we appear to have our French assets loaded successfully
    [SWF] C:\ConnectedProducts\common-web\myname\bin-debug\styles\mypals_style.swf - 202,168 bytes after decompression
    [SWF] C:\ConnectedProducts\common-web\myname\bin-debug\styles\mypals_style.swf - 1,303,976 bytes after decompression
    [Unload SWF] C:\ConnectedProducts\common-web\myname\bin-debug\myname.swf  ==> some runs see this, but others do not. I expect it is a timing issue of whether it is reached or not before the crash
    [SWF] C:\ConnectedProducts\common-web\myname\bin-debug\styles\mypals_style.swf - 794,898 bytes after decompression
    [SWF] C:\ConnectedProducts\common-web\myname\bin-debug\styles\mypals_style.swf - 194,635 bytes after decompression
    [SWF] C:\ConnectedProducts\common-web\myname\bin-debug\styles\mypals_style.swf - 261,589 bytes after decompression
    ==> everything looks fine up to here.  This is then when the third call to installCompiledResourceBundles occurs
    Error: Could not find compiled resource bundle 'components' for locale 'en_US'.
        at mx.resources::ResourceManagerImpl/installCompiledResourceBundle()[E:\dev\4.0.0\frameworks \projects\framework\src\mx\resources\ResourceManagerImpl.as:340]
        at mx.resources::ResourceManagerImpl/installCompiledResourceBundles()[E:\dev\4.0.0\framework s\projects\framework\src\mx\resources\ResourceManagerImpl.as:269]
        at mx.core::FlexModuleFactory/installCompiledResourceBundles()
        at mx.core::FlexModuleFactory/docFrameHandler()
        at mx.core::FlexModuleFactory/docFrameListener()

  • Embed + compiler define works different with air 3.7+ comparing to 3.5

    Hello.
    I've noticed that new compiler works differently when using construct Embed with conditional compilation (comoiler define option).
    It looks like new compiler always embeds files in output swf even if Embed construct is used in dead code. Here is full example:
    package {
      import flash.display.MovieClip;
      public class Main extends MovieClip {
        CONFIG::FOO {
          [Embed(source="foo.mp3")]
          public static var MusicTrack: Class;
        CONFIG::BAR {
          [Embed(source="bar.mp3")]
          public static var MusicTrack: Class;
    I have 2 files: foo.mp3 (~2MB) and bar.mp3 (~2.3MB). I want to embed only one of them defining CONFIG::FOO as true and CONFIG::BAR as false.
    When I compile it using AIR 3.5 with following command I get (as expected) file with size ~2.0MB:
    /opt/adobe_sdks/flex_sdk_4.6_AIR_3.5/bin/mxmlc -compiler.source-path . -swf-version 14 -define=CONFIG::FOO,true -define=CONFIG::BAR,false -o Main.swf -- Main.as
    /private/tmp/bug/Main.swf (2030814 bytes)
    But when I use newer AIR sdk (I tried with 3.7, 3.8 and 4.0 beta) I'm getting file with size ~4.3MB.
    /opt/adobe_sdks/AIR_4.0/bin/mxmlc -compiler.source-path . -swf-version 14 -define=CONFIG::FOO,true -define=CONFIG::BAR,false -o Main.swf -- Main.as
    4328386 bytes written to /private/tmp/bug/Main.swf in 9,634 seconds
    Is it expected behaviour? Is there any chance that new compiler will work in this case the same as older one?

    Another difference I encountered is that using compiler definition directly in Embed construction doesn't work. Here is example:
    public class Assets {
      [Embed(source=CONFIG::MUSIC_MP3_PATH)]
      public static var MusicTrack: Class;
    Then I pass option to the compiler:
    -define=CONFIG::MUSIC_MP3_PATH,"'sfx/music.mp3'"
    With AIR 3.5 SDK it works fine. With AIR 3.7, 3.8 and 4.0 beta I'm getting file which is smaller in size (by mp3 file size) and when running I get error: TypeError: Error #1007: Instantiation attempted on a non-constructor. (when it tries to create new instance of MusicTrack).

  • Deprecated parameter PLSQL_DEBUG

    I am compliling a procedure using 11g. I get two warnings:
    Warning(1): PLW-06013: deprecated parameter PLSQL_DEBUG forces PLSQL_OPTIMIZE_LEVEL <= 1
    Warning(1): PLW-06015: parameter PLSQL_DEBUG is deprecated; use PLSQL_OPTIMIZE_LEVER = 1
    What does this mean? Should I do as suggested or should I look for something wrong with my code?

    I had a quick play with this but couldn't reproduce it in 11.2.0.1.
    SQL> alter session set plsql_warnings='enable:all';
    SQL> alter package testit compile plsql_debug=true;
    SP2-0809: Package altered with compilation warnings
    SQL> show errors package testit;
    Errors for PACKAGE TESTIT:
    LINE/COL   ERROR
    0/0        PLW-06013: deprecated parameter PLSQL_DEBUG forces PLSQL_OPTIMIZE_LEVEL <= 1
    0/0        PLW-06015: parameter PLSQL_DEBUG is deprecated; use PLSQL_OPTIMIZE_LEVEL = 1So far so good. But then the issue goes away when I recompile.
    SQL> alter package testit compile;
    Package altered.
    SQL> show errors package testit;
    No errors.I tried setting PLSQL_DBUG at the session level, but still no warnings:
    SQL> alter session set plsql_ccflags = 'PLSQL_DEBUG:TRUE';
    Session altered.
    SQL> alter package testit compile;
    Package altered.
    SQL> show errors package testit;
    No errors.Wondering what I'm missing - perhaps some session or package-level setting that retains the compilation parameter?
    Anything odd in user_plsql_object_settings for the package?

  • Command-line Compilation of Photoshop Panels

    Hello,
    I'm attempting to create a Photoshop Panel using the Flex SDK and the mxmlc compiler.  I'd really love to avoid Flash Builder.  Here is the compilation line and the resulting error:
    ~/dev/shared/flex/bin/mxmlc --show-actionscript-warnings=true --strict=true -include-libraries=CSXSLibrary-2.0-sdk-3.4.swc -load-config=config.xml gridpanel.mxml
    Loading configuration file /Users/justin/dev/me/photoshop/gridpanel/config.xml
    /Users/justin/dev/me/photoshop/gridpanel/CSXSLibrary-2.0-sdk-3.4.swc(mx.core:IWindow)
    Error: Type was not found or was not a compile-time constant: NativeWindow.
    /Users/justin/dev/me/photoshop/gridpanel/CSXSLibrary-2.0-sdk-3.4.swc(mx.events:FlexNativeMenuEvent)
    Error: Type was not found or was not a compile-time constant: NativeMenu.
    /Users/justin/dev/me/photoshop/gridpanel/CSXSLibrary-2.0-sdk-3.4.swc(mx.events:FlexNativeMenuEvent)
    Error: Type was not found or was not a compile-time constant: NativeMenuItem.
    /Users/justin/dev/me/photoshop/gridpanel/CSXSLibrary-2.0-sdk-3.4.swc(mx.controls:HTML)
    Error: Type was not found or was not a compile-time constant: HTMLHistoryItem.
    /Users/justin/dev/me/photoshop/gridpanel/CSXSLibrary-2.0-sdk-3.4.swc(mx.controls:HTML)
    Error: Type was not found or was not a compile-time constant: HTMLUncaughtScriptExceptionEvent.
    /Users/justin/dev/me/photoshop/gridpanel/CSXSLibrary-2.0-sdk-3.4.swc(mx.controls:HTML)
    Error: Type was not found or was not a compile-time constant: HTMLHost.
    /Users/justin/dev/me/photoshop/gridpanel/CSXSLibrary-2.0-sdk-3.4.swc(mx.controls:HTML)
    Error: Type was not found or was not a compile-time constant: HTMLHost.
    /Users/justin/dev/me/photoshop/gridpanel/CSXSLibrary-2.0-sdk-3.4.swc(mx.managers:NativeDragManagerImpl)
    Error: Type was not found or was not a compile-time constant: NativeDragEvent.
    I don't have too much experience with Flex, but I'm guessing the CSXS library is using mx.* components that I haven't linked against.
    Here is the config file I'm using.  My flex SDK is located at "/Users/justin/dev/shared/flex/", hence the absolute paths in the config file.
    Out of desperation, I downloaded Flash Builder to see if I could inspect what compilation command it was running.  I had it dump the config file it was generating, and attempted to use it (it looks almost identical) and I ended up with the same error when trying to compile from the command line.
    For the sake of completness, I have a super basic MXML file.
    <?xml version="1.0" encoding="UTF-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
    <!-- Copyright 2010 __MyCompanyName__. -->
    </mx:Application>
    Have any idea what I might be missing?
    - Thanks

    I had an HTML Class instantiated on my code, which is part of air framework. Removing it, all works.

  • Can I distribute the open source SWF compiler with my application?

    I'm unclear reading the documentation if there is a difference between Adobe's official Flex SDK, and the open source version?
    Can I distribute the open source SWF compiler with my application?
    I have a flash application that users can change the fonts being displayed, if they supply the fonts in a compiled SWF. I found I can let the user select a font from their computer system, and using the mxmlc command I can easily generate a SWF with the font, which can be loaded by my application so the font will be part of the run time application when played on systems without that font already in the System fonts.
    I was wondering if I could distribute the open source SDK so that I could compile these font SWFs for the user so they would not have to get involved in complicated Flash development. The audience is non Flash audience.
    I tried using SWFMill but the fonts don't seem to work as they do with the mxmlc compile.
    Thank you,
    Scott Kerr

    Moreover check also the compatibility of your open source license with MPL
    Regards, Giuseppe

  • How to make same binaries using mxmlc, without timestamp?

    It seems like mxmlc generates different binary even when the source code is not changed.
    for, example,
    // Test.as
    package
        public class Test { }
    and when i run mxmlc like this :
    mxmlc Test.as -output case1.swf
    mxmlc Test.as -output case2.swf
    and case1.swf and case2.swf is different!
    I found that mxmlc sets metadata and some timestamp in .swf file,
    I could get the same binary by "unpacking" .swf, removing timestamp, and manually re-pack it.
    ( http://stackoverflow.com/questions/5632318/mxmlc-generates-different-binary-on-same-source )
    But it'll be happier when there is a special switch which generates same binary data ( That means, if mxmlc removes all timestamp and metadata which generated in compile time ) !
    Is there any way to do it, or should i build specialized mxmlc compiler?

    Have you get some thing about it?
    i am confused with this ,too
    Email:[email protected]

  • Error compiling imported themes

    I have imported a theme file into my project. I tried then to
    compile it by right clicking the .css file. There was no message
    given. I tried doing it then at the command line, and I get a
    strange error from the mxmlc compiler:
    /Applications/Adobe\ Flex\ Builder\ 3/sdks/3.2.0/bin/mxmlc
    -include-libraries=ReachOverActivitiesv2Shadow.swc
    ReachOverActivitiesv2Shadow.css
    Loading configuration file /Applications/Adobe Flex Builder
    3/sdks/3.2.0/frameworks/flex-config.xml
    /Users/wbathurs/Documents/Flex Builder
    3/v1/src/assets/skins/ReachOverActivitiesv2Shadow.css(4): Error:
    Unable to create source
    ReachOverActivitiesv2Shadow__embed_css__138563797.
    borderSkin: Embed(skinClass="ReachOverActivitiesv2Shadow");
    Any ideas?

    here is the WSDL file for reference
    <definitions
    name="FTPOrderReceive"
    targetNamespace="http://xmlns.oracle.com/FTPOrderReceive"
    xmlns="http://schemas.xmlsoap.org/wsdl/"
    xmlns:ns1="http://schemas.oracle.com/bpel/extension"
    xmlns:plnk="http://schemas.xmlsoap.org/ws/2003/05/partner-link/"
    xmlns:client="http://xmlns.oracle.com/FTPOrderReceive"
    >
    <import namespace="http://schemas.oracle.com/bpel/extension" location="http://localhost:8889/orabpel/xmllib/RuntimeFault.wsdl"/>
    <types>
    <schema xmlns="http://www.w3.org/2001/XMLSchema">
    <import namespace="http://xmlns.oracle.com/FTPOrderReceive" schemaLocation="FTPOrderReceive.xsd"/>
    </schema>
    </types>
    </definitions>
    No errors are shown for the file. I've read several posts that indicate this should work, but it is not playing. There must be something else that needs doing but I cannot figure it out. The generation of the various descriptors, deployment files etc does not seem to be quite hanging together in JDev.

Maybe you are looking for

  • Updated to 10.5.1, now apple menu commands don't work

    Hi, updated to 10.5.1, and now when I choose "About This Mac", "Restart", "Shutdown", or "Logout", I just get the spinning beach ball for a few seconds, and then nothing else happens. No dialogs, no restart... the only way I can restart is to either

  • QuickTime 7.3.1 will not install on Tiger. Anyone else experiencing this?

    I updated my computer's software yesterday. The computer successfully updated iTunes, iPhoto, GarageBand, and the update to 10.4.11. The problem is when the computer went to install QuickTime 7.3.1, it had an error and did not install. Therefore, Gar

  • Selecting display screen and resolution for L540 and other thinkpads ?

    What is the difference between different types of displays : 15.6 " TFT HD (1366 X 768), 15.6 " FHD (1920 X 1080), 15.6 " HDD (1366 X 768) ? I am planning to purchase a 15.6 " Thinkpad but I am not able to decide which type of display to get. FHD dis

  • TIFF files not placing/placing as blank images in InDesign CC

    I'm working on a large catalog and am having issues with just one of the TIFF files I'm trying to place out of 300+ that have all been saved the same way in Photoshop. When I try to replace the image within it's original bounding box, it erases anyth

  • Audigy 2zs tort

    Eax is not detecting my sound card and will not work! Creative Media Source is not working, and I can't perform a clean sweep / reinstall of CMS and Creative System Information. The "add/remove" in control panel will not uninstall Creative Media Sour