incubator-flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bigosma...@apache.org
Subject svn commit: r1360962 [3/4] - in /incubator/flex/utilities/InstallApacheFlex: ./ .settings/ libs/ src/ src/assets/ src/assets/fonts/ src/assets/fonts/open-sans/ src/assets/icons/ src/assets/styles/ src/org/ src/org/apache/ src/org/apache/flex/ src/org/a...
Date Thu, 12 Jul 2012 21:33:52 GMT
Added: incubator/flex/utilities/InstallApacheFlex/src/org/apache/flex/packageflexsdk/model/OptionalComponentVO.as
URL: http://svn.apache.org/viewvc/incubator/flex/utilities/InstallApacheFlex/src/org/apache/flex/packageflexsdk/model/OptionalComponentVO.as?rev=1360962&view=auto
==============================================================================
--- incubator/flex/utilities/InstallApacheFlex/src/org/apache/flex/packageflexsdk/model/OptionalComponentVO.as (added)
+++ incubator/flex/utilities/InstallApacheFlex/src/org/apache/flex/packageflexsdk/model/OptionalComponentVO.as Thu Jul 12 21:33:49 2012
@@ -0,0 +1,44 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  Licensed to the Apache Software Foundation (ASF) under one or more
+//  contributor license agreements.  See the NOTICE file distributed with
+//  this work for additional information regarding copyright ownership.
+//  The ASF licenses this file to You under the Apache License, Version 2.0
+//  (the "License"); you may not use this file except in compliance with
+//  the License.  You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+//  Unless required by applicable law or agreed to in writing, software
+//  distributed under the License is distributed on an "AS IS" BASIS,
+//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//  See the License for the specific language governing permissions and
+//  limitations under the License.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package org.apache.flex.packageflexsdk.model
+{
+	[Bindable]
+	public class OptionalComponentVO
+	{
+		public var label:String;
+		public var message:String;
+		public var required:Boolean;
+		public var selected:Boolean;
+		public var installed:Boolean=false;
+		public var aborted:Boolean=false;
+		public var answered:Boolean = false;
+		
+		public function OptionalComponentVO(label:String,message:String,required:Boolean,selected:Boolean=false,installed:Boolean=false,aborted:Boolean=false,answered:Boolean=false)
+		{
+			this.label = label;
+			this.message = message;
+			this.required = required;
+			this.selected = selected;
+			this.installed = installed;
+			this.aborted = aborted;
+			this.answered = answered;
+		}
+	}
+}
\ No newline at end of file

Added: incubator/flex/utilities/InstallApacheFlex/src/org/apache/flex/packageflexsdk/resource/RuntimeLocale.as
URL: http://svn.apache.org/viewvc/incubator/flex/utilities/InstallApacheFlex/src/org/apache/flex/packageflexsdk/resource/RuntimeLocale.as?rev=1360962&view=auto
==============================================================================
--- incubator/flex/utilities/InstallApacheFlex/src/org/apache/flex/packageflexsdk/resource/RuntimeLocale.as (added)
+++ incubator/flex/utilities/InstallApacheFlex/src/org/apache/flex/packageflexsdk/resource/RuntimeLocale.as Thu Jul 12 21:33:49 2012
@@ -0,0 +1,434 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  Licensed to the Apache Software Foundation (ASF) under one or more
+//  contributor license agreements.  See the NOTICE file distributed with
+//  this work for additional information regarding copyright ownership.
+//  The ASF licenses this file to You under the Apache License, Version 2.0
+//  (the "License"); you may not use this file except in compliance with
+//  the License.  You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+//  Unless required by applicable law or agreed to in writing, software
+//  distributed under the License is distributed on an "AS IS" BASIS,
+//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//  See the License for the specific language governing permissions and
+//  limitations under the License.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+
+package org.apache.flex.packageflexsdk.resource
+{
+	import mx.collections.ArrayCollection;
+	import mx.resources.IResourceManager;
+	import mx.resources.ResourceBundle;
+	import mx.resources.ResourceManager;
+
+	public class RuntimeLocale
+	{
+		
+		private var _supportedLanguage:ArrayCollection;
+		
+		public function get supportedLanguage():ArrayCollection
+		{
+			return _supportedLanguage;
+		}
+		public function set supportedLanguage(value:ArrayCollection):void
+		{
+			_supportedLanguage = value;
+		}	
+		
+		
+		private var _defaultLanguage:String;
+
+		public function get defaultLanguage():String
+		{
+			return _defaultLanguage;
+		}
+
+		public function set defaultLanguage(value:String):void
+		{
+			_defaultLanguage = value;
+		}
+		
+		
+		public function RuntimeLocale()
+		{
+			_defaultLanguage = "en_US";
+			_supportedLanguage = new ArrayCollection;
+			_supportedLanguage.addItem({label:"English(United States)", data:"en_US"});
+			_supportedLanguage.addItem({label:"English(United Kingdom)", data:"en_GB"});
+			_supportedLanguage.addItem({label:"English(Australia)", data:"en_AU"});
+			_supportedLanguage.addItem({label:"Dutch", data:"nl_NL"});
+			_supportedLanguage.addItem({label:"Greek", data:"el_GR"});
+			
+			installResourcers_en_US();
+			installResourcers_el_GR();
+			installResourcers_en_AU();
+			installResourcers_el_GR();
+			installResourcers_nl_NL();
+		}
+		public function enumerateBundles():void 
+		{
+			trace ("");
+			trace ("");
+			var _resourceManager:IResourceManager = ResourceManager.getInstance();
+			var bundleName:String = "messagestrings";
+			{
+				var bundle:ResourceBundle = ResourceBundle(_resourceManager.getResourceBundle("en_US", bundleName));
+				for (var key:String in bundle.content) 
+				{
+					trace ('_resource.content["' + key +'"]=' + '"' +bundle.content[key]+'";');
+				}
+			}
+		}
+
+		protected function installResourcers_en_US():void
+		{
+			var _resourceManager:IResourceManager = ResourceManager.getInstance();
+			var _resource:ResourceBundle = new ResourceBundle("en_US", "messagestrings");
+			
+			_resource.content["browse_btn_label"]="BROWSE";
+			_resource.content["install_log_btn_label"]="INSTALL LOG";
+			_resource.content["install_btn_label"]="INSTALL";
+			_resource.content["close_btn_label"]="CLOSE";
+			_resource.content["select_path_prompt"]="Where do you want to install the Apache Flex SDK?";
+			_resource.content["next_btn_label"]="NEXT";
+			_resource.content["show_mpl_license_btn_label"]="SHOW MPL LICENSE";
+			_resource.content["show_adobe_license_btn_label"]="SHOW ADOBE LICENSE";
+			_resource.content["open_apache_flex_folder_btn_label"]="OPEN APACHE FLEX FOLDER";
+
+			_resource.content["info_dowloading_air_runtime_kit_mac"]="Downloading Adobe AIR Runtime Kit for Mac from: ";
+			_resource.content["info_finished_untaring"]="Finished untaring: ";
+			_resource.content["info_dowloading_air_runtime_kit_windows"]="Downloading Adobe AIR Runtime Kit for Windows from: ";
+			_resource.content["info_invoked_gui_mode"]="invoked in GUI mode";
+			_resource.content["info_enter_valid_flex_sdk_path"]="Please enter valid directory path for the Flex SDK";
+			_resource.content["info_select_directory"]="Select the directory where you want to install the Flex SDK";
+			_resource.content["info_app_invoked"]="Invoked in command line mode with the following arguments: ";
+			_resource.content["info_downloaded"]="Download complete ";
+			_resource.content["info_abort_installation"]="Aborting Installation";
+			_resource.content["info_unzipping"]="Uncompressing: ";
+			_resource.content["info_installing_playerglobal_swc"]="Installing Adobe Flash Player playerglobal.swc from: ";
+			_resource.content["info_installing_config_files"]="Installing frameworks configuration files configured for use with an IDE";
+			_resource.content["info_creating_temp_dir"]="Creating temporary directory";
+			_resource.content["info_installation_complete"]="Installation complete.";
+			_resource.content["info_finished_unzipping"]="Finished uncompressing: ";
+			_resource.content["info_dowloading_flex_sdk"]="Downloading Apache Flex SDK from: ";
+			_resource.content["info_dowloading_adobe_flex_sdk"]="Downloading Adobe Flex SDK from: ";
+			_resource.content["info_dowloading_file_from"]="Downloading {0} from: {1}";
+			_resource.content["info_need_to_read_and_agree_to_license"]="These components have license agrements other than the Apache License.  " +
+																		"Please click on each item on the left, read the license and confirm that you agree " +
+																		"to the terms of each license.";
+			_resource.content["info_installing"]="Installing...";
+			
+			_resource.content["error_unable_to_copy_file"]="Unable to copy file ";
+			_resource.content["error_config_xml_load"]="Error while trying to load XML configuration file: ";
+			_resource.content["error_unable_to_download_flash_player_swc"]="Unable to download Flash Player swc";
+			_resource.content["error_unable_to_delete_temp_directory"]="Unable to clean up temporary installation directories";
+			_resource.content["error_unable_to_download_air_sdk"]="Unable to download Adobe AIR Runtime Kit";
+			_resource.content["error_invalid_flash_player_swc_url"]="Flash Player swc URL invalid in configuration file";
+			_resource.content["error_unsupported_operating_system"]="Unsupported operating system";
+			_resource.content["error_invalid_sdk_url"]="Apache Flex SDK URL invalid in configuration file";
+			_resource.content["error_invalid_air_sdk_url_mac"]="Adobe AIR SDK URL for Mac invalid in configuration file";
+			_resource.content["info_creating_flex_home"]="Creating Apache Flex home";
+			_resource.content["error_native_process_error"]="Native Process error unable to untar Adobe AIR SDK";
+			_resource.content["error_invalid_air_sdk_url_windows"]="Adobe AIR SDK URL for Windows invalid in configuration file";
+			_resource.content["error_unable_to_download_flex_sdk"]="Unable to download Apache Flex SDK";
+			_resource.content["error_native_process_not_supported"]="Native Process not supported.  Unable to untar Adobe AIR SDK";
+			_resource.content["error_unable_to_create_temp_directory"]="Unable to create temporary directory";
+			_resource.content["error_invalid_flex_sdk_directory"]="Invalid Flex SDK directory selected";
+			_resource.content["error_unable_to_install_config_files"]="Unable to install configuration files";
+			_resource.content["error_unable_to_download_file"]="Unable to download {0}";
+			_resource.content["error_unable_to_unzip"]="Unable to unzip file: ";
+			_resource.content["error_dir_not_empty"]="The selected directory is not empty";
+			
+			
+			_resource.content["config_url"]="http://people.apache.org/~bigosmallm/installapacheflex/ApacheFlexConfig.xml";
+			_resource.content["apache_flex_url"]="http://incubator.apache.org/flex/";
+			_resource.content["adobe_flex_sdk_license_url"]="http://www.adobe.com/products/eulas/pdfs/adobe_flex_software_development_kit-combined-20110916_0930.pdf"
+
+			_resource.content["step_download_air_runtime_kit"]="Download Adobe AIR Runtime Kit";
+			_resource.content["step_unzip_air_runtime_kit"]="Uncompress Adobe AIR Runtime Kit";
+			_resource.content["step_unzip_flex_sdk"]="Uncompress Apache Flex SDK";
+			_resource.content["step_download_flashplayer_swc"]="Download Flash Player swc";
+			_resource.content["step_download_flex_sdk"]="Download Apache Flex SDK";
+			_resource.content["step_install_config_files"]="Install Framework Configuration Files";
+			_resource.content["step_create_directories"]="Create Directories";
+			_resource.content["step_optional_install_FontSwf"]="Adobe Fontswf Utility (Optional)";
+			_resource.content["step_optional_install_BlazeDS"]="BlazeDS (Optional)";
+			_resource.content["step_optional_install_TLF"]="Adobe Text Layout Framework (Required)";
+			_resource.content["step_optional_install_OSMF"]="OSMF (Required)";
+			
+			//Optional install prompts
+			_resource.content["install"] = "I Agree, Install"
+			_resource.content["dont_install"] = "I Disagree, Don't Install"
+			_resource.content["ask_osmf"]="The Open Source Media Framework (OSMF) used by the video components is licensed under the Mozilla Public License Version 1.1.";
+			_resource.content["ask_tlf"]="The Adobe Text Layout Framework (TLF) used by the Spark text components is licensed under the Mozilla Public License Version 1.1.";
+			_resource.content["ask_fontswf"]="Apache Flex can optionally integrate with Adobe's embedded font support.  " +
+											"This feature requires a few font jars from the Adobe Flex SDK.  " +
+											"The Adobe SDK license agreement for Adobe Flex 4.6 applies to these jars.  " +
+											"This license is not compatible with the Apache v2 license.  " +
+											"Do you want to install these jars from the Adobe Flex SDK?";
+
+			_resource.content["ask_blazeds"]="Apache Flex can optionally integrate with Adobe BlazeDS.  " +
+												"This feature requires flex-messaging-common.jar from the Adobe Flex SDK.  " +
+												"The Adobe SDK license agreement for Adobe Flex 4.6 applies to this jar.  " +
+												"This license is not compatible with the Apache v2 license.  " +
+												"Do you want to install this jar from the Adobe Flex SDK?"
+			
+			_resourceManager.addResourceBundle(_resource);
+			_resourceManager.update();
+		}
+		
+		protected function installResourcers_el_GR():void
+		{
+			var _resourceManager:IResourceManager = ResourceManager.getInstance();
+			var _resource:ResourceBundle = new ResourceBundle("el_GR", "messagestrings");
+
+			_resource.content["browse_btn_label"]="Αναζήτηση";
+			_resource.content["install_log_btn_label"]="αρχείο καταγραφής εγκατάστασης";
+			_resource.content["install_btn_label"]="Εγκατάσταση";
+			_resource.content["close_btn_label"]="Έξοδος";
+			_resource.content["select_path_prompt"]="Πληκτρολογήστε η επιλέξτε μια έγκυρη διαδρομή για το Flex SDK";
+			
+			_resource.content["info_dowloading_air_runtime_kit_mac"]="Λήψη Adobe AIR Runtime Kit για Mac από:";
+			_resource.content["info_finished_untaring"]="Η αποσυμπίεση τελείωσε:";
+			_resource.content["info_dowloading_air_runtime_kit_windows"]="Λήψη Adobe AIR Runtime Kit για Windows από:";
+			_resource.content["info_invoked_gui_mode"]="Κλήση με λειτουργία γραφικού περιβάλλοντος";
+			_resource.content["info_enter_valid_flex_sdk_path"]="Παρακαλώ εισάγετε μια έγκυρη διαδρομή καταλόγου για το the Flex SDK";
+			_resource.content["info_installing_playerglobal_swc"]="Εγκατάσταση Adobe Flash Player playerglobal.swc από:";
+			_resource.content["info_installation_complete"]="Η εγκατάσταση ολοκληρώθηκε.";
+			_resource.content["info_creating_temp_dir"]="Δημιουργία προσωρινού καταλόγου";
+			_resource.content["info_dowloading_flex_sdk"]="Λήψη Apache Flex SDK από:";
+			_resource.content["info_creating_flex_home"]="Δημιουργία αρχικού καταλόγου για Apache Flex";
+			_resource.content["info_finished_unzipping"]="Η αποσυμπίεση τελείωσε:";
+			_resource.content["info_downloaded"]="Η λήψη ολοκληρώθηκε";
+			_resource.content["info_select_directory"]="Επιλέξτε ένα κατάλογο";
+			_resource.content["info_app_invoked"]="Κλήση με λειτουργία γραμμής εντολών με τα ακόλουθα ορίσματα:";
+			_resource.content["info_abort_installation"]="Ματαίωση εγκατάστασης";
+			_resource.content["info_installing_config_files"]="Εγκατάσταση αρχείων ρυθμίσεων για  frameworks ρυθμισμένα για χρήση IDE";
+			_resource.content["info_unzipping"]="Ααποσυμπίεση: ";
+			
+			_resource.content["error_unable_to_download_flash_player_swc"]="Δεν είναι δυνατή η λήψη του Flash Player swc";
+			_resource.content["error_native_process_error"]="Λάθος στο Native Process Δεν είναι δυνατή η αποσυμπίεση (untar) του Adobe AIR SDK";
+			_resource.content["error_unsupported_operating_system"]="Δεν υποστηρίζεται το λειτουργικό σύστημα";
+			_resource.content["error_invalid_air_sdk_url_mac"]="Άκυρο Adobe AIR SDK URL για Mac στο αρχείο ρυθμίσεων";
+			_resource.content["error_invalid_sdk_url"]="Ακυρο Apache Flex SDK URL στο αρχείο ρυθμίσεων.";
+			_resource.content["error_unable_to_download_flex_sdk"]="Δεν είναι δυνατή η λήψη του Apache Flex SDK";
+			_resource.content["error_native_process_not_supported"]="Native Process δεν υποστηρίζεται.  Δεν είναι δυνατή η αποσυμπίεση(untar)του Adobe AIR SDK";
+			_resource.content["error_invalid_air_sdk_url_windows"]="Άκυρο Adobe AIR SDK URL για Windows στο αρχείο ρυθμίσεων";
+			_resource.content["error_invalid_flash_player_swc_url"]="Άκυρο Flash Player swc URL στο αρχείο ρυθμίσεων";
+			_resource.content["error_config_xml_load"]="Πρόεκυψε σφάλμα στην προσπάθεια φόρτωσης του αρχείου ρυθμίσεων XML:";
+			_resource.content["error_unable_to_delete_temp_directory"]="Δεν είναι δυνατή η εκκαθάριση των προσωρινών καταλόγων εγκατάστασης";
+			_resource.content["error_unable_to_copy_file"]="Δεν είναι δυνατή η αντιγραφή του αρχείου ";
+			_resource.content["error_unable_to_download_air_sdk"]="Δεν είναι δυνατή η λήψη του Adobe AIR Runtime Kit";
+			_resource.content["error_unable_to_create_temp_directory"]="Δεν είναι δυνατή η δημιουργία προσωρινού καταλόγου";
+			_resource.content["error_invalid_flex_sdk_directory"]="Έχετε επιλέξει άκυρο κατάλογο για το Flex SDK ";
+			_resource.content["error_unable_to_install_config_files"]="Δεν είναι δυνατή η εγκατάσταση των αρχείων ρυθμίσεων";
+			
+			
+			_resource.content["apache_flex_url"]="http://incubator.apache.org/flex/";
+			_resource.content["config_url"]="ApacheFlexConfig.xml";
+			
+			_resource.content["step_download_flashplayer_swc"]="Λήψη Flash Player swc";
+			_resource.content["step_download_flex_sdk"]="Λήψη Apache Flex SDK";
+			_resource.content["step_download_air_runtime_kit"]="Λήψη Adobe AIR Runtime Kit";
+			_resource.content["step_install_config_files"]="Εγκατάσταση αρχείων ρυθμίσεων του Framework";
+			_resource.content["step_create_directories"]="Δημιουργία Καταλόγων";
+			_resource.content["step_unzip_flex_sdk"]="Ααποσυμπίεση Apache Flex SDK";
+			_resource.content["step_unzip_air_runtime_kit"]="Ααποσυμπίεση Adobe AIR Runtime Kit";
+			
+			
+			_resourceManager.addResourceBundle(_resource);
+			_resourceManager.update();
+			
+		}
+		
+		protected function installResourcers_nl_NL():void
+		{
+			var _resourceManager:IResourceManager = ResourceManager.getInstance();
+			var _resource:ResourceBundle = new ResourceBundle("nl_NL", "messagestrings");
+
+			_resource.content["browse_btn_label"]="Bladeren...";
+			_resource.content["install_log_btn_label"]="Installatie Log";
+			_resource.content["install_btn_label"]="Installeren";
+			_resource.content["close_btn_label"]="Sluiten";
+			_resource.content["select_path_prompt"]="Geef Flex SDK pad in of blader naar het pad";
+			
+			_resource.content["info_installation_complete"]="Installatie gereed.";
+			_resource.content["info_creating_temp_dir"]="Maakt tijdelijke map aan";
+			_resource.content["info_installing_config_files"]="Framework configuratie bestanden voor gebruik met IDE worden geinstalleerd";
+			_resource.content["info_dowloading_air_runtime_kit_mac"]="Adobe AIR Runtime Kit voor Mac wordt gedownload van: ";
+			_resource.content["info_dowloading_flex_sdk"]="Apache Flex SDK wordt gedownload van: ";
+			_resource.content["info_creating_flex_home"]="Maakt flex home aan";
+			_resource.content["info_finished_untaring"]="Klaar met uitpakken:";
+			_resource.content["info_dowloading_air_runtime_kit_windows"]="Adobe AIR Runtime Kit voor Windows wordt gedownload van: ";
+			_resource.content["info_downloaded"]="Gedownload ";
+			_resource.content["info_enter_valid_flex_sdk_path"]="Geef een geldig Flex SDK pad in";
+			_resource.content["info_finished_unzipping"]="Klaar met uitpakken: ";
+			_resource.content["info_select_directory"]="Kies een map";
+			_resource.content["info_unzipping"]="Uitpakken: ";
+			_resource.content["info_app_invoked"]="Opgestart in command line modus met de volgende argumenten: ";
+			_resource.content["info_installing_playerglobal_swc"]="Adobe Flash Player playerglobal.swc wordt geinstalleerd van:";
+			_resource.content["info_invoked_gui_mode"]="Opgestart in visuele modus";
+			
+			_resource.content["error_unable_to_copy_file"]="Kan bestand niet kopieeren ";
+			_resource.content["error_config_xml_load"]="Fout tijdens het laden van het XML configuratie bestand: ";
+			_resource.content["error_native_process_error"]="Native Process fout kan Adobe AIR SDK niet uitpakken";
+			_resource.content["error_unsupported_operating_system"]="Besturingsysteem is niet ondersteund";
+			_resource.content["error_invalid_air_sdk_url_mac"]="Adobe AIR SDK URL voor Mac is ongeldig in configuratie bestand";
+			_resource.content["error_invalid_sdk_url"]="Apache Flex SDK URL ongeldig in configuratie bestand";
+			_resource.content["error_native_process_not_supported"]="Native Process niet ondersteund.  Kan Adobe AIR SDK niet uitpakken";
+			_resource.content["error_invalid_air_sdk_url_windows"]="Adobe AIR SDK URL voor Windows is ongeldig in configuratie bestand";
+			_resource.content["error_invalid_flash_player_swc_url"]="Flash Player swc URL is ongeldig in configuratie bestand";
+			_resource.content["error_unable_to_download_flex_sdk"]="Downloaden Apache Flex SDK mislukt";
+			_resource.content["error_unable_to_download_air_sdk"]="Downloaden Adobe AIR Runtime Kit mislukt";
+			_resource.content["error_unable_to_download_flash_player_swc"]="Downloaden Flash Player swc mislukt";
+			_resource.content["info_abort_installation"]="Installatie wordt afgebroken";
+			_resource.content["error_unable_to_delete_temp_directory"]="Opruimen van tijdelijke installatie bestanden mislukt";
+			_resource.content["error_unable_to_create_temp_directory"]="Unable to create temporary directory";
+			_resource.content["error_invalid_flex_sdk_directory"]="Invalid Flex SDK directory selected";
+			_resource.content["error_unable_to_install_config_files"]="Unable to install configuration files";
+
+			
+			_resource.content["config_url"]="ApacheFlexConfig.xml";
+			_resource.content["apache_flex_url"]="http://incubator.apache.org/flex/";
+			
+			_resource.content["step_download_flex_sdk"]="Apache Flex SDK Downloaden";
+			_resource.content["step_unzip_flex_sdk"]="Apache Flex SDK uitpakken";
+			_resource.content["step_download_air_runtime_kit"]="Adobe AIR Runtime Kit Downloaden";
+			_resource.content["step_unzip_air_runtime_kit"]="Adobe AIR Runtime Kit Uitpakken";
+			_resource.content["step_download_flashplayer_swc"]="Flash Player swc Downloaden";
+			_resource.content["step_install_config_files"]="Framework Configuratie Bestanden Installeren";
+			_resource.content["step_create_directories"]="Mappen aanmaken";
+			
+			_resourceManager.addResourceBundle(_resource);
+			_resourceManager.update();
+
+		}
+		protected function installResourcers_en_AU():void
+		{
+			var _resourceManager:IResourceManager = ResourceManager.getInstance();
+			var _resource:ResourceBundle = new ResourceBundle("en_AU", "messagestrings");
+			
+			_resource.content["browse_btn_label"]="BROWSE";
+			_resource.content["install_log_btn_label"]="INSTALL LOG";
+			_resource.content["install_btn_label"]="INSTALL";
+			_resource.content["close_btn_label"]="CLOSE";
+			_resource.content["select_path_prompt"]="Enter Flex SDK path or browse to select a path";
+			
+			_resource.content["info_dowloading_air_runtime_kit_mac"]="Downloading Adobe AIR Runtime Kit for Mac from: ";
+			_resource.content["info_finished_untaring"]="Finished untaring: ";
+			_resource.content["info_dowloading_air_runtime_kit_windows"]="Downloading Adobe AIR Runtime Kit for Windows from: ";
+			_resource.content["info_invoked_gui_mode"]="invoked in GUI mode";
+			_resource.content["info_enter_valid_flex_sdk_path"]="Please enter valid directory path for the Flex SDK";
+			_resource.content["info_select_directory"]="Select a directory";
+			_resource.content["info_app_invoked"]="Invoked in command line mode with the following arguments: ";
+			_resource.content["info_downloaded"]="Download complete ";
+			_resource.content["info_abort_installation"]="Aborting Installation";
+			_resource.content["info_unzipping"]="Unzipping: ";
+			_resource.content["info_installing_playerglobal_swc"]="Installing Adobe Flash Player playerglobal.swc from: ";
+			_resource.content["info_installing_config_files"]="Installing frameworks configuration files configured for use with an IDE";
+			_resource.content["info_installation_complete"]="Installation complete.";
+			_resource.content["info_creating_temp_dir"]="Creating temporary directory";
+			_resource.content["info_creating_flex_home"]="Creating Apache Flex home";
+			_resource.content["info_finished_unzipping"]="Finished unzipping: ";
+			_resource.content["info_dowloading_flex_sdk"]="Downloading Apache Flex SDK from: ";
+
+			_resource.content["error_unable_to_copy_file"]="Unable to copy file ";
+			_resource.content["error_config_xml_load"]="Error while trying to load XML configuration file: ";
+			_resource.content["error_unable_to_download_flash_player_swc"]="Unable to download Flash Player swc";
+			_resource.content["error_unable_to_delete_temp_directory"]="Unable to clean up temporary installation directories";
+			_resource.content["error_unable_to_download_air_sdk"]="Unable to download Adobe AIR Runtime Kit";
+			_resource.content["error_invalid_flash_player_swc_url"]="Flash Player swc URL invalid in configuration file";
+			_resource.content["error_unsupported_operating_system"]="Unsupported operating system";
+			_resource.content["error_invalid_sdk_url"]="Apache Flex SDK URL invalid in configuration file";
+			_resource.content["error_invalid_air_sdk_url_mac"]="Adobe AIR SDK URL for Mac invalid in configuration file";
+			_resource.content["error_native_process_error"]="Native Process error unable to untar Adobe AIR SDK";
+			_resource.content["error_invalid_air_sdk_url_windows"]="Adobe AIR SDK URL for Windows invalid in configuration file";
+			_resource.content["error_unable_to_download_flex_sdk"]="Unable to download Apache Flex SDK";
+			_resource.content["error_native_process_not_supported"]="Native Process not supported.  Unable to untar Adobe AIR SDK";
+			_resource.content["error_unable_to_create_temp_directory"]="Unable to create temporary directory";
+			_resource.content["error_invalid_flex_sdk_directory"]="Invalid Flex SDK directory selected";
+			_resource.content["error_unable_to_install_config_files"]="Unable to install configuration files";
+
+			_resource.content["config_url"]="ApacheFlexConfig.xml";
+			_resource.content["apache_flex_url"]="http://incubator.apache.org/flex/";
+			
+			_resource.content["step_install_config_files"]="Install Framework Configuration Files";
+			_resource.content["step_unzip_flex_sdk"]="Unzip Apache Flex SDK";
+			_resource.content["step_unzip_air_runtime_kit"]="Unzip Adobe AIR Runtime Kit";
+			_resource.content["step_download_flashplayer_swc"]="Download Flash Player swc";
+			_resource.content["step_download_flex_sdk"]="Download Apache Flex SDK";
+			_resource.content["step_download_air_runtime_kit"]="Download Adobe AIR Runtime Kit";
+			_resource.content["step_create_directories"]="Create Directories";
+			
+			_resourceManager.addResourceBundle(_resource);
+			_resourceManager.update();
+		}
+		
+		protected function installResourcers_en_GB():void
+		{
+			var _resourceManager:IResourceManager = ResourceManager.getInstance();
+			var _resource:ResourceBundle = new ResourceBundle("en_AU", "messagestrings");
+			
+			_resource.content["browse_btn_label"]="BROWSE";
+			_resource.content["install_log_btn_label"]="INSTALL LOG";
+			_resource.content["install_btn_label"]="INSTALL";
+			_resource.content["close_btn_label"]="CLOSE";
+			_resource.content["select_path_prompt"]="Enter Flex SDK path or browse to select a path";
+			
+			_resource.content["info_dowloading_air_runtime_kit_mac"]="Downloading Adobe AIR Runtime Kit for Mac from: ";
+			_resource.content["info_finished_untaring"]="Finished untaring: ";
+			_resource.content["info_dowloading_air_runtime_kit_windows"]="Downloading Adobe AIR Runtime Kit for Windows from: ";
+			_resource.content["info_invoked_gui_mode"]="invoked in GUI mode";
+			_resource.content["info_enter_valid_flex_sdk_path"]="Please enter valid directory path for the Flex SDK";
+			_resource.content["info_select_directory"]="Select a directory";
+			_resource.content["info_app_invoked"]="Invoked in command line mode with the following arguments: ";
+			_resource.content["info_downloaded"]="Download complete ";
+			_resource.content["info_abort_installation"]="Aborting Installation";
+			_resource.content["info_unzipping"]="Unzipping: ";
+			_resource.content["info_installing_playerglobal_swc"]="Installing Adobe Flash Player playerglobal.swc from: ";
+			_resource.content["info_installing_config_files"]="Installing frameworks configuration files configured for use with an IDE";
+			_resource.content["info_installation_complete"]="Installation complete.";
+			_resource.content["info_creating_temp_dir"]="Creating temporary directory";
+			_resource.content["info_creating_flex_home"]="Creating Apache Flex home";
+			_resource.content["info_finished_unzipping"]="Finished unzipping: ";
+			_resource.content["info_dowloading_flex_sdk"]="Downloading Apache Flex SDK from: ";
+
+			_resource.content["error_unable_to_copy_file"]="Unable to copy file ";
+			_resource.content["error_config_xml_load"]="Error while trying to load XML configuration file: ";
+			_resource.content["step_unzip_flex_sdk"]="Unzip Apache Flex SDK";
+			_resource.content["error_unable_to_download_flash_player_swc"]="Unable to download Flash Player swc";
+			_resource.content["error_unable_to_delete_temp_directory"]="Unable to clean up temporary installation directories";
+			_resource.content["error_unable_to_download_air_sdk"]="Unable to download Adobe AIR Runtime Kit";
+			_resource.content["error_invalid_flash_player_swc_url"]="Flash Player swc URL invalid in configuration file";
+			_resource.content["error_unsupported_operating_system"]="Unsupported operating system";
+			_resource.content["error_invalid_sdk_url"]="Apache Flex SDK URL invalid in configuration file";
+			_resource.content["error_invalid_air_sdk_url_mac"]="Adobe AIR SDK URL for Mac invalid in configuration file";
+			_resource.content["error_native_process_error"]="Native Process error unable to untar Adobe AIR SDK";
+			_resource.content["error_invalid_air_sdk_url_windows"]="Adobe AIR SDK URL for Windows invalid in configuration file";
+			_resource.content["error_unable_to_download_flex_sdk"]="Unable to download Apache Flex SDK";
+			_resource.content["error_native_process_not_supported"]="Native Process not supported.  Unable to untar Adobe AIR SDK";
+			_resource.content["error_unable_to_create_temp_directory"]="Unable to create temporary directory";
+			_resource.content["error_invalid_flex_sdk_directory"]="Invalid Flex SDK directory selected";
+			_resource.content["error_unable_to_install_config_files"]="Unable to install configuration files";
+
+			_resource.content["config_url"]="ApacheFlexConfig.xml";
+			_resource.content["apache_flex_url"]="http://incubator.apache.org/flex/";
+			
+			_resource.content["step_unzip_air_runtime_kit"]="Unzip Adobe AIR Runtime Kit";
+			_resource.content["step_install_config_files"]="Install Framework Configuration Files";
+			_resource.content["step_download_flashplayer_swc"]="Download Flash Player swc";
+			_resource.content["step_download_flex_sdk"]="Download Apache Flex SDK";
+			_resource.content["step_download_air_runtime_kit"]="Download Adobe AIR Runtime Kit";
+			_resource.content["step_create_directories"]="Create Directories";
+
+			_resourceManager.addResourceBundle(_resource);
+			_resourceManager.update();
+		}
+
+	}
+}
+

Added: incubator/flex/utilities/InstallApacheFlex/src/org/apache/flex/packageflexsdk/resource/ViewResourceConstants.as
URL: http://svn.apache.org/viewvc/incubator/flex/utilities/InstallApacheFlex/src/org/apache/flex/packageflexsdk/resource/ViewResourceConstants.as?rev=1360962&view=auto
==============================================================================
--- incubator/flex/utilities/InstallApacheFlex/src/org/apache/flex/packageflexsdk/resource/ViewResourceConstants.as (added)
+++ incubator/flex/utilities/InstallApacheFlex/src/org/apache/flex/packageflexsdk/resource/ViewResourceConstants.as Thu Jul 12 21:33:49 2012
@@ -0,0 +1,540 @@
+package org.apache.flex.packageflexsdk.resource
+{
+	import flash.events.Event;
+	import flash.utils.getQualifiedClassName;
+	
+	import mx.resources.IResourceManager;
+	import mx.resources.ResourceManager;
+	
+	public final class ViewResourceConstants
+	{
+		private static var _instance:ViewResourceConstants;
+		//Labels
+		private var _INSTALL_BTN_LABEL:String;
+		private var _SELECT_PATH_PROMPT:String;
+		private var _BROWSE_BTN_LABEL:String;
+		private var _INSTALL_LOG_BTN_LABEL:String;
+		private var _CLOSE_BTN_LABEL:String;
+		private var _NEXT_BTN_LABEL:String;
+		private var _MPL_LICENSE_BTN_LABEL:String;
+		private var _ADOBE_LICENSE_BTN_LABEL:String;
+		private var _OPEN_APACHE_FLEX_FOLDER_BTN_LABEL:String;
+
+		//Log messages
+		private var _ERROR_CONFIG_XML_LOAD:String;
+		private var _ERROR_INVALID_SDK_URL:String;
+		private var _ERROR_INVALID_AIR_SDK_URL_WINDOWS:String;
+		private var _ERROR_INVALID_AIR_SDK_URL_MAC:String;
+		private var _ERROR_INVALID_FLASH_PLAYER_SWC_URL:String;
+		private var _ERROR_UNSUPPORTED_OPERATING_SYSTEM:String;
+		private var _INFO_APP_INVOKED:String;
+		private var _INFO_ENTER_VALID_FLEX_SDK_PATH:String;
+		private var _INFO_INVOKED_GUI_MODE:String;
+		private var _INFO_SELECT_DIRECTORY:String;
+		private var _INFO_CREATING_FLEX_HOME:String;
+		private var _INFO_CREATING_TEMP_DIR:String;
+		private var _INFO_DOWNLOADING_APACHE_FLEX_SDK:String;
+		private var _INFO_UNZIPPING:String;
+		private var _INFO_FINISHED_UNZIPPING:String;
+		private var _INFO_DOWLOADING_AIR_RUNTIME_KIT_WINDOWS:String;
+		private var _INFO_DOWLOADING_AIR_RUNTIME_KIT_MAC:String;
+		private var _ERROR_NATIVE_PROCESS_NOT_SUPPORTED:String;
+		private var _ERROR_NATIVE_PROCESS_ERROR:String;
+		private var _INFO_FINISHED_UNTARING:String;
+		private var _INFO_INSTALLING_PLAYERGLOBAL_SWC:String;
+		private var _INFO_INSTALLING_CONFIG_FILES:String;
+		private var _INFO_INSTALLATION_COMPLETE:String;
+		private var _ERROR_UNABLE_TO_COPY_FILE:String;
+		private var _INFO_DOWNLOADED:String;
+		private var _ERROR_UNABLE_TO_DOWNLOAD_FLEX_SDK:String;
+		private var _ERROR_UNABLE_TO_DOWNLOAD_AIR_SDK:String;
+		private var _ERROR_UNABLE_TO_DOWNLOAD_FLASH_PLAYER_SWC:String;
+		private var _INFO_ABORT_INSTALLATION:String;
+		private var _ERROR_UNABLE_TO_DELETE_TEMP_DIRECTORY:String;
+		private var _ERROR_UNABLE_TO_CREATE_TEMP_DIRECTORY:String;
+		private var _ERROR_INVALID_FLEX_SDK_DIRECTORY:String;
+		private var _ERROR_UNABLE_TO_INSTALL_CONFIG_FILES:String;
+		private var _INFO_DOWNLOADING_ADOBE_FLEX_SDK:String;
+		private var _ERROR_UNABLE_TO_DOWNLOAD_FILE:String;
+		private var _ERROR_UNABLE_TO_UNZIP:String;
+		private var _INFO_DOWNLOADING_FILE_FROM:String;
+		private var _INFO_NEED_TO_READ_AND_AGREE_TO_LICENSE:String;
+		private var _INFO_INSTALLING:String;
+		private var _ERROR_DIRECTORY_NOT_EMPTY:String;
+		
+		//URLs
+		private var _APACHE_FLEX_URL:String;
+		private var _CONFIG_URL:String;
+		
+		//STEPS
+		private var _STEP_CREATE_DIRECTORIES:String;
+		private var _STEP_DOWNLOAD_FLEX_SDK:String;
+		private var _STEP_UNZIP_FLEX_SDK:String;
+		private var _STEP_DOWNLOAD_AIR_RUNTIME_KIT:String;
+		private var _STEP_UNZIP_AIR_RUNTIME_KIT:String;
+		private var _STEP_DOWNLOAD_FLASHPLAYER_SWC:String;
+		private var _STEP_INSTALL_CONFIG_FILES:String;
+		private var _STEP_OPTIONAL_INSTALL_FONTSWF:String;
+		private var _STEP_OPTIONAL_INSTALL_BLAZEDS:String;
+		private var _STEP_OPTIONAL_INSTALL_TLF:String;
+		private var _STEP_OPTIONAL_INSTALL_OSMF:String;
+		
+		//PROMPTS
+		private var _ASK_OSMF:String;
+		private var _ASK_BLAZEDS:String;
+		private var _ASK_TLF:String;
+		private var _ASK_FONTSWF:String;
+		private var _INSTALL:String;
+		private var _DONT_INSTALL:String;
+		
+		
+		private var _iResourceManager:IResourceManager;
+		
+		public function ViewResourceConstants(enforcer:SingletonEnforcer)
+		{
+			if (enforcer != null && !(enforcer is SingletonEnforcer))
+			{
+				throw new Error( "Invalid Singleton access. Please use ViewResourceManager.getInstance() instead." );
+			}
+			
+			_iResourceManager = ResourceManager.getInstance();
+			_iResourceManager.addEventListener(Event.CHANGE , resourceLocale_Handler);
+			populateStrings();
+		}
+		
+		public static function getInstance():ViewResourceConstants
+		{
+			if (_instance == null)
+			{
+				_instance = new ViewResourceConstants(new SingletonEnforcer());	
+			}
+			
+			return _instance;
+		}
+		
+		protected function resourceLocale_Handler(event:Event):void
+		{
+			populateStrings();
+		}
+		
+		private function populateStrings():void
+		{
+			_INSTALL_BTN_LABEL = _iResourceManager.getString("messagestrings","install_btn_label");
+			_SELECT_PATH_PROMPT = _iResourceManager.getString("messagestrings","select_path_prompt");
+			_BROWSE_BTN_LABEL = _iResourceManager.getString("messagestrings","browse_btn_label");
+			_INSTALL_LOG_BTN_LABEL = _iResourceManager.getString("messagestrings","install_log_btn_label");
+			_CLOSE_BTN_LABEL = _iResourceManager.getString("messagestrings","close_btn_label");
+			_NEXT_BTN_LABEL = ResourceManager.getInstance().getString("messagestrings","next_btn_label");
+			_MPL_LICENSE_BTN_LABEL = ResourceManager.getInstance().getString("messagestrings","show_mpl_license_btn_label");
+			_ADOBE_LICENSE_BTN_LABEL = ResourceManager.getInstance().getString("messagestrings","show_adobe_license_btn_label");
+			_OPEN_APACHE_FLEX_FOLDER_BTN_LABEL = ResourceManager.getInstance().getString("messagestrings","open_apache_flex_folder_btn_label");
+			
+			_APACHE_FLEX_URL = _iResourceManager.getString("messagestrings","apache_flex_url");
+			_CONFIG_URL = _iResourceManager.getString("messagestrings","config_url");
+
+			_ERROR_CONFIG_XML_LOAD = _iResourceManager.getString("messagestrings","error_config_xml_load");
+			_ERROR_INVALID_SDK_URL = _iResourceManager.getString("messagestrings","error_invalid_sdk_url");
+			_ERROR_INVALID_AIR_SDK_URL_WINDOWS = _iResourceManager.getString("messagestrings","error_invalid_air_sdk_url_windows");
+			_ERROR_INVALID_AIR_SDK_URL_MAC = _iResourceManager.getString("messagestrings","error_invalid_air_sdk_url_mac");
+			_ERROR_INVALID_FLASH_PLAYER_SWC_URL = _iResourceManager.getString("messagestrings","error_invalid_flash_player_swc_url"); 
+			_INFO_APP_INVOKED = _iResourceManager.getString("messagestrings","info_app_invoked");
+			_ERROR_UNSUPPORTED_OPERATING_SYSTEM = _iResourceManager.getString("messagestrings","error_unsupported_operating_system");
+			_INFO_ENTER_VALID_FLEX_SDK_PATH = _iResourceManager.getString("messagestrings","info_enter_valid_flex_sdk_path");
+			_INFO_INVOKED_GUI_MODE = _iResourceManager.getString("messagestrings","info_invoked_gui_mode");
+			_INFO_SELECT_DIRECTORY = _iResourceManager.getString("messagestrings","info_select_directory");
+			_INFO_CREATING_FLEX_HOME = _iResourceManager.getString("messagestrings","info_creating_flex_home");
+			_INFO_CREATING_TEMP_DIR = _iResourceManager.getString("messagestrings","info_creating_temp_dir");
+			_INFO_DOWNLOADING_APACHE_FLEX_SDK = _iResourceManager.getString("messagestrings","info_dowloading_flex_sdk");
+			_INFO_UNZIPPING = _iResourceManager.getString("messagestrings","info_unzipping");
+			_INFO_FINISHED_UNZIPPING = _iResourceManager.getString("messagestrings","info_unzipping");
+			_INFO_DOWLOADING_AIR_RUNTIME_KIT_WINDOWS = _iResourceManager.getString("messagestrings","info_dowloading_air_runtime_kit_windows");
+			_INFO_DOWLOADING_AIR_RUNTIME_KIT_MAC = _iResourceManager.getString("messagestrings","info_dowloading_air_runtime_kit_mac");
+			_ERROR_NATIVE_PROCESS_NOT_SUPPORTED = _iResourceManager.getString("messagestrings","error_native_process_not_supported");
+			_ERROR_NATIVE_PROCESS_ERROR = _iResourceManager.getString("messagestrings","error_native_process_error");
+			_INFO_FINISHED_UNTARING = _iResourceManager.getString("messagestrings","info_finished_untaring");
+			_INFO_INSTALLING_PLAYERGLOBAL_SWC = _iResourceManager.getString("messagestrings","info_installing_playerglobal_swc");
+			_INFO_INSTALLING_CONFIG_FILES = _iResourceManager.getString("messagestrings","info_installing_config_files");
+			_INFO_INSTALLATION_COMPLETE = _iResourceManager.getString("messagestrings","info_installation_complete");
+			_ERROR_UNABLE_TO_COPY_FILE = _iResourceManager.getString("messagestrings","error_unable_to_copy_file");
+			_INFO_DOWNLOADED = _iResourceManager.getString("messagestrings","info_downloaded");
+			_ERROR_UNABLE_TO_DOWNLOAD_FLEX_SDK = _iResourceManager.getString("messagestrings","error_unable_to_download_flex_sdk");
+			_ERROR_UNABLE_TO_DOWNLOAD_AIR_SDK = _iResourceManager.getString("messagestrings","error_unable_to_download_air_sdk");
+			_ERROR_UNABLE_TO_DOWNLOAD_FLASH_PLAYER_SWC = _iResourceManager.getString("messagestrings","error_unable_to_download_flash_player_swc");
+			_INFO_ABORT_INSTALLATION = _iResourceManager.getString("messagestrings","info_abort_installation");
+			_ERROR_UNABLE_TO_DELETE_TEMP_DIRECTORY = _iResourceManager.getString("messagestrings","error_unable_to_delete_temp_directory");
+			_ERROR_UNABLE_TO_CREATE_TEMP_DIRECTORY = _iResourceManager.getString("messagestrings","error_unable_to_create_temp_directory");
+			_ERROR_INVALID_FLEX_SDK_DIRECTORY = _iResourceManager.getString("messagestrings","error_invalid_flex_sdk_directory");
+			_ERROR_UNABLE_TO_INSTALL_CONFIG_FILES = _iResourceManager.getString("messagestrings","error_unable_to_install_config_files");
+			_INFO_DOWNLOADING_FILE_FROM = _iResourceManager.getString("messagestrings","info_dowloading_file_from");
+			_ERROR_UNABLE_TO_DOWNLOAD_FILE = _iResourceManager.getString("messagestrings","error_unable_to_download_file");
+			_ERROR_UNABLE_TO_UNZIP = _iResourceManager.getString("messagestrings","error_unable_to_unzip");
+			_INFO_NEED_TO_READ_AND_AGREE_TO_LICENSE = _iResourceManager.getString("messagestrings","info_need_to_read_and_agree_to_license");
+			_INFO_INSTALLING = _iResourceManager.getString("messagestrings","info_installing");
+			_ERROR_DIRECTORY_NOT_EMPTY = _iResourceManager.getString("messagestrings","error_dir_not_empty");
+			
+			_STEP_CREATE_DIRECTORIES = _iResourceManager.getString("messagestrings","step_create_directories");
+			_STEP_DOWNLOAD_FLEX_SDK = _iResourceManager.getString("messagestrings","step_download_flex_sdk");
+			_STEP_UNZIP_FLEX_SDK = _iResourceManager.getString("messagestrings","step_unzip_flex_sdk");
+			_STEP_DOWNLOAD_AIR_RUNTIME_KIT = _iResourceManager.getString("messagestrings","step_download_air_runtime_kit");
+			_STEP_UNZIP_AIR_RUNTIME_KIT = _iResourceManager.getString("messagestrings","step_unzip_air_runtime_kit");
+			_STEP_DOWNLOAD_FLASHPLAYER_SWC = _iResourceManager.getString("messagestrings","step_download_flashplayer_swc");
+			_STEP_INSTALL_CONFIG_FILES = _iResourceManager.getString("messagestrings","step_install_config_files");
+			_STEP_OPTIONAL_INSTALL_FONTSWF = _iResourceManager.getString("messagestrings","step_optional_install_FontSwf");
+			_STEP_OPTIONAL_INSTALL_BLAZEDS = _iResourceManager.getString("messagestrings","step_optional_install_BlazeDS");
+			_STEP_OPTIONAL_INSTALL_TLF = _iResourceManager.getString("messagestrings","step_optional_install_TLF");
+			_STEP_OPTIONAL_INSTALL_OSMF = _iResourceManager.getString("messagestrings","step_optional_install_OSMF");
+			
+			_ASK_BLAZEDS = _iResourceManager.getString("messagestrings","ask_blazeds");
+			_ASK_FONTSWF = _iResourceManager.getString("messagestrings","ask_fontswf");
+			_ASK_OSMF = _iResourceManager.getString("messagestrings","ask_osmf");
+			_ASK_TLF = _iResourceManager.getString("messagestrings","ask_tlf");
+			_INSTALL = _iResourceManager.getString("messagestrings","install");
+			_DONT_INSTALL = _iResourceManager.getString("messagestrings","dont_install");
+			
+		}
+		
+		public function get INFO_DOWNLOADED():String
+		{
+			return _INFO_DOWNLOADED;
+		}
+
+		public function get ERROR_UNABLE_TO_COPY_FILE():String
+		{
+			return _ERROR_UNABLE_TO_COPY_FILE;
+		}
+
+		public function get INFO_INSTALLATION_COMPLETE():String
+		{
+			return _INFO_INSTALLATION_COMPLETE;
+		}
+
+		public function get INFO_INSTALLING_CONFIG_FILES():String
+		{
+			return _INFO_INSTALLING_CONFIG_FILES;
+		}
+
+		public function get INFO_INSTALLING_PLAYERGLOBAL_SWC():String
+		{
+			return _INFO_INSTALLING_PLAYERGLOBAL_SWC;
+		}
+
+		public function get INFO_FINISHED_UNTARING():String
+		{
+			return _INFO_FINISHED_UNTARING;
+		}
+
+		public function get ERROR_NATIVE_PROCESS_ERROR():String
+		{
+			return _ERROR_NATIVE_PROCESS_ERROR;
+		}
+
+		public function get ERROR_NATIVE_PROCESS_NOT_SUPPORTED():String
+		{
+			return _ERROR_NATIVE_PROCESS_NOT_SUPPORTED;
+		}
+
+		public function get INFO_DOWLOADING_AIR_RUNTIME_KIT_MAC():String
+		{
+			return _INFO_DOWLOADING_AIR_RUNTIME_KIT_MAC;
+		}
+
+		public function get INFO_DOWLOADING_AIR_RUNTIME_KIT_WINDOWS():String
+		{
+			return _INFO_DOWLOADING_AIR_RUNTIME_KIT_WINDOWS;
+		}
+
+		public function get INFO_FINISHED_UNZIPPING():String
+		{
+			return _INFO_FINISHED_UNZIPPING;
+		}
+
+		public function get INFO_UNZIPPING():String
+		{
+			return _INFO_UNZIPPING;
+		}
+
+		public function get INFO_DOWNLOADING_APACHE_FLEX_SDK():String
+		{
+			return _INFO_DOWNLOADING_APACHE_FLEX_SDK;
+		}
+
+		public function get INFO_CREATING_TEMP_DIR():String
+		{
+			return _INFO_CREATING_TEMP_DIR;
+		}
+
+		public function get INFO_CREATING_FLEX_HOME():String
+		{
+			return _INFO_CREATING_FLEX_HOME;
+		}
+
+		public function get INFO_SELECT_DIRECTORY():String
+		{
+			return _INFO_SELECT_DIRECTORY;
+		}
+
+		public function get INFO_INVOKED_GUI_MODE():String
+		{
+			return _INFO_INVOKED_GUI_MODE;
+		}
+
+		public function get INFO_ENTER_VALID_FLEX_SDK_PATH():String
+		{
+			return _INFO_ENTER_VALID_FLEX_SDK_PATH;
+		}
+
+		public function get ERROR_UNSUPPORTED_OPERATING_SYSTEM():String
+		{
+			return _ERROR_UNSUPPORTED_OPERATING_SYSTEM;
+		}
+
+		public function get ERROR_INVALID_AIR_SDK_URL_WINDOWS():String
+		{
+			return _ERROR_INVALID_AIR_SDK_URL_WINDOWS;
+		}
+
+		public function get CONFIG_URL():String
+		{
+			return _CONFIG_URL;
+		}
+
+		public function get APACHE_FLEX_URL():String
+		{
+			return _APACHE_FLEX_URL;
+		}
+
+		public function get INFO_APP_INVOKED():String
+		{
+			return _INFO_APP_INVOKED;
+		}
+
+		public function get ERROR_INVALID_FLASH_PLAYER_SWC_URL():String
+		{
+			return _ERROR_INVALID_FLASH_PLAYER_SWC_URL;
+		}
+
+		public function get ERROR_INVALID_AIR_SDK_URL_MAC():String
+		{
+			return _ERROR_INVALID_AIR_SDK_URL_MAC;
+		}
+
+		public function get ERROR_INVALID_SDK_URL():String
+		{
+			return _ERROR_INVALID_SDK_URL;
+		}
+
+		public function get ERROR_CONFIG_XML_LOAD():String
+		{
+			return _ERROR_CONFIG_XML_LOAD;
+		}
+
+		public function get CLOSE_BTN_LABEL():String
+		{
+			return _CLOSE_BTN_LABEL;
+		}
+
+		public function get INSTALL_LOG_BTN_LABEL():String
+		{
+			return _INSTALL_LOG_BTN_LABEL;
+		}
+
+		public function get BROWSE_BTN_LABEL():String
+		{
+			return _BROWSE_BTN_LABEL;
+		}
+
+		public function get SELECT_PATH_PROMPT():String
+		{
+			return _SELECT_PATH_PROMPT;
+		}
+
+		public function get INSTALL_BTN_LABEL():String
+		{
+			return _INSTALL_BTN_LABEL;
+		}
+
+		public function get STEP_CREATE_DIRECTORIES():String
+		{
+			return _STEP_CREATE_DIRECTORIES;
+		}
+
+		public function get STEP_DOWNLOAD_FLEX_SDK():String
+		{
+			return _STEP_DOWNLOAD_FLEX_SDK;
+		}
+
+		public function get STEP_UNZIP_FLEX_SDK():String
+		{
+			return _STEP_UNZIP_FLEX_SDK;
+		}
+
+		public function get STEP_DOWNLOAD_AIR_RUNTIME_KIT():String
+		{
+			return _STEP_DOWNLOAD_AIR_RUNTIME_KIT;
+		}
+
+		public function get STEP_UNZIP_AIR_RUNTIME_KIT():String
+		{
+			return _STEP_UNZIP_AIR_RUNTIME_KIT;
+		}
+
+		public function get STEP_DOWNLOAD_FLASHPLAYER_SWC():String
+		{
+			return _STEP_DOWNLOAD_FLASHPLAYER_SWC;
+		}
+
+		public function get STEP_INSTALL_CONFIG_FILES():String
+		{
+			return _STEP_INSTALL_CONFIG_FILES;
+		}
+
+		public function get ERROR_UNABLE_TO_DOWNLOAD_FLEX_SDK():String
+		{
+			return _ERROR_UNABLE_TO_DOWNLOAD_FLEX_SDK;
+		}
+
+		public function get ERROR_UNABLE_TO_DOWNLOAD_AIR_SDK():String
+		{
+			return _ERROR_UNABLE_TO_DOWNLOAD_AIR_SDK;
+		}
+
+		public function get ERROR_UNABLE_TO_DOWNLOAD_FLASH_PLAYER_SWC():String
+		{
+			return _ERROR_UNABLE_TO_DOWNLOAD_FLASH_PLAYER_SWC;
+		}
+
+		public function get INFO_ABORT_INSTALLATION():String
+		{
+			return _INFO_ABORT_INSTALLATION;
+		}
+
+		public function get ERROR_UNABLE_TO_DELETE_TEMP_DIRECTORY():String
+		{
+			return _ERROR_UNABLE_TO_DELETE_TEMP_DIRECTORY;
+		}
+
+		public function get ERROR_UNABLE_TO_CREATE_TEMP_DIRECTORY():String
+		{
+			return _ERROR_UNABLE_TO_CREATE_TEMP_DIRECTORY;
+		}
+
+		public function get ERROR_INVALID_FLEX_SDK_DIRECTORY():String
+		{
+			return _ERROR_INVALID_FLEX_SDK_DIRECTORY;
+		}
+
+		public function get ERROR_UNABLE_TO_INSTALL_CONFIG_FILES():String
+		{
+			return _ERROR_UNABLE_TO_INSTALL_CONFIG_FILES;
+		}
+
+		public function get NEXT_BTN_LABEL():String
+		{
+			return _NEXT_BTN_LABEL;
+		}
+
+		public function get ASK_OSMF():String
+		{
+			return _ASK_OSMF;
+		}
+
+		public function get ASK_BLAZEDS():String
+		{
+			return _ASK_BLAZEDS;
+		}
+
+		public function get ASK_TLF():String
+		{
+			return _ASK_TLF;
+		}
+
+		public function get ASK_FONTSWF():String
+		{
+			return _ASK_FONTSWF;
+		}
+
+		public function get INSTALL():String
+		{
+			return _INSTALL;
+		}
+
+		public function get DONT_INSTALL():String
+		{
+			return _DONT_INSTALL;
+		}
+
+		public function get STEP_OPTIONAL_INSTALL_FONTSWF():String
+		{
+			return _STEP_OPTIONAL_INSTALL_FONTSWF;
+		}
+
+		public function get STEP_OPTIONAL_INSTALL_BLAZEDS():String
+		{
+			return _STEP_OPTIONAL_INSTALL_BLAZEDS;
+		}
+
+		public function get STEP_OPTIONAL_INSTALL_TLF():String
+		{
+			return _STEP_OPTIONAL_INSTALL_TLF;
+		}
+
+		public function get STEP_OPTIONAL_INSTALL_OSMF():String
+		{
+			return _STEP_OPTIONAL_INSTALL_OSMF;
+		}
+
+		public function get INFO_DOWNLOADING_ADOBE_FLEX_SDK():String
+		{
+			return _INFO_DOWNLOADING_ADOBE_FLEX_SDK;
+		}
+
+		public function get ERROR_UNABLE_TO_DOWNLOAD_FILE():String
+		{
+			return _ERROR_UNABLE_TO_DOWNLOAD_FILE;
+		}
+
+		public function get ERROR_UNABLE_TO_UNZIP():String
+		{
+			return _ERROR_UNABLE_TO_UNZIP;
+		}
+
+		public function get INFO_DOWNLOADING_FILE_FROM():String
+		{
+			return _INFO_DOWNLOADING_FILE_FROM;
+		}
+
+		public function get INFO_NEED_TO_READ_AND_AGREE_TO_LICENSE():String
+		{
+			return _INFO_NEED_TO_READ_AND_AGREE_TO_LICENSE;
+		}
+
+		public function get MPL_LICENSE_BTN_LABEL():String
+		{
+			return _MPL_LICENSE_BTN_LABEL;
+		}
+
+		public function get ADOBE_LICENSE_BTN_LABEL():String
+		{
+			return _ADOBE_LICENSE_BTN_LABEL;
+		}
+
+		public function get INFO_INSTALLING():String
+		{
+			return _INFO_INSTALLING;
+		}
+
+		public function get OPEN_APACHE_FLEX_FOLDER_BTN_LABEL():String
+		{
+			return _OPEN_APACHE_FLEX_FOLDER_BTN_LABEL;
+		}
+
+		public function get ERROR_DIRECTORY_NOT_EMPTY():String
+		{
+			return _ERROR_DIRECTORY_NOT_EMPTY;
+		}
+
+	
+	}
+}
+
+class SingletonEnforcer{}
\ No newline at end of file

Added: incubator/flex/utilities/InstallApacheFlex/src/org/apache/flex/packageflexsdk/view/components/AboutDialog.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/utilities/InstallApacheFlex/src/org/apache/flex/packageflexsdk/view/components/AboutDialog.mxml?rev=1360962&view=auto
==============================================================================
--- incubator/flex/utilities/InstallApacheFlex/src/org/apache/flex/packageflexsdk/view/components/AboutDialog.mxml (added)
+++ incubator/flex/utilities/InstallApacheFlex/src/org/apache/flex/packageflexsdk/view/components/AboutDialog.mxml Thu Jul 12 21:33:49 2012
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="utf-8"?>
+<s:Window xmlns:fx="http://ns.adobe.com/mxml/2009" 
+		  xmlns:s="library://ns.adobe.com/flex/spark" 
+		  xmlns:mx="library://ns.adobe.com/flex/mx" width="400" height="300">
+	<fx:Declarations>
+		<!-- Place non-visual elements (e.g., services, value objects) here -->
+	</fx:Declarations>
+</s:Window>
\ No newline at end of file

Added: incubator/flex/utilities/InstallApacheFlex/src/org/apache/flex/packageflexsdk/view/components/AdobeLicense.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/utilities/InstallApacheFlex/src/org/apache/flex/packageflexsdk/view/components/AdobeLicense.mxml?rev=1360962&view=auto
==============================================================================
--- incubator/flex/utilities/InstallApacheFlex/src/org/apache/flex/packageflexsdk/view/components/AdobeLicense.mxml (added)
+++ incubator/flex/utilities/InstallApacheFlex/src/org/apache/flex/packageflexsdk/view/components/AdobeLicense.mxml Thu Jul 12 21:33:49 2012
@@ -0,0 +1,55 @@
+<?xml version="1.0" encoding="utf-8"?>
+<s:Window xmlns:fx="http://ns.adobe.com/mxml/2009" 
+		  xmlns:s="library://ns.adobe.com/flex/spark" 
+		  xmlns:mx="library://ns.adobe.com/flex/mx" width="810" height="800" showStatusBar="false"
+		  title="Adobe Flex SDK License Agreement">
+	<fx:Script>
+		<![CDATA[
+			import org.apache.flex.packageflexsdk.resource.ViewResourceConstants;
+			
+			import spark.events.IndexChangeEvent;
+			[Bindable]private var adobelicenseTextStr:String = "Adobe Flex SDK License Agreement:  All files contained in this Adobe Flex SDK download are subject to and governed by the " +
+														"Adobe Flex SDK License Agreement specified here: http://www.adobe.com/products/eulas/pdfs/adobe_flex_software_development_kit-combined-20110916_0930.pdf, " +
+														"By downloading, modifying, distributing, using and/or accessing any files in this Adobe Flex SDK, " +
+														"you agree to the terms and conditions of the applicable end user license agreement.  " +
+														"In addition to the Adobe license terms, you also agree to be bound by the third-party terms specified here: " +
+														"http://www.adobe.com/products/eula/third_party/. " +
+														"Adobe recommends that you review these third-party terms."
+			
+			protected function tabbar1_changeHandler(event:IndexChangeEvent):void
+			{
+				if(event.target.selectedItem.toString() == "Adobe Flex SDK License Agreement" )
+				{
+					htmlTabs.selectedChild = adobeLicenseHTML;
+				}
+				else if(event.target.selectedItem.toString() == "Third Party Terms" )
+				{
+					htmlTabs.selectedChild = thirdPartyHTML;
+				}
+			}
+			
+		]]>
+	</fx:Script>
+	<s:layout>
+		<s:VerticalLayout />
+	</s:layout>
+	<s:TextArea width="100%" height="75" fontSize="12" text="{adobelicenseTextStr}" verticalScrollPolicy="off" />
+	<s:TabBar change="tabbar1_changeHandler(event)">
+		<s:ArrayCollection>
+			<fx:String>Adobe Flex SDK License Agreement</fx:String>
+			<fx:String>Third Party Terms</fx:String>
+		</s:ArrayCollection>
+	</s:TabBar>
+	<mx:ViewStack id="htmlTabs" width="100%" height="100%">
+		<s:NavigatorContent id="adobeLicenseHTML" width="100%" height="100%">
+			<mx:HTML width="100%" height="100%" location="http://www.adobe.com/products/eulas/pdfs/adobe_flex_software_development_kit-combined-20110916_0930.pdf" />
+		</s:NavigatorContent>
+		<s:NavigatorContent id="thirdPartyHTML" width="100%" height="100%">
+			<mx:HTML width="100%" height="100%" location="http://www.adobe.com/products/eula/third_party/pdfs/flex4_5_sdk_opensource_legal_notices.pdf" />
+		</s:NavigatorContent>
+	</mx:ViewStack>
+	<s:HGroup width="100%" height="50" verticalAlign="middle" paddingRight="15">
+		<s:Spacer width="100%" />
+		<s:Button label="{ViewResourceConstants.getInstance().CLOSE_BTN_LABEL}" click="close()" styleName="genericBtnStyle"  />
+	</s:HGroup>
+</s:Window>
\ No newline at end of file

Added: incubator/flex/utilities/InstallApacheFlex/src/org/apache/flex/packageflexsdk/view/components/ConsoleWindow.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/utilities/InstallApacheFlex/src/org/apache/flex/packageflexsdk/view/components/ConsoleWindow.mxml?rev=1360962&view=auto
==============================================================================
--- incubator/flex/utilities/InstallApacheFlex/src/org/apache/flex/packageflexsdk/view/components/ConsoleWindow.mxml (added)
+++ incubator/flex/utilities/InstallApacheFlex/src/org/apache/flex/packageflexsdk/view/components/ConsoleWindow.mxml Thu Jul 12 21:33:49 2012
@@ -0,0 +1,71 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements.  See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License.  You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+-->
+<s:Window xmlns:fx="http://ns.adobe.com/mxml/2009" 
+		  xmlns:s="library://ns.adobe.com/flex/spark" 
+		  xmlns:mx="library://ns.adobe.com/flex/mx"
+		  title="Install Log" width="600" height="300" showStatusBar="false"
+		  skinClass="ws.tink.spark.skins.controls.InstallApacheFlexSkin">
+	
+	<fx:Script>
+		<![CDATA[
+			import mx.binding.utils.BindingUtils;
+			import mx.binding.utils.ChangeWatcher;
+			import mx.collections.ArrayCollection;
+			
+			import org.apache.flex.packageflexsdk.resource.ViewResourceConstants;
+		
+			[Bindable] public var messages:ArrayCollection = new ArrayCollection();
+			
+			protected function closeWindow(event:MouseEvent):void
+			{
+				close();
+			}
+
+			private function handleCopyBtnClick(event:MouseEvent):void
+			{
+				var logText:String = "";
+				
+				for each (var str:Object in messages)
+				{
+					logText += str.toString() + "\n";
+				}
+				
+				Clipboard.generalClipboard.setData(ClipboardFormats.TEXT_FORMAT,logText);
+			}
+			
+		]]>
+	</fx:Script>
+	
+	<s:layout>
+		<s:VerticalLayout gap="0" />
+	</s:layout>
+	
+		<s:List id="logTxtArea" dataProvider="{messages}" width="100%" height="100%" >
+		<s:layout>
+			<s:VerticalLayout gap="0" horizontalAlign="justify" />
+		</s:layout>
+	</s:List>
+		
+	<s:HGroup width="100%" >
+		<s:Button label="COPY LOG" click="handleCopyBtnClick(event)" styleName="genericBtnStyle"  />
+		<s:Spacer width="100%" />
+		<s:Button label="{ViewResourceConstants.getInstance().CLOSE_BTN_LABEL}" click="closeWindow(event)" styleName="genericBtnStyle"  />
+	</s:HGroup>
+</s:Window>

Added: incubator/flex/utilities/InstallApacheFlex/src/org/apache/flex/packageflexsdk/view/components/MPLLicense.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/utilities/InstallApacheFlex/src/org/apache/flex/packageflexsdk/view/components/MPLLicense.mxml?rev=1360962&view=auto
==============================================================================
--- incubator/flex/utilities/InstallApacheFlex/src/org/apache/flex/packageflexsdk/view/components/MPLLicense.mxml (added)
+++ incubator/flex/utilities/InstallApacheFlex/src/org/apache/flex/packageflexsdk/view/components/MPLLicense.mxml Thu Jul 12 21:33:49 2012
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="utf-8"?>
+<s:Window xmlns:fx="http://ns.adobe.com/mxml/2009" 
+		  xmlns:s="library://ns.adobe.com/flex/spark" 
+		  xmlns:mx="library://ns.adobe.com/flex/mx" width="600" height="300" showStatusBar="false"
+		  title="Mozilla Public License Version 1.1">
+	<fx:Script>
+		<![CDATA[
+			import org.apache.flex.packageflexsdk.resource.ViewResourceConstants;
+			[Bindable]private var mplTextStr:String = "Mozilla Public License Version 1.1:" +  
+				"The contents of the file(s) are subject to the Mozilla Public License Version 1.1." +
+				"You may not use the file(s) except in compliance with the License. " +
+				"You may obtain a copy of the License here: http://www.mozilla.org/MPL/. " +
+				"By downloading, modifying, distributing, using and/or accessing the file(s), " +
+				"you agree to the terms and conditions of the applicable license agreement.";
+		]]>
+	</fx:Script>
+	<s:layout>
+		<s:VerticalLayout />
+	</s:layout>
+	<s:TextArea width="100%" height="100%" fontSize="14" text="{mplTextStr}" />
+	<s:HGroup width="100%" height="50" verticalAlign="middle" paddingRight="15" >
+		<s:Spacer width="100%" />
+		<s:Button label="{ViewResourceConstants.getInstance().CLOSE_BTN_LABEL}" click="close()" styleName="genericBtnStyle"  />
+	</s:HGroup>
+</s:Window>

Added: incubator/flex/utilities/InstallApacheFlex/src/org/apache/flex/packageflexsdk/view/controls/MultiStepProgressIndicator.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/utilities/InstallApacheFlex/src/org/apache/flex/packageflexsdk/view/controls/MultiStepProgressIndicator.mxml?rev=1360962&view=auto
==============================================================================
--- incubator/flex/utilities/InstallApacheFlex/src/org/apache/flex/packageflexsdk/view/controls/MultiStepProgressIndicator.mxml (added)
+++ incubator/flex/utilities/InstallApacheFlex/src/org/apache/flex/packageflexsdk/view/controls/MultiStepProgressIndicator.mxml Thu Jul 12 21:33:49 2012
@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements.  See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License.  You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+-->
+<s:Group xmlns:fx="http://ns.adobe.com/mxml/2009" 
+					  xmlns:s="library://ns.adobe.com/flex/spark" 
+					  xmlns:mx="library://ns.adobe.com/flex/mx">
+	<fx:Declarations>
+		<!-- Place non-visual elements (e.g., services, value objects) here -->
+	</fx:Declarations>
+	<fx:Script>
+		<![CDATA[
+			import mx.collections.ArrayCollection;
+			[Bindable] public var steps:ArrayCollection;
+		]]>
+	</fx:Script>
+	<s:DataGroup dataProvider="{steps}" itemRenderer="ws.tink.spark.controls.StepRenderer">
+		<s:layout>
+			<s:HorizontalLayout gap="12"/>
+		</s:layout>
+	</s:DataGroup>
+</s:Group>
\ No newline at end of file

Added: incubator/flex/utilities/InstallApacheFlex/src/org/apache/flex/packageflexsdk/view/itemrenderers/OptionalInstallItemRenderer.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/utilities/InstallApacheFlex/src/org/apache/flex/packageflexsdk/view/itemrenderers/OptionalInstallItemRenderer.mxml?rev=1360962&view=auto
==============================================================================
--- incubator/flex/utilities/InstallApacheFlex/src/org/apache/flex/packageflexsdk/view/itemrenderers/OptionalInstallItemRenderer.mxml (added)
+++ incubator/flex/utilities/InstallApacheFlex/src/org/apache/flex/packageflexsdk/view/itemrenderers/OptionalInstallItemRenderer.mxml Thu Jul 12 21:33:49 2012
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements.  See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License.  You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+-->
+<s:ItemRenderer xmlns:fx="http://ns.adobe.com/mxml/2009" 
+				xmlns:s="library://ns.adobe.com/flex/spark" 
+				xmlns:mx="library://ns.adobe.com/flex/mx" 
+				autoDrawBackground="true">
+	<s:layout>
+		<s:HorizontalLayout verticalAlign="middle" gap="5" />
+	</s:layout>
+	<s:CheckBox selected="{data.selected}" enabled="false" skinClass="ws.tink.spark.skins.controls.ColorCheckBoxSkin" />
+	<s:Label text="{data.label}" fontSize="12"/>
+	
+</s:ItemRenderer>

Added: incubator/flex/utilities/InstallApacheFlex/src/ws/tink/spark/controls/ActivityIndicator.as
URL: http://svn.apache.org/viewvc/incubator/flex/utilities/InstallApacheFlex/src/ws/tink/spark/controls/ActivityIndicator.as?rev=1360962&view=auto
==============================================================================
--- incubator/flex/utilities/InstallApacheFlex/src/ws/tink/spark/controls/ActivityIndicator.as (added)
+++ incubator/flex/utilities/InstallApacheFlex/src/ws/tink/spark/controls/ActivityIndicator.as Thu Jul 12 21:33:49 2012
@@ -0,0 +1,283 @@
+/*
+	
+	Licensed to the Apache Software Foundation (ASF) under one or more
+	contributor license agreements.  See the NOTICE file distributed with
+	this work for additional information regarding copyright ownership.
+	The ASF licenses this file to You under the Apache License, Version 2.0
+	(the "License"); you may not use this file except in compliance with
+	the License.  You may obtain a copy of the License at
+	
+	http://www.apache.org/licenses/LICENSE-2.0
+	
+	Unless required by applicable law or agreed to in writing, software
+	distributed under the License is distributed on an "AS IS" BASIS,
+	WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+	See the License for the specific language governing permissions and
+	limitations under the License.
+	
+*/
+package ws.tink.spark.controls
+{
+	import mx.events.FlexEvent;
+	import mx.managers.IToolTipManagerClient;
+	
+	import spark.components.Label;
+	import spark.components.supportClasses.SkinnableComponent;
+	
+	import ws.tink.spark.controls.Rotator;
+
+	/**
+	 *  An indicator showing the indeterminate progress of a task.
+	 *
+	 * 	@langversion 3.0
+	 * 	@playerversion Flash 10
+	 * 	@playerversion AIR 1.5
+	 * 	@productversion Flex 4
+	 */
+	public class ActivityIndicator extends SkinnableComponent
+	{
+
+		
+
+		//--------------------------------------------------------------------------
+		//
+		//  Constructor
+		//
+		//--------------------------------------------------------------------------
+
+		/**
+		 *  Constructor
+		 *
+		 *  @langversion 3.0
+  	 	 *  @playerversion Flash 10
+		 *  @playerversion AIR 1.5
+		 *  @productversion Flex 4
+		 */
+		public function ActivityIndicator()
+		{
+			addEventListener(FlexEvent.SHOW, showHandler, false, 0, true);
+			addEventListener(FlexEvent.HIDE, hideHandler, false, 0, true);
+		}
+
+		
+		
+		//--------------------------------------------------------------------------
+		//
+		//  SkinParts
+		//
+		//--------------------------------------------------------------------------	
+		
+		//----------------------------------
+		//  indicator
+		//----------------------------------
+		
+		[SkinPart(required='true')]
+		/**
+		 *  The rotator used to show an indicator
+		 *
+		 *  @langversion 3.0
+  	 	 *  @playerversion Flash 10
+		 *  @playerversion AIR 1.5
+		 *  @productversion Flex 4
+		 */
+		public var indicator:IAnimator;
+		
+		//----------------------------------
+		//  label
+		//----------------------------------
+		
+		[SkinPart]
+		/**
+		 *  The labelDisplay to show the activity status
+		 *
+		 *  @langversion 3.0
+  	 	 *  @playerversion Flash 10
+		 *  @playerversion AIR 1.5
+		 *  @productversion Flex 4
+		 */
+		public var labelDisplay:Label;
+		
+		
+		//--------------------------------------------------------------------------
+		//
+		//  Properties
+		//
+		//--------------------------------------------------------------------------	
+
+		//----------------------------------
+		//  label
+		//----------------------------------
+		
+		/**
+		 *  @private
+		 *  Storage property for label.
+		 */
+		private var _label:String = '';
+		
+		/**
+		 *  Text representing the status of the activity in progress.
+		 *  This will be shown to the user, depending on the skin.
+		 *
+		 *  @langversion 3.0
+  	 	 *  @playerversion Flash 10
+		 *  @playerversion AIR 1.5
+		 *  @productversion Flex 4
+		 */
+		public function get label():String
+		{
+			if(_label == '')
+				return null;
+			return _label;
+		}
+		/**
+		 *  @private
+		 */
+		public function set label(value:String):void
+		{
+			if( _label == value ) return;
+			
+			_label = value;
+			
+			if (indicator && indicator is IToolTipManagerClient)
+				IToolTipManagerClient( indicator ).toolTip = label;
+			
+			if (labelDisplay)
+				labelDisplay.text = _label;
+		}
+
+		
+		//----------------------------------
+		//  autoAnimate
+		//----------------------------------
+		
+		/**
+		 *  @private
+		 *  Storage property for autoAnimate.
+		 */
+		private var _autoAnimate:Boolean = true;
+		
+		[Inspectable(type="Boolean",defaultValue="true")]
+		/**
+		 *  Indicates that the <code>ActivityIndicator</code> should animate by default.
+		 *
+		 *  This includes starting and stopping the animation when the component is shown and hidden.
+		 *
+		 *  @langversion 3.0
+  	 	 *  @playerversion Flash 10
+		 *  @playerversion AIR 1.5
+		 *  @productversion Flex 4
+		 */
+		public function get autoAnimate():Boolean
+		{
+			return _autoAnimate;
+		}
+		/**
+		 *  @private
+		 */
+		public function set autoAnimate(value:Boolean):void
+		{
+			_autoAnimate = value;
+			if (value && visible)
+				play();
+			else
+				stop();
+		}
+
+		//--------------------------------------------------------------------------
+		//
+		//  Methods
+		//
+		//--------------------------------------------------------------------------	
+		
+		/**
+		 *  Start the activity animation.
+		 *  This can be managed automatically when show/hidden using autoAnimate.
+		 * 
+		 *  @see autoAnimate
+		 * 
+		 *  @langversion 3.0
+  	 	 *  @playerversion Flash 10
+		 *  @playerversion AIR 1.5
+		 *  @productversion Flex 4
+		 */	
+		public function play():void
+		{
+			if (indicator)
+				indicator.play();
+		}
+
+		/**
+		 *  Stop the activity animation.
+		 *  This can be managed automatically when show/hidden using autoAnimate.
+		 * 
+		 *  @see autoAnimate
+		 *
+		 *  @langversion 3.0
+  	 	 *  @playerversion Flash 10
+		 *  @playerversion AIR 1.5
+		 *  @productversion Flex 4
+		 */	
+		public function stop():void
+		{
+			if (indicator)
+				indicator.stop();
+		}
+
+		
+
+		//--------------------------------------------------------------------------
+		//
+		//  Overridden Methods
+		//
+		//--------------------------------------------------------------------------	
+		
+		/**
+		 *  @private
+		 */
+		protected override function partAdded(partName:String, instance:Object):void
+		{
+			super.partAdded(partName, instance);
+			
+			switch( instance )
+			{
+				case indicator :
+				{
+					if( label && indicator is IToolTipManagerClient )
+						IToolTipManagerClient( indicator ).toolTip = label;
+					if( autoAnimate ) play();
+					break;
+				}
+				case labelDisplay :
+				{
+					labelDisplay.text = label;
+					break;
+				}
+			}
+		}
+		
+		
+		
+		//--------------------------------------------------------------------------
+		//
+		//  Event Handlers
+		//
+		//--------------------------------------------------------------------------	
+		
+		/**
+		 *  @private
+		 */
+		private function hideHandler(event:FlexEvent):void
+		{
+			if( autoAnimate ) stop();
+		}
+		
+		/**
+		 *  @private
+		 */
+		private function showHandler(event:FlexEvent):void
+		{
+			if (autoAnimate)
+				play();
+		}
+	}
+}
\ No newline at end of file

Added: incubator/flex/utilities/InstallApacheFlex/src/ws/tink/spark/controls/IAnimator.as
URL: http://svn.apache.org/viewvc/incubator/flex/utilities/InstallApacheFlex/src/ws/tink/spark/controls/IAnimator.as?rev=1360962&view=auto
==============================================================================
--- incubator/flex/utilities/InstallApacheFlex/src/ws/tink/spark/controls/IAnimator.as (added)
+++ incubator/flex/utilities/InstallApacheFlex/src/ws/tink/spark/controls/IAnimator.as Thu Jul 12 21:33:49 2012
@@ -0,0 +1,53 @@
+/*
+
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements.  See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License.  You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+*/
+package ws.tink.spark.controls
+{
+	
+	/**
+	 *  The IAnimator interface defines the methods
+	 *  for controls that are able to animate.
+	 *  
+	 *  @langversion 3.0
+	 *  @playerversion Flash 10
+	 *  @playerversion AIR 1.5
+	 *  @productversion Flex 4.5
+	 */
+	public interface IAnimator
+	{
+		/**
+		 *  Plays the animation.
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 10
+		 *  @playerversion AIR 1.5
+		 *  @productversion Flex 4
+		 */
+		function play():void
+			
+		/**
+		 *  Stops the animation.
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 10
+		 *  @playerversion AIR 1.5
+		 *  @productversion Flex 4
+		 */
+		function stop():void
+	}
+}
\ No newline at end of file

Added: incubator/flex/utilities/InstallApacheFlex/src/ws/tink/spark/controls/PercentLayout.as
URL: http://svn.apache.org/viewvc/incubator/flex/utilities/InstallApacheFlex/src/ws/tink/spark/controls/PercentLayout.as?rev=1360962&view=auto
==============================================================================
--- incubator/flex/utilities/InstallApacheFlex/src/ws/tink/spark/controls/PercentLayout.as (added)
+++ incubator/flex/utilities/InstallApacheFlex/src/ws/tink/spark/controls/PercentLayout.as Thu Jul 12 21:33:49 2012
@@ -0,0 +1,125 @@
+/*
+
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements.  See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License.  You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+*/
+package ws.tink.spark.controls
+{
+	import mx.core.IVisualElement;
+	
+	import spark.layouts.BasicLayout;
+	
+	public class PercentLayout extends BasicLayout
+	{
+		public function PercentLayout()
+		{
+			super();
+		}
+		
+		//----------------------------------
+		//  resizeItems
+		//----------------------------------
+		
+		/**
+		 *  @private
+		 *  Storage property for resizeItems.
+		 */
+		private var _resizeItems:Array;
+		
+		/**
+		 *  resizeItems
+		 * 
+		 *  @langversion 3.0
+		 *  @playerversion Flash 10
+		 *  @playerversion AIR 1.5
+		 *  @productversion Flex 4
+		 */
+		public function get resizeItems():Array
+		{
+			return _resizeItems;
+		}
+		/**
+		 *  @private
+		 */
+		public function set resizeItems(value:Array):void
+		{
+			if( _resizeItems == value ) return;
+			
+			_resizeItems = value;
+		}
+		
+		//----------------------------------
+		//  percent
+		//----------------------------------
+		
+		/**
+		 *  @private
+		 *  Storage property for percent.
+		 */
+		private var _percent:Number = 0;
+		
+		/**
+		 *  percent
+		 * 
+		 *  @langversion 3.0
+		 *  @playerversion Flash 10
+		 *  @playerversion AIR 1.5
+		 *  @productversion Flex 4
+		 */
+		public function get percent():Number
+		{
+			return _percent;
+		}
+		/**
+		 *  @private
+		 */
+		public function set percent(value:Number):void
+		{
+			if( _percent == value ) return;
+			
+			_percent = value;
+			target.invalidateDisplayList();
+		}
+		
+		
+		override public function updateDisplayList( unscaledWidth:Number, unscaledHeight:Number ):void
+		{
+			super.updateDisplayList( unscaledWidth, unscaledHeight );
+			
+			if( resizeItems && resizeItems.length )
+			{
+				var element:IVisualElement;
+				var originalSize:Number;
+				var minSize:Number;
+				var availableChange:Number;
+				
+				for each (var item:Object in resizeItems) 
+				{
+					if( item is IVisualElement )
+					{
+						element = IVisualElement( item );
+						originalSize = element.getLayoutBoundsWidth();
+						minSize = element.getMinBoundsWidth();
+						availableChange = originalSize - minSize;
+						element.setLayoutBoundsSize( minSize + ( availableChange * ( percent / 100 ) ), element.getLayoutBoundsHeight() );
+					}
+				}
+			}
+			
+			
+		}
+	}
+}
\ No newline at end of file

Added: incubator/flex/utilities/InstallApacheFlex/src/ws/tink/spark/controls/ProgressBar.as
URL: http://svn.apache.org/viewvc/incubator/flex/utilities/InstallApacheFlex/src/ws/tink/spark/controls/ProgressBar.as?rev=1360962&view=auto
==============================================================================
--- incubator/flex/utilities/InstallApacheFlex/src/ws/tink/spark/controls/ProgressBar.as (added)
+++ incubator/flex/utilities/InstallApacheFlex/src/ws/tink/spark/controls/ProgressBar.as Thu Jul 12 21:33:49 2012
@@ -0,0 +1,131 @@
+/*
+
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements.  See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License.  You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+*/
+package ws.tink.spark.controls
+{
+	import mx.core.IVisualElement;
+	import mx.rpc.events.HeaderEvent;
+	
+	import spark.components.supportClasses.SkinnableComponent;
+	
+	public class ProgressBar extends SkinnableComponent
+	{
+		
+		
+		//--------------------------------------------------------------------------
+		//
+		//  Constructor
+		//
+		//--------------------------------------------------------------------------
+		
+		/**
+		 *  Constructor.
+		 *  
+		 *  @langversion 3.0
+		 *  @playerversion Flash 10
+		 *  @playerversion AIR 1.5
+		 *  @productversion Flex 4
+		 */
+		public function ProgressBar()
+		{
+			super();
+		}
+		
+		
+		//--------------------------------------------------------------------------
+		//
+		//  Skin Parts
+		//
+		//--------------------------------------------------------------------------
+		
+		//----------------------------------
+		//  bar
+		//----------------------------------
+		
+		[SkinPart(required="true")]
+		
+		/**
+		 *  bar.
+		 *  
+		 *  @langversion 3.0
+		 *  @playerversion Flash 10
+		 *  @playerversion AIR 1.5
+		 *  @productversion Flex 4
+		 */
+		public var percentLayout:PercentLayout;
+		
+		
+		
+		//--------------------------------------------------------------------------
+		//
+		//  Properties
+		//
+		//--------------------------------------------------------------------------
+		
+		//----------------------------------
+		//  percent
+		//----------------------------------
+		
+		/**
+		 *  @private
+		 *  Storage property for percent.
+		 */
+		private var _percent:Number = 0;
+		
+		/**
+		 *  percent
+		 * 
+		 *  @langversion 3.0
+		 *  @playerversion Flash 10
+		 *  @playerversion AIR 1.5
+		 *  @productversion Flex 4
+		 */
+		public function get percent():Number
+		{
+			return _percent;
+		}
+		/**
+		 *  @private
+		 */
+		public function set percent(value:Number):void
+		{
+			if( _percent == value ) return;
+			
+			_percent = value;
+			if( percentLayout ) percentLayout.percent = percent;
+		}
+		
+		
+		
+		//--------------------------------------------------------------------------
+		//
+		//  Overridden Methods
+		//
+		//--------------------------------------------------------------------------
+		
+		/**
+		 *  @private
+		 */
+		override protected function partAdded(partName:String, instance:Object):void
+		{
+			super.partAdded( partName, instance );
+			
+			if( instance == percentLayout ) percentLayout.percent = percent;;
+		}
+	}
+}
\ No newline at end of file



Mime
View raw message