Return-Path: X-Original-To: apmail-flex-dev-archive@www.apache.org Delivered-To: apmail-flex-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 28D3A108E0 for ; Wed, 26 Feb 2014 08:50:30 +0000 (UTC) Received: (qmail 99577 invoked by uid 500); 26 Feb 2014 08:50:29 -0000 Delivered-To: apmail-flex-dev-archive@flex.apache.org Received: (qmail 99554 invoked by uid 500); 26 Feb 2014 08:50:28 -0000 Mailing-List: contact dev-help@flex.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flex.apache.org Delivered-To: mailing list dev@flex.apache.org Received: (qmail 99543 invoked by uid 99); 26 Feb 2014 08:50:27 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Feb 2014 08:50:27 +0000 X-ASF-Spam-Status: No, hits=1.7 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of omuppi1@gmail.com designates 209.85.128.177 as permitted sender) Received: from [209.85.128.177] (HELO mail-ve0-f177.google.com) (209.85.128.177) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Feb 2014 08:50:22 +0000 Received: by mail-ve0-f177.google.com with SMTP id db12so1817020veb.22 for ; Wed, 26 Feb 2014 00:50:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:content-type; bh=kp9KrROrLGoITo8WEnwRxwtxsxq+p8hanooQ3XUQiUQ=; b=nmv/MEWMZIRWjQJ8dAXLmQWP5ZHRefyFYKWUwgchnjYlUbgdlBnrxBnEKRe+rf7NtB DUrikuIAqDn3/sYH0OM04L3RjNSZkphKrS1CdVT3mNjnB6sd/Pufpt9k/C+zWg957y/M ibSe540Z0QOB6EJPp03MffhttkbKiQpKoexUtAiPArAFKNEVGt/fNXHwc82RBIsoVDPz 0rd4gGbJFnIUIQOAITnLDswNg35kfc75p6H2yVOznsT9EV9PmP+E8Oncq24hOJ7Z/+Bo ZQuFoiNeTauxQ1ADfO4GeIu6zS6VbNpJ/U4UtWOGadhj/Lym5ic1k+bE/4cNMg7YyERs 4eNQ== X-Received: by 10.58.59.100 with SMTP id y4mr4985481veq.4.1393404602012; Wed, 26 Feb 2014 00:50:02 -0800 (PST) MIME-Version: 1.0 Sender: omuppi1@gmail.com Received: by 10.58.209.71 with HTTP; Wed, 26 Feb 2014 00:49:31 -0800 (PST) In-Reply-To: References: From: OmPrakash Muppirala Date: Wed, 26 Feb 2014 00:49:31 -0800 X-Google-Sender-Auth: dlk5w0Xvs6kvHB2J4pnf6D_RRRY Message-ID: Subject: Re: [FlexJS] SVG based TextButton and example checked in To: "dev@flex.apache.org" Content-Type: multipart/alternative; boundary=047d7b5d8c8354dcf004f34b4a48 X-Virus-Checked: Checked by ClamAV on apache.org --047d7b5d8c8354dcf004f34b4a48 Content-Type: text/plain; charset=ISO-8859-1 On Wed, Feb 26, 2014 at 12:32 AM, Erik de Bruin wrote: > 1. I can add a file copy pass to the publish operation of the compiler > easily enough, but we need to discuss the best option: > - copy all 'non-JS and non-CSS' files, whether or not they are actually > used > - copy only the files that belong to classes that are actually used > (would require strict naming convention and some compiler intelligence) > - pass in the files to copy as a compiler argument (that's going to get > unpractical really, really quickly) > > As Alex mentioned, how about a goog.require for the svg file? Any chance we can do that for an entire directory? I do see that in the examples/ListsTest project, the image files are getting copied over into the js version. How is that working? > 2. I can help with the Closure JS stuff. Do you have an example where you > are "nearly there"? > Yes, please look at examples/FlexJSTest_SVG. Running "ant" in that directory should just work. > > EdB > > > > > On Wed, Feb 26, 2014 at 2:05 AM, OmPrakash Muppirala > wrote: > > > I just checked an updated version of the SVG/JS based TextButton > > component. A lot of things work as I expected. The skin looks exactly > > like the Spark button skin, the button is positioned and sized correctly, > > etc. They work with Firefox,Chrome and IE10. A few outstanding issues > are > > there that I would like to get some info/suggestions on: > > > > 1. When I compile the app using FlexJS build, the directory with the SVG > > skins do not get copied over into the bin/js-* directory. For example, > in > > the SDK, the SVG files are here: > > > -frameworks\js\FlexJS\src\org\apache\flex\svg\staticControls\TextButton.js > > -frameworks\js\FlexJS\src\org\apache\flex\svg\staticControls\skins > > > > > --frameworks\js\FlexJS\src\org\apache\flex\svg\staticControls\skins\TextButtonSkin.svg > > > > How do I force the compiler to copy the skins directory as well to the > > output directories? > > Note, that when I copy them over manually after the build is done, > > everything works fine. > > > > 2. I have built a primitive event passing mechanism with my SVG skins. > I > > would like some suggestions on how to wire it up with FlexJS's event > > model. > > Where is the code that attaches event handlers to buttons? Any chance I > > can get a handle to this event handler function inside TextButton.js? I > > need this because I want to inject it as into the SVG skin. > > > > Background: When using an SVG in an embed directive, the SVG document > eats > > all the mouse events. So, I am passing event handlers into the SVG > > document (from the parent) which can then be called from within the > > document itself. > > > > 3. Now that we have JS side looking like a (spark) Flex button, perhaps > we > > can make the AS side look the same? Any ideas of adding FXG support to > the > > AS side? What would be the best way to approach this? > > > > Thanks, > > Om > > > > > > -- > Ix Multimedia Software > > Jan Luykenstraat 27 > 3521 VB Utrecht > > T. 06-51952295 > I. www.ixsoftware.nl > --047d7b5d8c8354dcf004f34b4a48--