kennylerma commented on issue #36: Slow Compiler Build Time
URL: https://github.com/apache/royale-compiler/issues/36#issuecomment-377091290
 
 
   @bigosmallm I've actually used that same tool that Josh Tynjala made to 
create a swc for CreateJS and @aharui I've created AS3 stubs to create swc 
files for other javascript libraries before too, but never added typedef to 
javascript.  With the Animate output, I still need to extend the resulting 
classes.  Basically, I'm trying to keep the original workflow using Animate 
where you can extend classes and write some basic timeline code.  This is all 
to minimize the impact on workflow for the company I'm at as we transition to 
HTML5.
   
   Also, is there a way to include the external javascript in the build 
process, so closure will combine it with the minified version?
   
   Here's the resulting ActionScript for the Circle.
   ```javascript
   package com.flagger.AnimateTest
   {
        import createjs.*;
   
        public class GreenCircle extends MovieClip
        {
                public var shape:Shape;
   
                public function GreenCircle(mode:String="0", 
startPosition:Number=0, loop:Boolean=false, labels:Object=0){
                        super();
                        timeline.setLabels({});
                        setBounds(0,0,155,155);
                
                        // Layer_1
                        shape = new Shape();
                        shape.name = "shape";
                        
shape.graphics.f("#00FF00").p("AojIkQjjjjAAlBQAAlADjjjQDjjjFAAAQFBAADjDjQDjDjAAFAQAAFBjjDjQjjDjlBAAQlAAAjjjjg");
                        shape.setTransform(77.5,77.5);
                
                        timeline.addTween(Tween.get(shape).wait(1));
                
                }
        }
   }
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to