Return-Path: X-Original-To: apmail-incubator-flex-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-flex-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4F0FCECCE for ; Thu, 6 Dec 2012 20:27:58 +0000 (UTC) Received: (qmail 46845 invoked by uid 500); 6 Dec 2012 20:27:57 -0000 Delivered-To: apmail-incubator-flex-dev-archive@incubator.apache.org Received: (qmail 46798 invoked by uid 500); 6 Dec 2012 20:27:57 -0000 Mailing-List: contact flex-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: flex-dev@incubator.apache.org Delivered-To: mailing list flex-dev@incubator.apache.org Received: (qmail 46787 invoked by uid 99); 6 Dec 2012 20:27:57 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Dec 2012 20:27:57 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [209.85.210.176] (HELO mail-ia0-f176.google.com) (209.85.210.176) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Dec 2012 20:27:50 +0000 Received: by mail-ia0-f176.google.com with SMTP id k32so5621495iak.35 for ; Thu, 06 Dec 2012 12:27:29 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:x-gm-message-state; bh=RduXx0nakT11+egAj9jU60DBAztZt3WYbr2UWGAh4TU=; b=S/y0J1eXC1MiT/m0WrkMZaMOfah+KO7UepHa59VgOji3CIhPi0ykcBw1UnbA3Rlnkd QXxaJWXmaqRu9U/Ex+0oqToqjxVz4AnLHdj7fiYsKQ0Eyv4dy1g9EK0TwTOu5riTxAJ4 naUjSqvJ70I+2azLI8hzxcMX3jQhEFSOaLKjd/CGu6XEkMBoVJBCxgKcEqT4hBQA7aPP 75zNJ8RsJXLNs0dHzR14veZCNFiZ0gyNyBzXGYiG0sUWOxfV8x9QvFg9ICpE9yBdBqiw hLAj04ky43fNzepWJR+WfWvr7ptvGW29PhPgzSsnuVL0FQoC6csLfKfLPINLK9BRPFlH yvaw== MIME-Version: 1.0 Received: by 10.50.160.165 with SMTP id xl5mr2863286igb.54.1354825649058; Thu, 06 Dec 2012 12:27:29 -0800 (PST) Received: by 10.64.34.234 with HTTP; Thu, 6 Dec 2012 12:27:28 -0800 (PST) In-Reply-To: <20121206143942.99854rj0sybwriwu@franklin.liquidweb.com> References: <20121206105656.10162rgyv4cdtlqg@franklin.liquidweb.com> <20121206130132.87644dj9e000geik@franklin.liquidweb.com> <20121206143942.99854rj0sybwriwu@franklin.liquidweb.com> Date: Thu, 6 Dec 2012 21:27:28 +0100 Message-ID: Subject: Re: [ASJS] Some information on "templates" From: Erik de Bruin To: "flex-dev@incubator.apache.org" Content-Type: multipart/alternative; boundary=14dae9340efd8b74fb04d034edeb X-Gm-Message-State: ALoCoQlDJVXiUcQ3pGS6zSXY3q/9kN5VLy6P9hyyqYFYm/3JoYq3ZCjFB6tW4h6pZZboJFMCebbw X-Virus-Checked: Checked by ClamAV on apache.org --14dae9340efd8b74fb04d034edeb Content-Type: text/plain; charset=ISO-8859-1 No framework classes are cross compiled. Only project AS files are run through FalconJS before they are combined with the JS framework through the Closure Builder. The AS framework is there to allow for project development in Flash Builder. Our job as developers is to provide both sides of the fence (AS and JS framework) with matching functionality so the compiled project JS files will behave the same in a browser as their AS equivalent does in the Flash Player. EdB On Thursday, December 6, 2012, Michael @er5ik68Schmalle wrote: > Erik, > > I'm trying to get clear on something. > > What exact classes or interfaces get translated from .as to .js from the > framework directories? > > What files are going to be maintained by hand and tests? I'm still a bit > confused to the flow. > > You have FlexObject.js, FlexGlobals.js which obviously has no correlation > in .as. What about that? > > > Mike > > > > > Quoting Erik de Bruin : > > That looks very promising! Some tweaking is needed, and some of the > output (the bottom part mostly, I guess that is for some kind of > introspection that is in my template provided by other methods) isn't > needed, at least not from what I understand. > > I'll look into the details of the new output tomorrow and indicate if > and what changes would be nice ;-) > > EdB > > > On Thu, Dec 6, 2012 at 7:01 PM, Michael Schmalle > wrote: > > Hi, > > Right now after about 5 hours of researching and messing around I can get > the following using the closure compiler flag; > > //============================**==============================**======= > AS CODE > > > package com.example.components > { > > import flash.display.Sprite; > > public class MyTextButton extends Sprite > { > public function MyTextButton() > > { > super(); > } > > private var _privateVar:String = "do "; > > public var publicProperty:Number = 100; > > public function myFunction(value: String): String > { > return "Don't " + _privateVar + value; > } > } > } > > > //============================**==============================**======= > JS CODE > > /** @preserve CROSS-COMPILED BY MXMLJSC (329449.1) ON 2012-12-06 12:55:52 > */ > /** > * CROSS-COMPILED BY MXMLJSC (329449.1) ON 2012-12-06 12:52:19 > * > * Class: com.example.components.**MyTextButton > * @constructor > * @extends flash.display.Sprite > */ > > // Constructor > > > /** > * Constructor: com.example.components.**MyTextButton() > * @constructor > * @this {com.example.components} > */ > com.example.components.**MyTextButton = function() > { > var self = this; > self.publicProperty /* : Number */ = 100; > goog.base(this); > return self; > } > > > goog.inherits(com.example.**components.MyTextButton, > flash.display.Sprite); > > /** > * Member: com.example.components.**MyTextButton.prototype._CLASS > * @const > * @type {com.example.components.**MyTextButton} > */ > com.example.components.**MyTextButton.prototype._CLASS = > com.example.components.**MyTextButton; > ; > > /** > * Member: com.example.components.**MyTextButton._privateVar > > * @private > * @type {string} > */ > com.example.components.**MyTextButton.prototype._**privateVar /* : String > */ = > "do "; > ; > > /** > * Member: com.example.components.**MyTextButton.publicProperty > * @type {number} > */ > com.example.components.**MyTextButton.prototype.**publicProperty /* : > Number */ > = 100; > ; > > > /** > * Method: com.example.components.**MyTextButton.myFunction() > * @this {com.example.components.**MyTextButton} > * @param {string} value > * @return {string} > */ > com.example.components.**MyTextButton.prototype.**myFunction = > function(value /* > : String */) /* : String */ > { > /** @type {com.example.components.**MyTextButton} */ > var self = this; > return (("Don't " + self._privateVar) + value); > } > > /** > * Member: com.example.components.**MyTextButton._PACKAGE > * @const > * @type {com.example.components} > */ > com.example.components.**MyTextButton._PACKAGE = com.example.components; > > > /** > * Member: com.example.components.**MyTextButton._NAME > * @const > * @type {string} > */ > com.example.components.**MyTextButton._NAME = "MyTextButton"; > > /** > * Member: com.example.components.**MyTextButton._FULLNAME > * @const > * @type {string} > */ > com.example.components.**MyTextButton._FULLNAME = > "com.example.components.**MyTextButton"; > > /** > * Member: com.example.components.**MyTextButton._SUPER > * @const > * @type {flash.display.Sprite} > */ > com.example.components.**MyTextButton._SUPER = flash.display.Sprite; > > /** > * Member: com.example.components.**MyTextButton._NAMESPACES > * @const > * @type {Object} > */ > com.example.components.**MyTextButton._NAMESPACES = { > "_privateVar::7:com.example.**components.MyTextButton" : tr > > -- Ix Multimedia Software Jan Luykenstraat 27 3521 VB Utrecht T. 06-51952295 I. www.ixsoftware.nl --14dae9340efd8b74fb04d034edeb--