AS3.0 compiler

Hello,I am a student from China.I want to know which AS3.0 complier used in flash cs5?
waitting  for your help!
Thanks very much!

Oh , I am sorry.the question is which AS3.0 compiler used in flash cs5!
Thank you very much!

Similar Messages

  • Use Alchemy as Standard AS3 Compiler

    Anyone know of a way to do this? Is there a way to pass an actionscript class to Alchemy and have it compile a swf? Or, pass ABC to Alchemy and have it output a swf? I ask because, then we'd essentially have a new actionscript compiler that can perform optimizations the standard compiler cannot. I've read some things about this idea being tossed around inside adobe but nothing current. See:
    http://llvm.org/devmtg/2009-10/Petersen_OptimizingActionScriptBytecode.pdf
    Anyone have any info on this project that is referenced in that presentation called "GlobalOptimizer"? I'm assuming right now that it's an internal Adobe tool. Anyway thanks, really hoping to see some employees chime in on this one!

    That's exactly what I'm referring to but my research shows that the (major) optimization isn't performed by the GCC front end but is rather done by the LLVM once the c/c++ input is converted into LLVM IR code. From what I understand, the IR code (the .a.bc files you'll see if you disable the cleanup portion of the alchemy compilation process) is passed into a flash back end, which doesn't emit flash bytecode but rather a flash .as representation of the LLVM IR, and then the alchemy asc.jar is used to compile it out to actionscript bytecode. Anyway I found out how to make a flash - to - swf compiler with alchemy combined with the packager for iphone, or at least some of the classes from the packager. The packager for iphone already does exactly what I'm trying to accomplish, in other words, it has a AS3 front end for LLVM. From LLVM IR you can basically output native machine code to almost any platform, in this case Adobe just uses to deploy to iphone ARM, and probably also uses the exact same technology for AIR for android. However, the source code for PFI (not sure abotu AIR for android) is closed source and the license prohibits you from decompiling the PFI.jar and extracting the LLVM packages. The license does say that you can request special permission to do this and I have messaged adobe. Waiting for a reply, although I don't think I'll ever get one. I think I might go ahead and get it working just for fun, but I won't be distributing any closed sources or anything because I don't want to piss adobe off. (unless they give permission).

  • As3 compiler error

    package{
      import flash.display.Sprite;
      public class test extends Sprite{
        public function test(){
        public function set data(val:XML):void{
        private function foo(data:XML):void{
          this.data=data;  // compiler don't detect this error
    This code have error (this.data=data) assing to noexist variable
    but Flash Builder don't show error

    one more compiler problem
    package{
    import menu.Foo;
      public class Bar{
         public function Bar(){
         public function some():void{
             var menu:int;
             menu=1;   //  impossible use variable menu; compiler detect menu as package
                            //   but declaration variable menu must hide outer package menu;

  • AS2 swf problem under AS3 swf (probably Tweener problem)

    Hello. I have this problem for a days and it hasn't been soluted yet although I put it on couple of forums. I have 3 files: test.fla, file_as2, file_as3.
    The test.fla file is a typical Loader, which loads external swf files and shows them on the screen. After any key is pressed, the swf is deleted from the screen and loaded again.
    The file_as2 and file_as3 are the AS2 and AS3 compiled having a simple square animation (6 squares fading in from alpha 0 one by one) animated by caurina Tweener. If the file_as3 is compilated and loaded externally there is no problem (six sqares are fading in, after pressing any key the vanish and appear (loaded) again and again...). But if the swf as2 file is loaded, it shows the squares only once and after pressing any key and loading it again, it doesn't shows it at all.
    I guess it's Tweener problem, because when i trace it in AS2 file (onUpdate) it traces only at the beginning.
    How it's possible, that AS3 somehow stops all Tweeners in 2nd time loaded AS2 file?? How to fix it?? Sorry for my english, i left a link for these 3 files to find solution. Try it (test.swf) and then change path inside fla to load AS2 file... Thanks for any ideas.
    Link to download: http://www.filolozka.pl/zip/file.ZIP

    Instead of reusing the same Loader, try loading the AS2 movie multiple times using different Loader instances. Instead of using event listeners like normal, this should be easy to do because you can addChild each Loader instance, and when it is loaded it will automatically play. If you are able to load the AS2 movie multiple times at once and have it work for you, then the problem must be in the way that you removing the old movie, and reusing code to load the movie again.

  • [svn] 1170: compiler: renaming the Compiler classes

    Revision: 1170
    Author: [email protected]
    Date: 2008-04-09 16:17:57 -0700 (Wed, 09 Apr 2008)
    Log Message:
    compiler: renaming the Compiler classes
    * flex2.compiler.abc:Compiler to AbcCompiler
    * flex2.compiler.as3:Compiler to As3Compiler
    * flex2.compiler.css:Compiler to CssCompiler
    * flex2.compiler.i18n:Compiler to I18nCompiler
    * flex2.compiler.mxml:Compiler to MxmlCompiler
    Bugs: n/a
    QA: Yes
    Doc: No
    Modified Paths:
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/CompilerAPI.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/Source.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/AbstractSyntaxTreeUtil.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/MetaDataParser.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/genext/GenerativeSecondPassEv aluator.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/asdoc/AsDocAPI.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/ImplementationCompiler.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/ImplementationGenerator.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/InterfaceCompiler.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler_en.properties
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler_ja.properties
    flex/sdk/trunk/modules/compiler/src/java/flex2/tools/WebTierAPI.java
    Added Paths:
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/abc/AbcCompiler.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/As3Compiler.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/css/CssCompiler.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/i18n/I18nCompiler.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/MxmlCompiler.java
    Removed Paths:
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/abc/Compiler.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/Compiler.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/css/Compiler.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/i18n/Compiler.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/Compiler.java

    In the properties of your project, there is a page called "Java Build Path". On the bottom of that page, there is this field "Default output folder" in which you can specify to which directory Eclipse should write the .class files.
    Then, for the build options, go to the Run Dialog (Run menu, Show Run Dialog). There you might have several configurations for several programs. Select yours, and go to the Arguments tab. There you have fields for program arguments (the String [] args), and VM arguments (like the -DProtoge.dir=)
    Good luck!

  • [svn] 1168: compiler: renaming the API classes

    Revision: 1168
    Author: [email protected]
    Date: 2008-04-09 14:30:32 -0700 (Wed, 09 Apr 2008)
    Log Message:
    compiler: renaming the API classes
    * flex2.compiler.asdoc:API to AsDocAPI
    * flex2.compiler.swc:API to SwcAPI
    * flex2.compiler:API to CompilerAPI
    * flex2.linker:API to LinkerAPI
    * flex2.tools:API to WebTierAPI
    Bugs: n/a
    QA: Yes, we should probably run the suite on this; though we could also wait for the Compiler classes to get renamed
    Doc: No
    Modified Paths:
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/Source.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/SourcePath.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/SymbolTable.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/Compiler.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/SignatureExtension.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/binding/TypeAnalyzer.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/genext/GenerativeClassInfo.ja va
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/Compiler.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/ImplementationCompiler.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/MxmlLogAdapter.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/swc/Swc.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler_en.properties
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler_ja.properties
    flex/sdk/trunk/modules/compiler/src/java/flex2/linker_en.properties
    flex/sdk/trunk/modules/compiler/src/java/flex2/linker_ja.properties
    flex/sdk/trunk/modules/compiler/src/java/flex2/tools/ASDoc.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/tools/ASDocConfiguration.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/tools/CommandLineConfiguration.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/tools/Compc.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/tools/CompcPreLink.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/tools/DigestTool.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/tools/Fcsh.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/tools/Mxmlc.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/tools/Optimizer.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/tools/oem/Application.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/tools/oem/Library.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/tools/oem/Toolkit.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/tools/oem/internal/ApplicationCompilerConf iguration.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/tools/oem/internal/LibraryCompiler.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/tools/oem/internal/OEMUtil.java
    Added Paths:
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/CompilerAPI.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/asdoc/AsDocAPI.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/swc/SwcAPI.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/linker/LinkerAPI.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/tools/WebTierAPI.java
    Removed Paths:
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/API.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/asdoc/API.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/swc/API.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/linker/API.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/tools/API.java

    What is your classpath set to? If you can't find some classes, check there, rather than the path. You might want to include JAVA_HOME/lib/tools.jar and J2EE_HOME/lib/j2ee.jar for starters.
    For example, to compile myclass.jave: javac -cp .;%J2EE_HOME/lib/j2ee.jar;%JAVA_HOME/lib/tools.jar myclass.java
    Hope this helps,
    Rob

  • Why does AS3 error when opening AS2 sharedObject

    I have a .sol file that can be opened using AS2 but when AS3 opens it i get RangeError: Error #2006: The supplied index is out of bounds.
    at flash.net::SharedObject$/getLocal()
    I have tried the SharedObject.defaultObjectEncoding = ObjectEncoding.AMF0 but this is for writing, not for reading.  Not sure what to do but to trap/suppress the error.  Does not solve the issue, any takers?  If it works in AS2 then it should work in AS3!

    If it works in AS2 then it should work in AS3!
    no.  you can expect the as3 compiler (when in strict mode) to detect errors that as2 bypasses.
    click file/publish settings/flash and tick "permit debugging".  retest.  the problematic line number will be in the error message.

  • ActionScript 3 compiler, asc, is now open-source

    In the latest nightly build of the Flex SDK is the as3
    compiler code!
    The ActionScript 3 compiler, asc, is now open-source! Added
    the source code for Flex 3's asc.jar, at
    branches/3.0.x/modules/asc. This code came from
    ssh://asteam.macromedia.com/hg/asc-flex3 and is what built the
    asc.jar that shipped with SDK 3.0.0.477, plus open-source copyright
    changes. It requires Java 1.5 to build and is not integrated with
    the build scripts for branched/3.0.x; this branch continues to have
    a prebuilt asc.jar in 'lib'.

    PHPAMF is not an Adobe product and for this you did not find anything here.
    Amfphp can properly serialize and deserialize complex types. In addition to objects and arrays, it supports resources from database connections, which means you can simply return mysql_query from your remote method and amfphp will know what to do with it. If the platform supports it (currently, Flash Remoting only), it can handle circular references and typed objects. It also supports simple remote debugging. Finally, amfphp comes with a service browser which allows you to test your services before creating a frontend.
    Regards, Giuseppe

  • [svn] 1091: compiler: class renaming in the compiler package

    Revision: 1091
    Author: [email protected]
    Date: 2008-04-03 13:32:09 -0700 (Thu, 03 Apr 2008)
    Log Message:
    compiler: class renaming in the compiler package
    * flex2.compiler:Context to CompilerContext
    * flex2.compiler.util:Console to ConsoleLogger
    Bugs: n/a
    QA: No
    Doc: No
    Modified Paths:
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/API.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/CompilationUnit.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/CompilerSwcContext.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/PersistenceStore.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/Source.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/SymbolTable.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/abc/Compiler.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/Compiler.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/EmbedExtension.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/StyleExtension.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/SyntaxTreeEvaluator.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/binding/DataBindingExtension. java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/binding/DataBindingFirstPassE valuator.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/binding/TypeAnalyzer.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/genext/GenerativeSecondPassEv aluator.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/asdoc/ASDocExtension.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/css/Compiler.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/i18n/Compiler.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/ImplementationCompiler.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/InterfaceCompiler.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/builder/AbstractDocumentBuil der.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/rep/MxmlDocument.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/tools/oem/internal/OEMConsole.java
    Added Paths:
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/CompilerContext.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/util/ConsoleLogger.java
    Removed Paths:
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/Context.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/util/Console.java

    Out of curiosity, do you have a directory called WEB-INF inside of
    MyPortal\portalApp\portlets\WFWeb? If so, can you try removing/renaming it?
    "Gavin" <[email protected]> wrote in message
    news:40581f2e$[email protected]..
    >
    I create a Application naming "MyPortal" in WorkShop.
    And create a Project naming "portalApp".
    In folder "portalApp", I create a folder "portlets"
    And create a PageFlow in folder "portlets", so I get a jpf naming"WFWebController.jpf"
    >
    >
    W:\bea\user_projects\applications\MyPortal\portalApp\portlets\WFWeb\WFWebCon
    troller.jpf
    >
    But I add some java code in the method of WFWebController.jpf
    when I run the WFWebController.jpf from workshop
    the compiler throws a ERROR message "A PageFlowController at the root ofthe web
    application must be in the default package."
    Have any solution about this ERROR ?
    Thanks,
    Gavin.

  • As3 flash project targetting flash player 10 error 1172

    This is my first post so please excuse me if the answer is trivial.
    I am creating a simple project where a movie clip contains a motion tween lasting 180 frames.
    So I create a tween layer and create the animation.
    I now create another layer and perform a stop(); on frame 30.
    When I compile or test,  it produces loads of 1172 errors where common classes (like vector) cannot be found. 100 errors!
    This is targeting flash player 10. when I target player 9 all works.
    have things changed that dramatically with flash player 10?
    what are the consequences of continuing with flash player 9? I prefer to fix the problem and enhance my knowledge.
    Thanks guys.

    If it's playing in FP8, it can't be AS3.  Generally, AS2 compilation doesn't throw a fit like AS3 compilation does, so seeing errors in AS3 is more likely.  It sounds like you my be using AS2 stuff with an AS3 setting until you set it for FP8 where the publish settings will automatically adjust to AS2.  Beyond that, FP10 has had some issues that FP9 hasn't.

  • IndexOutOfBoundsException error on compile

    Came across an error which took me hours to locate the cause.
    Something like the code below compiles fine:
    public function function1():void{
                    obj.addEventListener(MyEvent.
                        MY_EVENT_TYPE,
                        function onEvent(event:Event):void {
                                  function2(classname);
    public function function2(className:String):void{
                    var objClass:Class =
                            getDefinitionByName(classNameStr) as Class;
                        if (objClass != null) {
                            myContent = (UIComponent(new objClass()));
    But if I put the code in the same function instead, it throws up an error on compiling (without even specifying the class which has the error.)
    The code:
    public function function1():void{
                    obj.addEventListener(MyEvent.
                        MY_EVENT_TYPE,
                        function onEvent(event:Event):void {
                        var objClass:Class = getDefinitionByName(classNameStr) as Class;
                        if (objClass != null) {
                                 myContent = (UIComponent(new objClass()));
    The error:
    compile-application:
         [exec] Loading configuration file C:\...\flex\frameworks\fl
    ex-config.xml
         [exec] Error: Index: 16, Size: 16
         [exec]
         [exec] java.lang.IndexOutOfBoundsException: Index: 16, Size: 16
         [exec]     at java.util.ArrayList.RangeCheck(Unknown Source)
         [exec]     at java.util.ArrayList.get(Unknown Source)
         [exec]     at macromedia.asc.semantics.ReferenceValue.getSlot(ReferenceValu
    e.java:253)
         [exec]     at macromedia.asc.embedding.LintEvaluator.evaluateGenericCallExp
    ression(LintEvaluator.java:202)
         [exec]     at macromedia.asc.embedding.LintEvaluator.evaluate(LintEvaluator
    .java:379)
         [exec]     at macromedia.asc.parser.CallExpressionNode.evaluate(CallExpress
    ionNode.java:46)
         [exec]     at macromedia.asc.embedding.LintEvaluator.evaluate(LintEvaluator
    .java:1025)
         [exec]     at macromedia.asc.parser.MemberExpressionNode.evaluate(MemberExp
    ressionNode.java:57)
         [exec]     at macromedia.asc.embedding.LintEvaluator.evaluate(LintEvaluator
    .java:1268)
         [exec]     at macromedia.asc.parser.ArgumentListNode.evaluate(ArgumentListN
    ode.java:45)
         [exec]     at macromedia.asc.embedding.LintEvaluator.evaluateGenericCallExp
    ression(LintEvaluator.java:269)
         [exec]     at macromedia.asc.embedding.LintEvaluator.evaluate(LintEvaluator
    .java:454)
         [exec]     at macromedia.asc.parser.CallExpressionNode.evaluate(CallExpress
    ionNode.java:46)
         [exec]     at macromedia.asc.embedding.LintEvaluator.evaluate(LintEvaluator
    .java:1025)
         [exec]     at macromedia.asc.parser.MemberExpressionNode.evaluate(MemberExp
    ressionNode.java:57)
         [exec]     at macromedia.asc.embedding.LintEvaluator.evaluate(LintEvaluator
    .java:1324)
         [exec]     at macromedia.asc.parser.ListNode.evaluate(ListNode.java:44)
         [exec]     at macromedia.asc.embedding.LintEvaluator.evaluate(LintEvaluator
    .java:1310)
         [exec]     at macromedia.asc.parser.ArgumentListNode.evaluate(ArgumentListN
    ode.java:45)
         [exec]     at macromedia.asc.embedding.LintEvaluator.evaluate(LintEvaluator
    .java:875)
         [exec]     at macromedia.asc.parser.SetExpressionNode.evaluate(SetExpressio
    nNode.java:58)
         [exec]     at macromedia.asc.embedding.LintEvaluator.evaluate(LintEvaluator
    .java:1025)
         [exec]     at macromedia.asc.parser.MemberExpressionNode.evaluate(MemberExp
    ressionNode.java:57)
         [exec]     at macromedia.asc.embedding.LintEvaluator.evaluate(LintEvaluator
    .java:1324)
         [exec]     at macromedia.asc.parser.ListNode.evaluate(ListNode.java:44)
         [exec]     at macromedia.asc.embedding.LintEvaluator.evaluate(LintEvaluator
    .java:1398)
         [exec]     at macromedia.asc.parser.ExpressionStatementNode.evaluate(Expres
    sionStatementNode.java:50)
         [exec]     at macromedia.asc.embedding.LintEvaluator.evaluate(LintEvaluator
    .java:1346)
         [exec]     at macromedia.asc.parser.StatementListNode.evaluate(StatementLis
    tNode.java:60)
         [exec]     at macromedia.asc.embedding.LintEvaluator.evaluate(LintEvaluator
    .java:1438)
         [exec]     at macromedia.asc.parser.IfStatementNode.evaluate(IfStatementNod
    e.java:50)
         [exec]     at macromedia.asc.embedding.LintEvaluator.evaluate(LintEvaluator
    .java:1346)
         [exec]     at macromedia.asc.parser.StatementListNode.evaluate(StatementLis
    tNode.java:60)
         [exec]     at macromedia.asc.embedding.LintEvaluator.evaluate(LintEvaluator
    .java:1867)
         [exec]     at macromedia.asc.parser.FunctionCommonNode.evaluate(FunctionCom
    monNode.java:104)
         [exec]     at macromedia.asc.embedding.LintEvaluator.evaluate(LintEvaluator
    .java:1848)
         [exec]     at macromedia.asc.parser.FunctionCommonNode.evaluate(FunctionCom
    monNode.java:104)
         [exec]     at macromedia.asc.embedding.LintEvaluator.evaluate(LintEvaluator
    .java:2321)
         [exec]     at macromedia.asc.parser.ClassDefinitionNode.evaluate(ClassDefin
    itionNode.java:106)
         [exec]     at macromedia.asc.embedding.LintEvaluator.evaluate(LintEvaluator
    .java:2042)
         [exec]     at macromedia.asc.parser.ProgramNode.evaluate(ProgramNode.java:8
    0)
         [exec]     at flex2.compiler.as3.Compiler.analyze4(Compiler.java:611)
         [exec]     at flex2.compiler.API.analyze(API.java:2542)
         [exec]     at flex2.compiler.API.analyze(API.java:2432)
         [exec]     at flex2.compiler.API.batch2(API.java:411)
         [exec]     at flex2.compiler.API.batch(API.java:1117)
         [exec]     at flex2.compiler.API.compile(API.java:1290)
         [exec]     at flex2.compiler.API.compile(API.java:1210)
         [exec]     at flex2.tools.Compiler.mxmlc(Compiler.java:275)
         [exec]     at flex2.tools.Compiler.main(Compiler.java:53)
    BUILD FAILED

    Thank you for the reply
    I am new to Java
    What is wrong with the way it is coded?The error message tells you what's wrong: You're trying to reference a non-static variable from a static context.
    If you don't know what that means, then click the link I provided and look at the results from that google search. You might have to go through a few before you find a satisfactory explanation. And after you've done that, if you have specific questions about things you didn't understand there, please post again.

  • [svn] 1152: compiler: class renaming and opportunistic warning cleanup

    Revision: 1152
    Author: [email protected]
    Date: 2008-04-08 15:22:04 -0700 (Tue, 08 Apr 2008)
    Log Message:
    compiler: class renaming and opportunistic warning cleanup
    * flex2.compiler.as3:Configuration to As3Configuration
    * flex2.compiler.mxml:Configuration to MxmlConfiguration
    * flex2.linker:Configuration to LinkerConfiguration
    Bugs: n/a
    QA: Soon!
    Doc: No
    Modified Paths:
    flex/sdk/trunk/modules/asc/src/java/macromedia/asc/parser/NodeFactory.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/abc/Compiler.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/Compiler.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/binding/DataBindingExtension. java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/common/CompilerConfiguration.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/common/Configuration.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/css/StylesContainer.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/i18n/Compiler.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/Compiler.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/ImplementationCompiler.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/ImplementationGenerator.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/InterfaceCompiler.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/analyzer/HTTPServiceAnalyzer .java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/analyzer/RemoteObjectAnalyze r.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/analyzer/SyntaxAnalyzer.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/analyzer/WebServiceAnalyzer. java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/builder/AbstractBuilder.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/builder/AbstractDocumentBuil der.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/builder/AnonymousObjectGraph Builder.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/builder/ArrayBuilder.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/builder/ComponentBuilder.jav a
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/builder/HTTPServiceBuilder.j ava
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/builder/InlineComponentBuild er.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/builder/ModelBuilder.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/builder/PrimitiveBuilder.jav a
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/builder/RemoteObjectBuilder. java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/builder/ServiceRequestBuilde r.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/builder/WebServiceBuilder.ja va
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/builder/XMLBuilder.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/builder/XMLListBuilder.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/dom/AnalyzerAdapter.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/rep/MxmlDocument.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/rep/decl/InitializedProperty Declaration.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/rep/init/NamedInitializer.ja va
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/swc/API.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/swc/Swc.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/swc/SwcMovie.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/util/ConsoleLogger.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/linker/API.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/linker/ConsoleApplication.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/linker/FlexMovie.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/linker/SimpleMovie.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/tools/PostLink.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/tools/oem/Library.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/tools/oem/internal/LinkerConfiguration.jav a
    flex/sdk/trunk/modules/debugger/src/java/flash/tools/debugger/concrete/DModule.java
    flex/sdk/trunk/modules/debugger/src/java/flash/tools/debugger/expression/ASTBuilder.java
    flex/sdk/trunk/modules/debugger/src/java/flash/util/URLEncoder.java
    flex/sdk/trunk/modules/debugger/src/java/flex/tools/debugger/cli/ExpressionContext.java
    flex/sdk/trunk/modules/debugger/src/java/flex/tools/debugger/cli/LocationCollection.java
    Added Paths:
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/As3Configuration.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/MxmlConfiguration.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/linker/LinkerConfiguration.java
    Removed Paths:
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/Configuration.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/Configuration.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/linker/Configuration.java

    You need to rewrite the script to do that eg maybe use Get-Mailbox to feed
    get-mailboxfolderstatistics, you'll still need to process each and every mailbox individually.
    >> Thank you for any help you can offer, I'm not very experienced with Powershell or scripting in general, so this feels like I'm diving in a little deep.
    with a script like this that deletes data you do want to be very careful if your going to run it against 100's of mailboxes, my suggestion is you rewrite it first as a reporting script where you just output the result to a text file then when you have that
    running well and your confident it's not going to delete anything that it shouldn't you can than change it to a script that deletes things.
    Cheers
    Glen

  • AS3 as slow as AS2?

    ok, i've made a simple comparison test (due to a performance
    issue i had with a more complex app). the app adds 10000 movieclips
    to stage, each of them with a random color and random alpha. i've
    done this in as2 and as3 (as2 compiled in flash authoring, as3
    compiled with mxmlc). the result is kind of freaking me out ;)
    AS2 build time: ca. 6s
    AS3 build time ca. 1s
    so far so good. but then, i resize the window so i can see
    all the rects, then i just do nothing. nothing! i just leave the
    window open:
    AS2 cpu: 99%
    AS3 cpu:
    99%
    so.. well.. WHY??? i of course can see flash handling 10000
    timelines.. some timers perhaps.. but i've also tries with shapes,
    and it's still going to 50%, that just doesn't feel right. i've
    published to 120fps, less improves.
    anybody has an idea? i hate when things take cpu where
    nothing happens.

    I of course tried that too: cacheAsBitmap has no improving
    influence at all. Even when I leave those MovieClips or Shapes
    empty, it's still eating way too much cpu imho. Okay, there
    are 10000 objects to loop through with each frame cycle, but
    it must be a condition like if (mc.changed) ... at least that's how
    you'd expect it to work.
    I've just done some more testing. The cpu heavily depends on
    the mouse pointer position - if it's within the boundary containing
    any DisplayObject, it eats a lot more cpu. This doesn't depend on
    wether the mouse is moving or not. So my guess is that Flash Player
    checks on each frame cycle wether the mouse is within the stage
    boundaries, if yes it checks the mouse against all DisplayObjects,
    to find out wether it shall dispatch any mouse events. Okay, that
    makes more sense. I still think that this could be improved though:
    First of all it should only check on mouse movement OR whenever
    some kind of render flag set to true, second it could make checking
    dependent on wether there are any event listeners that need
    checking.
    Well, at least I think I've more clue now about what's
    actually happening. I still think that this could be improved very
    much. I've created a little test html page, where I try to do the
    same, 10000 objects, same size, same position. When I test with
    browsers, cpu load depends very much on mouse MOVEMENT, meaning
    that when I hover the mouse over the area and I don't move it, cpu
    load is very low. When I move the mouse though, it starts eating
    cpu (50% on safari, 20% on FF).

  • Flex sdk incremental build will lose swc information

    I have a mxmlc ant task job like this
            <mxmlc 
            file="${trunk_dir}/main/src/main.mxml"
            output="${local_tmp}/app/bin/main.swf"
                      >    
                <load-config filename="${basedir}/flex-config-sea.xml"/>
                <source-path path-element="${FLEX_HOME}/frameworks"/>
            </mxmlc>
    in flex-config-sea.xml I put this in for incremental compile and swc build
          <include-libraries>
             <library>/opt/cruisecontrol-bin-2.8.4/projects/sea_client/trunk/main/libs/Mate_08_9.swc</library>
             <library>/opt/cruisecontrol-bin-2.8.4/projects/sea_client/trunk/main/libs/xprogress.swc</library>
             <library>/opt/cruisecontrol-bin-2.8.4/projects/sea_client/trunk/main/libs/component.swc</library>
          </include-libraries>
          <incremental>true</incremental>
    the first time build is ok, but the second time after I changed one single file, the output is
    [mxmlc] Loading configuration file /opt/cruisecontrol-bin-2.8.4/projects/cc/flex-config-sea.xml
        [mxmlc] Recompile: /opt/cruisecontrol-bin-2.8.4/projects/sea_client/trunk/main/src/C.as
        [mxmlc] Reason: The source file or one of the included files has been updated.
        [mxmlc] Files changed: 1 Files affected: 0
        [mxmlc] Required RSLs:
        [mxmlc]     textLayout_2.0.0.232.swz with 1 failover.
        [mxmlc]     framework_4.6.0.23201.swz with 1 failover.
        [mxmlc]     rpc_4.6.0.23201.swz with 1 failover.
        [mxmlc]     mx_4.6.0.23201.swz with 1 failover.
        [mxmlc]     spark_4.6.0.23201.swz with 1 failover.
        [mxmlc]     sparkskins_4.6.0.23201.swz with 1 failover.
        [mxmlc] /tmp/sea_local/app/bin/main.swf (426617 bytes)
    but the output swf is complaining lack of some swc when running, which didn't show up in the first time
    ReferenceError: Error #1065: Variable _shared_maps_GlobalMapWatcherSetupUtil is not defined.
              at global/flash.utils::getDefinitionByName()
              at shared.maps::GlobalMap()
              at main/_main_GlobalMap1_i()
              at main()
              at _main_mx_managers_SystemManager/create()
              at mx.managers.systemClasses::ChildManager/initializeTopLevelWindow()
              at mx.managers::SystemManager/initializeTopLevelWindow()
              at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::kickOff()
              at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::preloader_completeHandler()
              at flash.events::EventDispatcher/dispatchEventFunction()
              at flash.events::EventDispatcher/dispatchEvent()
              at mx.preloaders::Preloader/timerHandler()
              at flash.utils::Timer/_timerDispatch()
              at flash.utils::Timer/tick()
    this message normally shows up when there's no Mate_08_9.swc found at runtime. but this shouldn't happen.
    is there anyway to work around this? thanks a lot
    here is the full flex-config-sea.xml:
    <flex-config>
       <!-- benchmark: output performance benchmark-->
       <!-- benchmark usage:
       <benchmark>boolean</benchmark>
       -->
       <compiler>
          <!-- compiler.accessible: generate an accessible SWF-->
          <accessible>true</accessible>
          <!-- compiler.actionscript-file-encoding: specifies actionscript file encoding. If there is no BOM in the AS3 source files, the compiler will use this file encoding.-->
          <!-- compiler.actionscript-file-encoding usage:
          <actionscript-file-encoding>string</actionscript-file-encoding>
          -->
          <!-- compiler.allow-source-path-overlap: checks if a source-path entry is a subdirectory of another source-path entry. It helps make the package names of MXML components unambiguous.-->
          <allow-source-path-overlap>false</allow-source-path-overlap>
          <!-- compiler.as3: use the ActionScript 3 class based object model for greater performance and better error reporting. In the class based object model most built-in functions are implemented as fixed methods of classes.-->
          <as3>true</as3>
          <!-- compiler.compress usage:
          <compress>boolean</compress>
          -->
          <!-- compiler.context-root: path to replace {context.root} tokens for service channel endpoints-->
          <!-- compiler.context-root usage:
          <context-root>context-path</context-root>
          -->
          <!-- compiler.debug: generates a movie that is suitable for debugging-->
          <debug>false</debug>
          <!-- compiler.defaults-css-files usage:
          <defaults-css-files>
             <filename>string</filename>
             <filename>string</filename>
          </defaults-css-files>
          -->
          <!-- compiler.defaults-css-url: defines the location of the default style sheet. Setting this option overrides the implicit use of the defaults.css style sheet in the framework.swc file.-->
          <!-- compiler.defaults-css-url usage:
          <defaults-css-url>string</defaults-css-url>
          -->
          <!-- compiler.define: define a global AS3 conditional compilation definition, e.g. -define=CONFIG::debugging,true or -define+=CONFIG::debugging,true (to append to existing definitions in flex-config.xml) -->
          <!-- compiler.define usage:
          <define>
             <name>string</name>
             <value>string</value>
             <value>string</value>
          </define>
          -->
          <!-- compiler.enable-runtime-design-layers usage:
          <enable-runtime-design-layers>boolean</enable-runtime-design-layers>
          -->
          <!-- compiler.es: use the ECMAScript edition 3 prototype based object model to allow dynamic overriding of prototype properties. In the prototype based object model built-in functions are implemented as dynamic properties of prototype objects.-->
          <es>false</es>
          <extensions>
             <!-- compiler.extensions.extension usage:
             <extension>
                <extension>string</extension>
                <parameters>string</parameters>
             </extension>
             -->
          </extensions>
          <!-- compiler.external-library-path: list of SWC files or directories to compile against but to omit from linking-->
          <external-library-path>
             <path-element>/opt/flexsdk/4.6.0/frameworks/libs/player/11.1/playerglobal.swc</path-element>
          </external-library-path>
          <fonts>
             <!-- compiler.fonts.advanced-anti-aliasing: enables advanced anti-aliasing for embedded fonts, which provides greater clarity for small fonts.-->
             <advanced-anti-aliasing>true</advanced-anti-aliasing>
             <!-- compiler.fonts.flash-type: enables FlashType for embedded fonts, which provides greater clarity for small fonts.-->
             <!-- compiler.fonts.flash-type usage:
             <flash-type>boolean</flash-type>
             -->
             <languages>
                <!-- compiler.fonts.languages.language-range: a range to restrict the number of font glyphs embedded into the SWF-->
                <!-- compiler.fonts.languages.language-range usage:
                <language-range>
                   <lang>string</lang>
                   <range>string</range>
                   <range>string</range>
                </language-range>
                -->
             </languages>
             <!-- compiler.fonts.local-font-paths usage:
             <local-font-paths>
                <path-element>string</path-element>
                <path-element>string</path-element>
             </local-font-paths>
             -->
             <!-- compiler.fonts.local-fonts-snapshot: File containing system font data produced by flex2.tools.FontSnapshot.-->
             <!-- compiler.fonts.managers: Compiler font manager classes, in policy resolution order-->
             <managers>
                <manager-class>flash.fonts.JREFontManager</manager-class>
                <manager-class>flash.fonts.BatikFontManager</manager-class>
                <manager-class>flash.fonts.AFEFontManager</manager-class>
                <manager-class>flash.fonts.CFFFontManager</manager-class>
             </managers>
             <!-- compiler.fonts.max-cached-fonts: sets the maximum number of fonts to keep in the server cache.  The default value is 20.-->
             <max-cached-fonts>20</max-cached-fonts>
             <!-- compiler.fonts.max-glyphs-per-face: sets the maximum number of character glyph-outlines to keep in the server cache for each font face. The default value is 1000.-->
             <max-glyphs-per-face>1000</max-glyphs-per-face>
          </fonts>
          <!-- compiler.headless-server: a flag to set when Flex is running on a server without a display-->
          <!-- compiler.headless-server usage:
          <headless-server>boolean</headless-server>
          -->
          <!-- compiler.include-libraries: a list of libraries (SWCs) to completely include in the SWF-->
          <!-- compiler.include-libraries usage:
          <include-libraries>
             <library>string</library>
             <library>string</library>
          </include-libraries>
          -->
          <include-libraries>
             <library>/opt/cruisecontrol-bin-2.8.4/projects/sea_client/trunk/main/libs/Mate_08_9.swc</library>
             <library>/opt/cruisecontrol-bin-2.8.4/projects/sea_client/trunk/main/libs/xprogress.swc</library>
             <library>/opt/cruisecontrol-bin-2.8.4/projects/sea_client/trunk/main/libs/component.swc</library>
          </include-libraries>
          <!-- compiler.incremental: enables incremental compilation-->
          <!-- compiler.incremental usage:
          <incremental>boolean</incremental>
          -->
          <incremental>true</incremental>
          <!-- compiler.isolate-styles: enables the compiled application or module to set styles that only affect itself and its children-->
          <!-- compiler.isolate-styles usage:
          <isolate-styles>boolean</isolate-styles>
          -->
          <!-- compiler.keep-all-type-selectors: disables the pruning of unused CSS type selectors-->
          <!-- compiler.keep-all-type-selectors usage:
          <keep-all-type-selectors>boolean</keep-all-type-selectors>
          -->
          <!-- compiler.keep-as3-metadata: keep the specified metadata in the SWF-->
          <!-- compiler.keep-as3-metadata usage:
          <keep-as3-metadata>
             <name>string</name>
             <name>string</name>
          </keep-as3-metadata>
          -->
          <!-- compiler.keep-generated-actionscript: save temporary source files generated during MXML compilation-->
          <keep-generated-actionscript>false</keep-generated-actionscript>
          <!-- compiler.library-path: list of SWC files or directories that contain SWC files-->
          <library-path>
             <path-element>/opt/flexsdk/4.6.0/frameworks/libs/flash-integration.swc</path-element>
             <path-element>/opt/flexsdk/4.6.0/frameworks/libs/authoringsupport.swc</path-element>
             <path-element>/opt/flexsdk/4.6.0/frameworks/locale/{locale}</path-element>
          </library-path>
          <!-- compiler.locale: specifies the locale for internationalization-->
          <locale>
             <locale-element>en_US</locale-element>
          </locale>
          <!-- compiler.minimum-supported-version usage:
          <minimum-supported-version>string</minimum-supported-version>
          -->
          <!-- compiler.mobile: specifies the target runtime is a mobile device-->
          <mobile>false</mobile>
          <mxml>
             <!-- compiler.mxml.compatibility-version: specifies a compatibility version. e.g. -compatibility-version=2.0.1-->
             <!-- compiler.mxml.compatibility-version usage:
             <compatibility-version>version</compatibility-version>
             -->
             <!-- compiler.mxml.minimum-supported-version usage:
             <minimum-supported-version>string</minimum-supported-version>
             -->
             <!-- compiler.mxml.qualified-type-selectors usage:
             <qualified-type-selectors>boolean</qualified-type-selectors>
             -->
          </mxml>
          <namespaces>
             <!-- compiler.namespaces.namespace: Specify a URI to associate with a manifest of components for use as MXML elements-->
             <namespace>
                <uri>http://ns.adobe.com/mxml/2009</uri>
                <manifest>/opt/flexsdk/4.6.0/frameworks/mxml-2009-manifest.xml</manifest>
             </namespace>
             <namespace>
                <uri>library://ns.adobe.com/flex/spark</uri>
                <manifest>/opt/flexsdk/4.6.0/frameworks/spark-manifest.xml</manifest>
             </namespace>
             <namespace>
                <uri>library://ns.adobe.com/flex/mx</uri>
                <manifest>/opt/flexsdk/4.6.0/frameworks/mx-manifest.xml</manifest>
             </namespace>
             <namespace>
                <uri>http://www.adobe.com/2006/mxml</uri>
                <manifest>/opt/flexsdk/4.6.0/frameworks/mxml-manifest.xml</manifest>
             </namespace>
          </namespaces>
          <!-- compiler.omit-trace-statements: toggle whether trace statements are omitted-->
          <omit-trace-statements>true</omit-trace-statements>
          <!-- compiler.optimize: Enable post-link SWF optimization-->
          <optimize>true</optimize>
          <!-- compiler.preloader: Specifies the default value for the Application's preloader attribute. If not specified, the default preloader value is mx.preloaders.SparkDownloadProgressBar when -compatibility-version >= 4.0 and mx.preloaders.DownloadProgressBar when -compatibility-version < 4.0.-->
          <!-- compiler.preloader usage:
          <preloader>string</preloader>
          -->
          <!-- compiler.report-invalid-styles-as-warnings: enables reporting of invalid styles as warnings-->
          <!-- compiler.report-invalid-styles-as-warnings usage:
          <report-invalid-styles-as-warnings>boolean</report-invalid-styles-as-warnings>
          -->
          <!-- compiler.report-missing-required-skin-parts-as-warnings: Use this option to generate a warning instead of an error when a missing required skin part is detected.-->
          <!-- compiler.report-missing-required-skin-parts-as-warnings usage:
          <report-missing-required-skin-parts-as-warnings>boolean</report-missing-required-skin-parts-as-warnings>
          -->
          <!-- compiler.services: path to Flex Data Services configuration file-->
          <!-- compiler.services usage:
          <services>filename</services>
          -->
          <!-- compiler.show-actionscript-warnings: runs the AS3 compiler in a mode that detects legal but potentially incorrect code-->
          <show-actionscript-warnings>true</show-actionscript-warnings>
          <!-- compiler.show-binding-warnings: toggle whether warnings generated from data binding code are displayed-->
          <show-binding-warnings>true</show-binding-warnings>
          <!-- compiler.show-invalid-css-property-warnings: toggle whether invalid css property warnings are reported-->
          <!-- compiler.show-invalid-css-property-warnings usage:
          <show-invalid-css-property-warnings>boolean</show-invalid-css-property-warnings>
          -->
          <!-- compiler.show-shadowed-device-font-warnings: toggles whether warnings are displayed when an embedded font name shadows a device font name-->
          <show-shadowed-device-font-warnings>false</show-shadowed-device-font-warnings>
          <!-- compiler.show-unused-type-selector-warnings: toggle whether warnings generated from unused CSS type selectors are displayed-->
          <show-unused-type-selector-warnings>true</show-unused-type-selector-warnings>
          <!-- compiler.source-path: list of path elements that form the roots of ActionScript class hierarchies-->
          <source-path>
          </source-path>
          <!-- compiler.strict: runs the AS3 compiler in strict error checking mode.-->
          <strict>true</strict>
          <!-- compiler.theme: list of CSS or SWC files to apply as a theme-->
          <!-- compiler.use-resource-bundle-metadata: determines whether resources bundles are included in the application.-->
          <use-resource-bundle-metadata>true</use-resource-bundle-metadata>
          <!-- compiler.verbose-stacktraces: save callstack information to the SWF for debugging-->
          <verbose-stacktraces>false</verbose-stacktraces>
          <!-- compiler.warn-array-tostring-changes: Array.toString() format has changed.-->
          <warn-array-tostring-changes>false</warn-array-tostring-changes>
          <!-- compiler.warn-assignment-within-conditional: Assignment within conditional.-->
          <warn-assignment-within-conditional>true</warn-assignment-within-conditional>
          <!-- compiler.warn-bad-array-cast: Possibly invalid Array cast operation.-->
          <warn-bad-array-cast>true</warn-bad-array-cast>
          <!-- compiler.warn-bad-bool-assignment: Non-Boolean value used where a Boolean value was expected.-->
          <warn-bad-bool-assignment>true</warn-bad-bool-assignment>
          <!-- compiler.warn-bad-date-cast: Invalid Date cast operation.-->
          <warn-bad-date-cast>true</warn-bad-date-cast>
          <!-- compiler.warn-bad-es3-type-method: Unknown method.-->
          <warn-bad-es3-type-method>true</warn-bad-es3-type-method>
          <!-- compiler.warn-bad-es3-type-prop: Unknown property.-->
          <warn-bad-es3-type-prop>true</warn-bad-es3-type-prop>
          <!-- compiler.warn-bad-nan-comparison: Illogical comparison with NaN. Any comparison operation involving NaN will evaluate to false because NaN != NaN.-->
          <warn-bad-nan-comparison>true</warn-bad-nan-comparison>
          <!-- compiler.warn-bad-null-assignment: Impossible assignment to null.-->
          <warn-bad-null-assignment>true</warn-bad-null-assignment>
          <!-- compiler.warn-bad-null-comparison: Illogical comparison with null.-->
          <warn-bad-null-comparison>true</warn-bad-null-comparison>
          <!-- compiler.warn-bad-undefined-comparison: Illogical comparison with undefined.  Only untyped variables (or variables of type *) can be undefined.-->
          <warn-bad-undefined-comparison>true</warn-bad-undefined-comparison>
          <!-- compiler.warn-boolean-constructor-with-no-args: Boolean() with no arguments returns false in ActionScript 3.0.  Boolean() returned undefined in ActionScript 2.0.-->
          <warn-boolean-constructor-with-no-args>false</warn-boolean-constructor-with-no-args>
          <!-- compiler.warn-changes-in-resolve: __resolve is no longer supported.-->
          <warn-changes-in-resolve>false</warn-changes-in-resolve>
          <!-- compiler.warn-class-is-sealed: Class is sealed.  It cannot have members added to it dynamically.-->
          <warn-class-is-sealed>true</warn-class-is-sealed>
          <!-- compiler.warn-const-not-initialized: Constant not initialized.-->
          <warn-const-not-initialized>true</warn-const-not-initialized>
          <!-- compiler.warn-constructor-returns-value: Function used in new expression returns a value.  Result will be what the function returns, rather than a new instance of that function.-->
          <warn-constructor-returns-value>false</warn-constructor-returns-value>
          <!-- compiler.warn-deprecated-event-handler-error: EventHandler was not added as a listener.-->
          <warn-deprecated-event-handler-error>false</warn-deprecated-event-handler-error>
          <!-- compiler.warn-deprecated-function-error: Unsupported ActionScript 2.0 function.-->
          <warn-deprecated-function-error>true</warn-deprecated-function-error>
          <!-- compiler.warn-deprecated-property-error: Unsupported ActionScript 2.0 property.-->
          <warn-deprecated-property-error>true</warn-deprecated-property-error>
          <!-- compiler.warn-duplicate-argument-names: More than one argument by the same name.-->
          <warn-duplicate-argument-names>true</warn-duplicate-argument-names>
          <!-- compiler.warn-duplicate-variable-def: Duplicate variable definition -->
          <warn-duplicate-variable-def>true</warn-duplicate-variable-def>
          <!-- compiler.warn-for-var-in-changes: ActionScript 3.0 iterates over an object's properties within a "for x in target" statement in random order.-->
          <warn-for-var-in-changes>false</warn-for-var-in-changes>
          <!-- compiler.warn-import-hides-class: Importing a package by the same name as the current class will hide that class identifier in this scope.-->
          <warn-import-hides-class>true</warn-import-hides-class>
          <!-- compiler.warn-instance-of-changes: Use of the instanceof operator.-->
          <warn-instance-of-changes>true</warn-instance-of-changes>
          <!-- compiler.warn-internal-error: Internal error in compiler.-->
          <warn-internal-error>true</warn-internal-error>
          <!-- compiler.warn-level-not-supported: _level is no longer supported. For more information, see the flash.display package.-->
          <warn-level-not-supported>true</warn-level-not-supported>
          <!-- compiler.warn-missing-namespace-decl: Missing namespace declaration (e.g. variable is not defined to be public, private, etc.).-->
          <warn-missing-namespace-decl>true</warn-missing-namespace-decl>
          <!-- compiler.warn-negative-uint-literal: Negative value will become a large positive value when assigned to a uint data type.-->
          <warn-negative-uint-literal>true</warn-negative-uint-literal>
          <!-- compiler.warn-no-constructor: Missing constructor.-->
          <warn-no-constructor>false</warn-no-constructor>
          <!-- compiler.warn-no-explicit-super-call-in-constructor: The super() statement was not called within the constructor.-->
          <warn-no-explicit-super-call-in-constructor>false</warn-no-explicit-super-call-in-constructor>
          <!-- compiler.warn-no-type-decl: Missing type declaration.-->
          <warn-no-type-decl>true</warn-no-type-decl>
          <!-- compiler.warn-number-from-string-changes: In ActionScript 3.0, white space is ignored and '' returns 0. Number() returns NaN in ActionScript 2.0 when the parameter is '' or contains white space.-->
          <warn-number-from-string-changes>false</warn-number-from-string-changes>
          <!-- compiler.warn-scoping-change-in-this: Change in scoping for the this keyword.  Class methods extracted from an instance of a class will always resolve this back to that instance.  In ActionScript 2.0 this is looked up dynamically based on where the method is invoked from.-->
          <warn-scoping-change-in-this>false</warn-scoping-change-in-this>
          <!-- compiler.warn-slow-text-field-addition: Inefficient use of += on a TextField.-->
          <warn-slow-text-field-addition>true</warn-slow-text-field-addition>
          <!-- compiler.warn-unlikely-function-value: Possible missing parentheses.-->
          <warn-unlikely-function-value>true</warn-unlikely-function-value>
          <!-- compiler.warn-xml-class-has-changed: Possible usage of the ActionScript 2.0 XML class.-->
          <warn-xml-class-has-changed>false</warn-xml-class-has-changed>
       </compiler>
       <!-- debug-password: the password to include in debuggable SWFs-->
       <!-- debug-password usage:
       <debug-password>string</debug-password>
       -->
       <!-- default-background-color: default background color (may be overridden by the application code)-->
       <default-background-color>0xFFFFFF</default-background-color>
       <!-- default-frame-rate: default frame rate to be used in the SWF.-->
       <default-frame-rate>24</default-frame-rate>
       <!-- default-script-limits: default script execution limits (may be overridden by root attributes)-->
       <default-script-limits>
          <max-recursion-depth>1000</max-recursion-depth>
          <max-execution-time>60</max-execution-time>
       </default-script-limits>
       <!-- default-size: default application size (may be overridden by root attributes in the application)-->
       <default-size>
          <width>500</width>
          <height>375</height>
       </default-size>
       <!-- externs: a list of symbols to omit from linking when building a SWF-->
       <!-- externs usage:
       <externs>
          <symbol>string</symbol>
          <symbol>string</symbol>
       </externs>
       -->
       <frames>
          <!-- frames.frame: A SWF frame label with a sequence of classnames that will be linked onto the frame.-->
          <!-- frames.frame usage:
          <frame>
             <label>string</label>
             <classname>string</classname>
          </frame>
          -->
       </frames>
       <framework>halo</framework>
       <!-- include-inheritance-dependencies-only: only include inheritance dependencies of classes specified with include-classes -->
       <!-- include-inheritance-dependencies-only usage:
       <include-inheritance-dependencies-only>boolean</include-inheritance-dependencies-only>
       -->
       <!-- include-resource-bundles: a list of resource bundles to include in the output SWC-->
       <!-- include-resource-bundles usage:
       <include-resource-bundles>
          <bundle>string</bundle>
          <bundle>string</bundle>
       </include-resource-bundles>
       -->
       <!-- includes: a list of symbols to always link in when building a SWF-->
       <!-- includes usage:
       <includes>
          <symbol>string</symbol>
          <symbol>string</symbol>
       </includes>
       -->
       <!-- link-report: Output a XML-formatted report of all definitions linked into the application.-->
       <!-- link-report usage:
       <link-report>filename</link-report>
       -->
       <!-- load-config: load a file containing configuration options-->
       <!-- load-externs: an XML file containing <def>, <pre>, and <ext> symbols to omit from linking when building a SWF-->
       <!-- load-externs usage:
       <load-externs>filename</load-externs>
       -->
       <metadata>
          <!-- metadata.contributor: A contributor's name to store in the SWF metadata-->
          <!-- metadata.contributor usage:
          <contributor>name</contributor>
          -->
          <!-- metadata.creator: A creator's name to store in the SWF metadata-->
          <creator>darkhutgme</creator>
          <!-- metadata.date: The creation date to store in the SWF metadata-->
          <!-- metadata.date usage:
          <date>text</date>
          -->
          <!-- metadata.description: The default description to store in the SWF metadata-->
          <description></description>
          <!-- metadata.language: The language to store in the SWF metadata (i.e. EN, FR)-->
          <language>EN</language>
          <!-- metadata.localized-description: A localized RDF/XMP description to store in the SWF metadata-->
          <!-- metadata.localized-description usage:
          <localized-description>
             <text>string</text>
             <lang>string</lang>
             <lang>string</lang>
          </localized-description>
          -->
          <!-- metadata.localized-title: A localized RDF/XMP title to store in the SWF metadata-->
          <!-- metadata.localized-title usage:
          <localized-title>
             <title>string</title>
             <lang>string</lang>
             <lang>string</lang>
          </localized-title>
          -->
          <!-- metadata.publisher: A publisher's name to store in the SWF metadata-->
          <publisher>darkhutgame</publisher>
          <!-- metadata.title: The default title to store in the SWF metadata-->
          <title>GAME</title>
       </metadata>
       <!-- raw-metadata: XML text to store in the SWF metadata (overrides metadata.* configuration)-->
       <!-- raw-metadata usage:
       <raw-metadata>text</raw-metadata>
       -->
       <!-- remove-unused-rsls: remove RSLs that are not being used by the application-->
       <remove-unused-rsls>true</remove-unused-rsls>
       <!-- resource-bundle-list: prints a list of resource bundles to a file for input to the compc compiler to create a resource bundle SWC file. -->
       <!-- resource-bundle-list usage:
       <resource-bundle-list>filename</resource-bundle-list>
       -->
       <!-- runtime-shared-libraries: a list of runtime shared library URLs to be loaded before the application starts-->
       <!-- runtime-shared-libraries usage:
       <runtime-shared-libraries>
          <url>string</url>
          <url>string</url>
       </runtime-shared-libraries>
       -->
       <!-- runtime-shared-library-path: specifies a SWC to link against, an RSL URL to load, with an optional policy file URL and optional failover URLs -->
       <runtime-shared-library-path>
          <path-element>/opt/flexsdk/4.6.0/frameworks/libs/textLayout.swc</path-element>
          <rsl-url>textLayout_2.0.0.232.swz</rsl-url>
          <policy-file-url></policy-file-url>
          <rsl-url>http://fpdownload.adobe.com/pub/swz/tlf/2.0.0.232/textLayout_2.0.0.232.swz</rsl-url>
          <policy-file-url>http://fpdownload.adobe.com/pub/swz/crossdomain.xml</policy-file-url>
       </runtime-shared-library-path>
       <runtime-shared-library-path>
          <path-element>/opt/flexsdk/4.6.0/frameworks/libs/osmf.swc</path-element>
          <rsl-url>osmf_1.0.0.16316.swz</rsl-url>
          <policy-file-url></policy-file-url>
          <rsl-url>http://fpdownload.adobe.com/pub/swz/flex/4.6.0.23201/osmf_1.0.0.16316.swz</rsl-url>
          <policy-file-url>http://fpdownload.adobe.com/pub/swz/crossdomain.xml</policy-file-url>
       </runtime-shared-library-path>
       <runtime-shared-library-path>
          <path-element>/opt/flexsdk/4.6.0/frameworks/libs/framework.swc</path-element>
          <rsl-url>framework_4.6.0.23201.swz</rsl-url>
          <policy-file-url></policy-file-url>
          <rsl-url>http://fpdownload.adobe.com/pub/swz/flex/4.6.0.23201/framework_4.6.0.23201.swz</rsl-url>
          <policy-file-url>http://fpdownload.adobe.com/pub/swz/crossdomain.xml</policy-file-url>
       </runtime-shared-library-path>
       <runtime-shared-library-path>
          <path-element>/opt/flexsdk/4.6.0/frameworks/libs/charts.swc</path-element>
          <rsl-url>charts_4.6.0.23201.swz</rsl-url>
          <policy-file-url></policy-file-url>
          <rsl-url>http://fpdownload.adobe.com/pub/swz/flex/4.6.0.23201/charts_4.6.0.23201.swz</rsl-url>
          <policy-file-url>http://fpdownload.adobe.com/pub/swz/crossdomain.xml</policy-file-url>
       </runtime-shared-library-path>
       <runtime-shared-library-path>
          <path-element>/opt/flexsdk/4.6.0/frameworks/libs/rpc.swc</path-element>
          <rsl-url>rpc_4.6.0.23201.swz</rsl-url>
          <policy-file-url></policy-file-url>
          <rsl-url>http://fpdownload.adobe.com/pub/swz/flex/4.6.0.23201/rpc_4.6.0.23201.swz</rsl-url>
          <policy-file-url>http://fpdownload.adobe.com/pub/swz/crossdomain.xml</policy-file-url>
       </runtime-shared-library-path>
       <runtime-shared-library-path>
          <path-element>/opt/flexsdk/4.6.0/frameworks/libs/mx/mx.swc</path-element>
          <rsl-url>mx_4.6.0.23201.swz</rsl-url>
          <policy-file-url></policy-file-url>
          <rsl-url>http://fpdownload.adobe.com/pub/swz/flex/4.6.0.23201/mx_4.6.0.23201.swz</rsl-url>
          <policy-file-url>http://fpdownload.adobe.com/pub/swz/crossdomain.xml</policy-file-url>
       </runtime-shared-library-path>
       <runtime-shared-library-path>
          <path-element>/opt/flexsdk/4.6.0/frameworks/libs/advancedgrids.swc</path-element>
          <rsl-url>advancedgrids_4.6.0.23201.swz</rsl-url>
          <policy-file-url></policy-file-url>
          <rsl-url>http://fpdownload.adobe.com/pub/swz/flex/4.6.0.23201/advancedgrids_4.6.0.23201.swz</rsl-url>
          <policy-file-url>http://fpdownload.adobe.com/pub/swz/crossdomain.xml</policy-file-url>
       </runtime-shared-library-path>
       <runtime-shared-library-path>
          <path-element>/opt/flexsdk/4.6.0/frameworks/libs/spark.swc</path-element>
          <rsl-url>spark_4.6.0.23201.swz</rsl-url>
          <policy-file-url></policy-file-url>
          <rsl-url>http://fpdownload.adobe.com/pub/swz/flex/4.6.0.23201/spark_4.6.0.23201.swz</rsl-url>
          <policy-file-url>http://fpdownload.adobe.com/pub/swz/crossdomain.xml</policy-file-url>
       </runtime-shared-library-path>
       <runtime-shared-library-path>
          <path-element>/opt/flexsdk/4.6.0/frameworks/libs/spark_dmv.swc</path-element>
          <rsl-url>spark_dmv_4.6.0.23201.swz</rsl-url>
          <policy-file-url></policy-file-url>
          <rsl-url>http://fpdownload.adobe.com/pub/swz/flex/4.6.0.23201/spark_dmv_4.6.0.23201.swz</rsl-url>
          <policy-file-url>http://fpdownload.adobe.com/pub/swz/crossdomain.xml</policy-file-url>
       </runtime-shared-library-path>
       <runtime-shared-library-path>
          <path-element>/opt/flexsdk/4.6.0/frameworks/libs/sparkskins.swc</path-element>
          <rsl-url>sparkskins_4.6.0.23201.swz</rsl-url>
          <policy-file-url></policy-file-url>
          <rsl-url>http://fpdownload.adobe.com/pub/swz/flex/4.6.0.23201/sparkskins_4.6.0.23201.swz</rsl-url>
          <policy-file-url>http://fpdownload.adobe.com/pub/swz/crossdomain.xml</policy-file-url>
       </runtime-shared-library-path>
       <runtime-shared-library-settings>
          <!-- runtime-shared-library-settings.application-domain: override the application domain an RSL is loaded into. The supported values are 'current', 'default', 'parent', or 'top-level'.-->
          <application-domain>
             <path-element>/opt/flexsdk/4.6.0/frameworks/libs/textLayout.swc</path-element>
             <application-domain-target>default</application-domain-target>
             <path-element>/opt/flexsdk/4.6.0/frameworks/libs/osmf.swc</path-element>
             <application-domain-target>default</application-domain-target>
             <path-element>/opt/flexsdk/4.6.0/frameworks/libs/framework.swc</path-element>
             <application-domain-target>default</application-domain-target>
             <path-element>/opt/flexsdk/4.6.0/frameworks/libs/charts.swc</path-element>
             <application-domain-target>default</application-domain-target>
             <path-element>/opt/flexsdk/4.6.0/frameworks/libs/rpc.swc</path-element>
             <application-domain-target>default</application-domain-target>
             <path-element>/opt/flexsdk/4.6.0/frameworks/libs/mx/mx.swc</path-element>
             <application-domain-target>default</application-domain-target>
             <path-element>/opt/flexsdk/4.6.0/frameworks/libs/advancedgrids.swc</path-element>
             <application-domain-target>default</application-domain-target>
             <path-element>/opt/flexsdk/4.6.0/frameworks/libs/spark.swc</path-element>
             <application-domain-target>default</application-domain-target>
             <path-element>/opt/flexsdk/4.6.0/frameworks/libs/spark_dmv.swc</path-element>
             <application-domain-target>default</application-domain-target>
             <path-element>/opt/flexsdk/4.6.0/frameworks/libs/sparkskins.swc</path-element>
             <application-domain-target>default</application-domain-target>
          </application-domain>
          <!-- runtime-shared-library-settings.force-rsls: force an RSL to be loaded, overriding the removal caused by using the remove-unused-rsls option-->
          <!-- runtime-shared-library-settings.force-rsls usage:
          <force-rsls>
             <path-element>string</path-element>
             <path-element>string</path-element>
          </force-rsls>
          -->
       </runtime-shared-library-settings>
       <!-- size-report: Output an XML-formatted report detailing the size of all code and data linked into the application.-->
       <!-- size-report usage:
       <size-report>filename</size-report>
       -->
       <!-- static-link-runtime-shared-libraries: statically link the libraries specified by the -runtime-shared-libraries-path option.-->
       <static-link-runtime-shared-libraries>false</static-link-runtime-shared-libraries>
       <!-- swf-version: specifies the version of the compiled SWF file.-->
       <swf-version>14</swf-version>
       <!-- target-player: specifies the version of the player the application is targeting. Features requiring a later version will not be compiled into the application. The minimum value supported is "9.0.0".-->
       <target-player>11.1.0</target-player>
       <!-- tools-locale: specifies the locale used by the compiler when reporting errors and warnings.-->
       <!-- tools-locale usage:
       <tools-locale>string</tools-locale>
       -->
       <!-- use-direct-blit: Use hardware acceleration to blit graphics to the screen, where such acceleration is available.-->
       <!-- use-direct-blit usage:
       <use-direct-blit>boolean</use-direct-blit>
       -->
       <!-- use-gpu: Use GPU compositing features when drawing graphics, where such acceleration is available.-->
       <!-- use-gpu usage:
       <use-gpu>boolean</use-gpu>
       -->
       <!-- use-network: toggle whether the SWF is flagged for access to network resources-->
       <use-network>true</use-network>
       <!-- verify-digests: verifies the libraries loaded at runtime are the correct ones.-->
       <verify-digests>true</verify-digests>
       <!-- warnings: toggle the display of warnings-->
       <!-- warnings usage:
       <warnings>boolean</warnings>
       -->
    </flex-config>

    Somewhere in your pom.xml where you are configuring your build dependancies there will be a line <scope>caching</scope> this line is configuring the build to use a flex runtime shared library. This line is generating the error because caching is not a valid dependancy scope in maven 3 however mojos uses it anyway. There was a defect opened against flexmojos; I've linked it below. Froeder's response to the issue was that it was not fixable, that the warning is expected and that we'll have to live with it for now.
    https://issues.sonatype.org/browse/FLEXMOJOS-363?page=com.atlassian.jira.plugin.system.iss uetabpanels%3Achangehistory-tabpanel

  • ASC Inlining Not Working As Expected

    Adobe,
    When using chained inlining, the latest AS3 compiler does not inline the code as excepted. The following class demonstrates this behaviour:
    package {
        import flash.display.Sprite;
        public class Main extends Sprite {
            public function Main() {
                var v:int = func01( 100 );
            [Inline]
            private final function func01( v:int ):int {
                return 100 + func02( v );
            [Inline]
            private final function func02( v:int ):int {
                return 200 + v;
    After that code has been pushed through the compiler with the -inline flag enabled, the code ends up as this:
    public function Main() {
        var v:int = 100 + func02( 100 );
    private final function func01( v:int ):int {
        return 100 + 200 + v;
    private final function func02( v:int ):int {
        return 200 + v;
    So "func02" has been inlined correctly into "func01" but the method call in the constructor is now pointing at "func02" which is not what should be happening. There should be no method calls at all in the constructor, the compiled code should actually look like this:
    public function Main() {
        var v:int = 100 + 200 + 100;
    private final function func01( v:int ):int {
        return 100 + 200 + v;
    private final function func02( v:int ):int {
        return 200 + v;
    The compiler should also be smart enough to change the "var v:int = 100 + 200 + 100" line to "var v:int = 400" after the inlining has been done.
    I thought I should mention this because any programmers who really need to optimise certain parts of their code for games (etc) running at 60Hz are likely to end up disappointed with the performance of the current inlining results. Hopefully this isn't a hard ASC 2.0 limitation and can be resolved soon :-)
    For reference, here is the bytecode outline of the compiled class courtesy of SWF Investigator:
    function Main():* {
        0    getlocal0
        1    pushscope
        2    getlocal0
        3    constructsuper    (0)
        5    pushbyte          100
        7    setlocal2
        8    pushbyte          100
        10   getlocal0
        11   getlocal2
        12   callproperty      private::func02 (1)
        15   add
        16   convert_i // this conversion should not be needed here!
        17   setlocal1
        18   returnvoid
    function private::func01(int):int {
        0    getlocal0
        1    pushscope
        2    pushbyte     100
        4    getlocal1
        5    setlocal2
        6    pushshort    200
        9    getlocal2
        10   add
        11   add
        12   returnvalue
    function private::func02(int):int {
        0    getlocal0
        1    pushscope
        2    pushshort    200
        5    getlocal1
        6    add
        7    returnvalue
    Thanks for you time.

    Hi Bill,
    Overall the inlining that the compiler is currently doing appears to be solid enough - as far as I am aware it is only the chained inlining that needs to be fixed if at all possible.
    Thanks for the reply :-)

  • Changing themes of application in Flex 3

    Hi All ,below is my  mxml file , in which i am trying to change theme of my flex application by selecting the themes in combo box, but it is not working fine.Is there any bug in code ??? How to change the theme of flex application in Flex 3.. Plzz help...
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
    <mx:Script>
    <![CDATA[
               import mx.controls.Alert;
                import mx.collections.ArrayCollection;
                import mx.styles.StyleManager;
                private var cssLoader:URLLoader;
              private var cssRequest:URLRequest;
              [Bindable]
                public var cards:ArrayCollection = new ArrayCollection(
                    [ {label:"Theme 0", data:0},
                      {label:"Theme 1", data:1},
                      {label:"Theme 2", data:2},
                      {label:"Theme 3", data:3} ]);
                   private function closeHandler(event:Event):void {
                   if(event.target.selectedItem.data == 1){
                    cssLoader = new URLLoader();
                    cssRequest = new URLRequest("Alert.css");
                    cssLoader.addEventListener(Event.COMPLETE, cssLoaderComplete);
                    cssLoader.load(cssRequest);
                if(event.target.selectedItem.data == 2){
                  cssLoader = new URLLoader();
                    cssRequest = new URLRequest("Alert1.css");
                    cssLoader.addEventListener(Event.COMPLETE, cssLoaderComplete);
                    cssLoader.load(cssRequest);
                if(event.target.selectedItem.data == 3){
                  cssLoader = new URLLoader(); 
                    cssRequest = new URLRequest("Alert2.css");
                    cssLoader.addEventListener(Event.COMPLETE, cssLoaderComplete);
                    cssLoader.load(cssRequest);
                 private function cssLoaderComplete(event:Event):void
                     var sheet:StyleSheet = new StyleSheet();
                     sheet.parseCSS(cssLoader.data);
                     Application.application.styleSheet = sheet;
    ]]>
    </mx:Script>
    <mx:Button label="Click Me"  x="337" y="148"/>
    <mx:ComboBox dataProvider="{cards}" id="themeCombo" width="100"  change="closeHandler(event);" x="308" y="205"/>
    </mx:Application>

    Hi Bhasker,
    I work for big bank sector corp - Citigroup.,i am using themes to load themes dynamically using style manager class.i wrote a application which have 3 themes as a combo box items. when theme selected the look and feel of the same application's UI screen has to change. for the loading i used below mxml application. please advise me as need to submit this task today to implement all our project.it will be very gr8 if u can help me.
    <?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" xmlns:mx="
    library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600">
     <fx:Script><![CDATA[
    import mx.controls.Alert;
    import mx.styles.StyleManager;
    import mx.events.StyleEvent;
    [Bindable] private var themes:Array = [ "AeonGraphical","Spark","Halo" ];
    private function initApp():void {
    //Initialize the ComboBox to the first theme in the themes Array.
    themesCmbBox.selectedIndex = themes.indexOf(0);
    private function thmsCmbChangeHandler(themeName:String):void {
    themeName= themesCmbBox.selectedLabel;
    if (themeName!=null && themeName == "AeonGraphical") {
    styleManager.loadStyleDeclarations("assets/AeonGraphical/AeonGraphical.swf");
    if (themeName!=null && themeName == "Spark") {
    styleManager.unloadStyleDeclarations("assets/AeonGraphical/AeonGraphical.swf");
    styleManager.loadStyleDeclarations("assets/Spark/spark.swf");
    if (themeName!=null && themeName == "Halo") {
    styleManager.unloadStyleDeclarations("assets/Spark/spark.swf");
    styleManager.loadStyleDeclarations("assets/Halo/halo.swf");
    private function registrationComplete():void {
    Alert.show('Thank you for registering!');
    private function clickClear(event:KeyboardEvent=null):void {
    if(event==null || event.keyCode == 13 ) {
    person.text = "" ;
    addr.text = "" ;
    city.text = "";
    state.text = "" ;
    zip.text = "" ;
    ]]>
    </fx:Script>
     <mx:Form id="Themes">
     <mx:FormItem>  
    <mx:Label text="{'Themes Demo in Flash 4'}" fontSize="35"/>  
    </mx:FormItem>  
    <mx:FormItem label="Themes" >  
    <mx:ComboBox id="themesCmbBox" dataProvider="{themes}" change="thmsCmbChangeHandler(themesCmbBox.selectedLabel)" />  
    </mx:FormItem>  
    <mx:FormItem label="Person Name">
     <mx:TextInput id="person" />
     </mx:FormItem>
     <mx:FormItem label="Street Address">
     <mx:TextInput id="addr"/>
     </mx:FormItem>
     <mx:FormItem label="City">
     <mx:TextInput id="city"/>
     </mx:FormItem>
     <mx:FormItem label="State">
     <mx:TextInput id="state" />
     </mx:FormItem>
     <mx:FormItem label="ZIP Code">
     <mx:TextInput id="zip" />
     </mx:FormItem>  
    </mx:Form>
     <mx:HBox>
     <mx:Button id="sub" label="{'Submit'}" y="100" click="registrationComplete()" />
     <mx:Button id="reset" label="{'Reset'}" buttonDown="clickClear()" keyDown="clickClear(event)" />
     </mx:HBox> 
    </s:Application>
    and i given the compiler option: -theme=${flexlib}/themes/Halo/halo.swc,${flexlib}/themes/Spark/spark.css,${flexlib}/theme s/AeonGraphical/AeonGraphical.css
    i tried with locally project assets path, and framework path nothing work out. and added these themes in the flex-config.xml file also. please advise me ASAP
    Advance Thanks,
    Usha
    Optional Information:
    Computer OS: Windows XP
    Programming Language: mxml/as3
    Compiler: flash 4.1.0

Maybe you are looking for

  • Calling java code from oracle apps form

    I've created my own java .class file and am attempting to call it from an oracle applications form. I am getting a runtime error while running the form, but I don't know what the error is because nothing is being reported to me. I've created the .jav

  • Maximum open Cursors Excedded error - for every transaction

    Hi All, I am getting the maximum opn cursors exceeded error suddenly for every single db transaction i am trying to make in my application. this did not happen previously during my developemnt and testing phase. I have a question here that i tried to

  • Exchange 2007 Public Folder Database cannot be deleted

    We are in the process of decommissioning exchange 2007 server from 2007 <-> 2013 coexistence. All user MailboxDatabases have been sucsessfully removed, however PF Mailbox databases return an error.  "The public folder database 'Public Folder Database

  • Is there a fine tip stylus that works on the iPad/iPhone?

    I am wanting to use the note pad and my finger does not have that fine of point and most of the stylus I have seen have the 5mm rubber head and that is not optimal for note taking / drawing items.  I am looking for something with a finer point.

  • Upgrading to Final Cut Studio 2

    I just bought Final Cut Studio from a reseller about 3 weeks ago... now the new version gets released. Is there a way to upgrade to the new version without spending $499? There must be something for those of us just making this purchase without feeli