-keep-generated-actionscript Compiler Option Question

I'm trying to learn how Actionscript works. I turned on the -keep-generated-actionscript compiler option so that I could see the generated actionscript for an ItemRenderer I'm creating.
Should I:
1. directly edit the generated file, or
2. use the generated file as a reference for creation of my own ItemRenderer class file.
I'm thinking the latter, right?
all feedback appreciated!
many thanks,
Mark

You can do either, but there are AS item renderers in the SDK that are
better reference implementations.

Similar Messages

  • [svn] 1967: * Fixed issue where -keep-generated-actionscript would not work

    Revision: 1967
    Author: [email protected]
    Date: 2008-06-05 08:12:21 -0700 (Thu, 05 Jun 2008)
    Log Message:
    * Fixed issue where -keep-generated-actionscript would not work
    properly when -generate-abstract-syntax-tree was enabled, which is
    now the default.
    tests Passed: checkintests
    Needs QA: YES
    Needs DOC: NO
    API Change: NO
    Reviewer: clucier
    Code-level description of changes:
    CompilerConfiguration.java
    Modified setKeepGeneratedActionScript() to force AST generation
    off when the value is true.
    Modified Paths:
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/common/CompilerConfiguration.java

    Remember that Arch Arm is a different distribution, but we try to bend the rules and provide limited support for them.  This may or may not be unique to Arch Arm, so you might try asking on their forums as well.

  • [svn:fx-trunk] 12077: Although Spark RichText does not support link formats , modifying compiled FXG to not generate ActionScript code that will cause compile time exceptions .

    Revision: 12077
    Revision: 12077
    Author:   [email protected]
    Date:     2009-11-20 18:16:32 -0800 (Fri, 20 Nov 2009)
    Log Message:
    Although Spark RichText does not support link formats, modifying compiled FXG to not generate ActionScript code that will cause compile time exceptions.
    Removing references to Flex Builder 3 in RPC.
    QE notes: N/A
    Doc notes: N/A
    Bugs:
    SDK-24305 - Link format property nodes cause errors on RichText in FXG 2.0
    SDK-24322 - A couple references to Flex Builder 3 in Flex 4 LangRef (and code comments)
    Reviewer: Deepa
    Tests run: checkintests
    Is noteworthy for integration: No
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-24305
        http://bugs.adobe.com/jira/browse/SDK-24322
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/xml/XMLDecoder.as
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/fxg/FlexFXG2SWFTranscoder.java

  • Problems keeping generated java files

    hi!
              I have a war containing a lot of jsp files.
              I want those files to be precompiled when I start my server, only if the war file has changed.
              I also want to keep the generated files,
              So that the next time I start the server
              It won't need to precomile them (unless changed, ofcourse).
              I set the "keepgenerated" flag and "precompile" flag to true, in the weblogic.xml file.
              i also added:
              <context-param>
              <param-name>weblogic.jsp.keepgenerated</param-name>
              <param-value>true</param-value>
              </context-param>
              in the web.xml
              but everytime I start up the server, it deletes all
              the old generated files, and precompiles my jsp all over again.
              I also tried not using the pre-compilation option at all,
              just to see the effect that "keepgenerated" flag had,
              but the generated files were still removed each time i restarted the server.
              Is it at all possible to keep those files?
              If so, how?
              thanx,
              Einav
              

              I tried using jspc to precompile the jsp files and deploy the resulting class files
              (and the jsp files). This way the server never regenerates the files or compiles
              the servlets.
              

  • Flex 4 lacks the default-background-color compiler option?

    Hello,
    started converting my Flex 3 applications to Flex 4 and noticed that Flex 4 lacks the default-background-color compiler option.
    Flex 3 has it: http://livedocs.adobe.com/flex/3/html/help.html?content=compilers_14.html
    Flex 4 doesn't: http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf69084-7a92.html
    This raises a question: how am I supposed to keep my background from flashing from grey to white when the RIA is loaded? Is it possible to use preloader with background set to whatever color I like to see? Any easier solutions?
    Best regards,
    Jukka

    This works for me:
    @namespace mx "library://ns.adobe.com/flex/mx";
    mx|Application{
         background-color:#ffffff;
    Of course if you have changed the Application element to spark equivalent, you have to change the namespace.
    Regards,
    Jukka

  • Default Compiler Options

    Hi,
    We would like to keep generated VC portal content in a format that is consistent with the rest of the portal.  We can see how to control the location and naming convention that VC uses on an individual basis from within the Tools > Options > Compiler tab, but is there a way of setting it up to use our custom values by default?  Ideally, we don't want to force every new user to adjust it.
    Any help would be much appreciated.
    Thanks,
    Jon

    Hi Jon,
    Unfortunately thats not possible. As Visual composer has its onw settings and compilationoptions, it needs to be done individually.
    Regards,
    Pranav.

  • Passing extra compiler options to flexunit ANT task?

    Hi,
    Is there a way to send any extra compiler options to the <flexunit> ANT task?
    I'm using conditional compilation and compilation (mxmlc) is failing from the <flexunit> task:
    "Error: Access of undefined property DEBUG.
    CONFIG::DEBUG {"
    I tried sneaking "-define+=CONFIG::DEBUG,false" in with one of the other compiler options you can set on the <flexunit> task, but that just doesn't work or results in a validation error like this:
    "One of the directories specified as a 'testSource' element does not exist."
    Let me know if this is possible at all.
    Thanks,
    Wijnand

    Hi Brian,
    legrosb wrote:
    @Wijnand - Sorry for the belated response.
    Not late at all! I think a response within a day on a forum is quite fast!
    legrosb wrote:
    I thought I had captured this on the wiki, but it looks like I haven't, so thank you for the heads up.
    I'll also update the wiki @ http://docs.flexunit.org/index.php?title=Ant_Task to be more detailed regarding compilation so other don't have to dig. 
    Did you just do an update on that Wiki page or did I completely miss the part that explained the <flexunit> parameters?
    legrosb wrote:
    In 4.2, which is super pre-alpha right now, I've added support to accept a series of flex-config.xml files provided by the user.  Not sure if conditional compilation can be tackled with a custom flex-config.xml file, but if so then that'd be the feature that may help you.
    Yes, being able to add (+=) a custom config file will solve this problem for me. You can define properties and values like this:
    <flex-config>
        <compiler>
            <define>
                <name>CONFIG::DEBUG</name>
                <value>false</value>
            </define>
        </compiler>
    <flex-config>
    So in your AS code you can use:
    CONFIG::DEBUG {
        // Do something that only should be done in debug mode.
    I have another question, I ran into this one during testing my SWF with flexunit.
    unittest.xml:82: java.util.concurrent.ExecutionException: command [<testcase classname='com.tuenti.video.unittest.testcase.player::MockPlayerCase' name='loadPlayer' time='0.000'  status='success'/>] not understood
    I had a look at the FlexUnitSocketThread.parseInboundMessages method that throws this error and it looks like that your defined END_OF_SUCCESS doesn't entirely match what the SWF is spitting out. They are of by 1 space: END_OF_SUCCESS is defined as: "status=\"success\" />", whereas my SWF spits out the following: "status='success'/>" (single quotes and no space before the closing of the tag).
    It looks like I'm not the only one with the ExecutionException as it is reported on StackOverflow as well: http://stackoverflow.com/questions/3953677/flexunittasks-error-of-command-not-understood
    Cheers,
    Wijnand

  • Compile option is missing in the Packaging wizard

    I need to compile my local app jsp files but the problem is i could not able to find the compile option in the Packaging wizard. Can anyone advice how to compile  ?  The compile option is missing in the packing wizard. I was using it before without any issues but recently i upgraded my machine and need to compile once again.
    I am using oracle 10g lite and my machine is 64 bit.

    Ubuntu 11.xx displays window menus in the control bar at the top of the screen with the switch to the Unity window manager.
    * http://en.wikipedia.org/wiki/Ubuntu_Unity
    Click on Bookmarks/Show All Bookmarks then move your mouse to the left upper corner toward Firefox Web Browser.
    You'll get pop up menu (Organize, Views and Import and Backup).
    *[[/questions/822193]]

  • Updated "Selecting the Best Compiler Options" now available

    The technical article "Selecting the Best Compiler Options" by Darryl Gove has been updated for Sun Studio 12 Update 1 and is now available at:
    http://developers.sun.com/sunstudio/documentation/techart/compiler_flags/
    Here's the abstract:
    +This article suggests how to get the best performance from an
    UltraSPARC or x86/EMT64 (x64) processor running on the latest Solaris
    platforms by compiling with the best set of compiler options and the
    latest compilers. These are suggestions of things you should try, but
    before you release the final version of your program, you should
    understand exactly what you have asked the compiler to do.+

    Ok sorry I've taken so long to respond.  The reply button wouldn't pop up for me to reply!
    There was never a dialog box asking for me to select the program from installed programs when I open the pdf from outlook express.  But when I opened a pdf from my desktop it asked that question and I had it "always use this program to open this type of file." So I assumed that it was would work when opening from outlook express.  But it doesn't.
    I've tried unclicking the protected mode button under the preferences general section.  And finally I'm not sure how to post screenshots of the attachment thumbnail and dialog.  I'm looking all over my keyboard for a button to push I don't have a clue as to what to do!  I do have a print Scr button but when I click on it nothing happens.  I've tried holding down the shift key and the button and the alt key and print scr button but nothing happens.
    Could it be that somehow it's not recognizing ARCO.EXCH.DOCUMENT as that's what it thinks the type of document is?
    I've already created an association for pdf files and it'll open them on my desktop, just not in outlook express.

  • JDev 9.0.3 - problem with compiler options to copy resource file types

    Hello,
    Following a quite strange scenario, I found something bizarre related to the project compile options in 9.0.3 production (I assume the same problem was present way before...)
    Let me first present the facts:
    Assume I have in my project one file named noext (with no extension!) and another one file.verylongext. I know it's not best practice, but let's say they are third party files and I would prefer not to touch them.
    I am able to add them to the project sources, in the specified packages, then I update the Project Settings/Compiler/Resource File Types to Copy to Output Directory.
    But, when I compile, I realize that not all my files were copied to classes/. In fact, if I specify ...;noext;file.verylongext, I get only noext copied, while if I specify ...;file.verylongext;noext, I only get file.verylongext.
    I also tried to use only .verylongext, but the result was exactly the same...
    Of course I can copy the files manually, outside JDev, but this is not best practice neither... :)
    As long as JDev 9.0.3 seems to provide support for filtering the files that will be added to a project (see thread Re: update column for details), I don't really see the purpose of filtering again the files that will be transferred to classes/ (apart from the little bug).
    I think it would be far more useful to have the reverse filter, i.e. "Resource File Types not to Copy to Output Directory". JDev team, would it be possible to have this in 9.0.4?
    Thanks,
    Adrian

    >I tried to reproduce the problem and couldn't.
    Nevermind, I will be back on this when I'll have a simple example.
    >One question, is noext and file.verylongext part of your project?
    Well, you know, since I said I have them in my project, it means that I added them there and I checked that they really were added. No offense...
    >One more question, did you enable Scan Source Path to ... in the input paths panel of the pproject properties?
    No, I did not enable this option, since I see all my files in the project and the only source path is project's src.
    But my real point is related to the enhancement request I made. Given the circumstances,
    could you provide the reverse filter, i.e. "Resource File Types not to Copy to Output Directory", in a future version, maybe 9.0.4?
    Thanks,
    Adrian

  • Javac compiler options

    Could anyone explain the difference between these two javac compile options:
    -source <release> Provide source compatibility with specified release
    -target <release> Generate class files for specific VM version
    Say, I want to make sure my bytecode runs on Java 2 version 1.4 or above, which option should I choose?

    Could anyone explain the difference between these two
    javac compile options:
    -source <release> Provide source compatibility with specified releaseTurns on specific compiler cabilities.
    -target <release> Generate class files for specific VM versionGenerates class files that are compatible with specific versions (the class file
    format has changed somewhat with versions.)
    >
    Say, I want to make sure my bytecode runs on Java 2
    version 1.4 or above, which option should I choose?Well unless you are using 1.5 then you do not use either of the above options.

  • Compiler options to include cert with debug AIR

    Hi,
    I asked this in the media server forum also, but it occurred to me it may be more specific to here: I'm building an AIR app against protected streams with the app recognised by the cert I use to compile.
    This works great, but for debug, the certs aren't included, so I can't see the streams in debug mode.
    Does anyone know any compiler options I can use to force the debugger compile to be authenticated in the same way?
    Thanks,
    G

    I'm having trouble understanding what change in Sun compilers or in Solaris could have resulted in the change in behavior you report.
    For template code, Sun compilers have always used the automatic inclusion model described in the C++ Users Guide section 5.2, "Template Definitions".
    Specifically, if you include a header foo.h that declares one or more templates, the compiler will automatically include foo.cpp (or foo.cc, foo.C, etc) if it needs a definition of one of those templates. That is, it assumes that template definitions missing from foo.h will be in foo.cpp.
    Does that answer your question?

  • Passing compile options in PKGBUILD honoured or overriden?

    Hey there.
    First post. New Arch user here, saying: hello! Been using Linux for years. Recently switched from a .DEB-based distro. Love the rolling release model and pacman and ABS (first time exposure to the latter - I don't even have it in my car!). Thanks for all the good stuff.
    I figured a good way to start using Arch would be to contribute to the Wiki and to build a package or two.
    In the PKGBUILD I submitted, I have:
    make GCCOPTS="-DKERNEL2_1 -D_GNU_SOURCE -O3 -Wall" tleds || return 1
    I included options like -O3 and -Wall verbatim from the Makefile of the original tarball. Do these get overridden by CFLAGS from /etc/makepkg.conf? (I pretty much left it untouched)
    Is -D_GNU_SOURCE even necessary? (it seems to compile without it as well)
    * Edit: changed subject.
    Last edited by MajorTom (2008-10-10 15:10:24)

    tomk wrote:If these options are already in the Makefile, you don't have to pass them explicitly to make. After all, make reads the Makefile.
    In this particular case, the default Makefile needs to be modified or else the app won't work with kernels 2.1.x and up. This is taken care of by the $GCCOPTS variable (defined by the app author in the Makefile) which will pass the "-DKERNEL2_1" compile option to 'make'.
    What I'm unsure of is: the Makefile also specifies "-O3" while /etc/makepkg.conf defines "-O2". Which one wins? Should the PKGBUILD not include that option and in that case would 'make' use "-O2" from the makepkg.conf?
    Moreover, the Makefile includes "-Wall". Can/should this be omited? Does it really matter?
    Asking questions is the only way to learn. Thanks guys!

  • How can I hide the borders and keep it as an option?

    How can I hide the borders and keep it as an option?  I had someone go into the css I believe, and make it so there were no borders visible on the page (I could see the dotted outline while working on it, but when pushed, it wasn't visible (which is what I wanted).  They called it "noborders."  Since I had to reinstall, it went away.  Help?
    I have Dreamweaver CS5.5

    Try this site:  CSS Border
    Add code then type in a zero. Later add border size you want.
    examples:  border: 0px solid black;
    or
    border: 1px 000000;
    or
         border-top-style: solid; 0px 000000;
         border-right-style: dotted; 0px 000000;
         border-bottom-style: solid; 2px 000000;
         border-left-style: dashed; 1px 000000;

  • ITunes 10.6.3 keeps generating incomplete downloads AND it rearranges the order of the playlist when I burn a playlist to an mp3 cd

    iTunes 10.6.3 keeps generating incomplete downloads AND it rearranges the order of the playlist when I burn a playlist to an mp3 cd.
    I purchased an album on iTues from my MAC book Pro & the song downloads were incomplete. The song length shows correctly in the column, but they cut off between 1/4 & 1/2 way through the songs. Now, I dwonloaded it on my iPhone 4 through my itunes account after the purchase & the songs play fine. This happened with the very next song I purchased, as well.
    I got around this issue, then created mp3 versions of all the songs, put them in their own playlist, then "Burned an mp3 disc." When it completed, the songs were in a different order.
    Are there any fixes for either of these problems/bugs?

    iTunes: How to set the play order of songs on an MP3 CD - http://support.apple.com/kb/HT2455

Maybe you are looking for