Return-Path: X-Original-To: apmail-flex-commits-archive@www.apache.org Delivered-To: apmail-flex-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 80FB4119EE for ; Wed, 3 Sep 2014 22:49:43 +0000 (UTC) Received: (qmail 62288 invoked by uid 500); 3 Sep 2014 22:49:43 -0000 Delivered-To: apmail-flex-commits-archive@flex.apache.org Received: (qmail 62168 invoked by uid 500); 3 Sep 2014 22:49:43 -0000 Mailing-List: contact commits-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 commits@flex.apache.org Received: (qmail 62045 invoked by uid 99); 3 Sep 2014 22:49:43 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Sep 2014 22:49:43 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id F3D079B29A8; Wed, 3 Sep 2014 22:49:42 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: jmclean@apache.org To: commits@flex.apache.org Date: Wed, 03 Sep 2014 22:49:46 -0000 Message-Id: <73af553f806b44c8bec17ad47c641dff@git.apache.org> In-Reply-To: <1186597fb7b744c6bad6a284a9ea070e@git.apache.org> References: <1186597fb7b744c6bad6a284a9ea070e@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [05/50] [abbrv] git commit: [flex-utilities] [refs/heads/master] - FLEX-34500 show total number of examples in Tour De Flex UI FLEX-34500 show total number of examples in Tour De Flex UI Project: http://git-wip-us.apache.org/repos/asf/flex-utilities/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-utilities/commit/eaff7558 Tree: http://git-wip-us.apache.org/repos/asf/flex-utilities/tree/eaff7558 Diff: http://git-wip-us.apache.org/repos/asf/flex-utilities/diff/eaff7558 Branch: refs/heads/master Commit: eaff755831d1ce5c7f845c8d76df7d3a7e406de1 Parents: daf9841 Author: Justin Mclean Authored: Wed Aug 27 14:17:56 2014 +1000 Committer: Justin Mclean Committed: Wed Aug 27 14:17:56 2014 +1000 ---------------------------------------------------------------------- TourDeFlex/TourDeFlex3/src/explorer.mxml | 7 +++++++ 1 file changed, 7 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/eaff7558/TourDeFlex/TourDeFlex3/src/explorer.mxml ---------------------------------------------------------------------- diff --git a/TourDeFlex/TourDeFlex3/src/explorer.mxml b/TourDeFlex/TourDeFlex3/src/explorer.mxml index 646827a..7a1443d 100755 --- a/TourDeFlex/TourDeFlex3/src/explorer.mxml +++ b/TourDeFlex/TourDeFlex3/src/explorer.mxml @@ -30,12 +30,17 @@ [Embed(source="explorer.xml", mimeType="application/octet-stream")] private var XMLData:Class; + [Bindable] + protected var noExamples:int = 0; + private function init():void { var data:XML = XML(new XMLData()); explorerTree = XML(data.node); compLibTree.dataProvider = explorerTree; + + noExamples = (explorerTree..node.(hasOwnProperty("@app") && @app.length() > 0)).length(); } private function treeChanged(event:Event):void @@ -66,6 +71,8 @@ + +