You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by bi...@apache.org on 2012/07/12 23:33:52 UTC

svn commit: r1360962 [2/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...

Added: incubator/flex/utilities/InstallApacheFlex/src/InstallApacheFlex.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/utilities/InstallApacheFlex/src/InstallApacheFlex.mxml?rev=1360962&view=auto
==============================================================================
--- incubator/flex/utilities/InstallApacheFlex/src/InstallApacheFlex.mxml (added)
+++ incubator/flex/utilities/InstallApacheFlex/src/InstallApacheFlex.mxml Thu Jul 12 21:33:49 2012
@@ -0,0 +1,1806 @@
+<?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.
+
+-->
+
+
+<!--
+This script should be used to create an Apache Flex SDK that has the
+directory structure that an IDE expects.
+
+The Adobe AIR SDK and the Adobe Flash Player playerglobal.swc are integrated
+into the directory structure.  The paths in the framework configuration files are 
+modified to reflect this.  The AIR_HOME and PLAYERGLOBAL_HOME environment 
+variables are not required because the locations of these pieces are known.
+
+Command line usage: packageApacheFlexForIDE [sdk directory]
+
+-->
+
+<s:WindowedApplication 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="800" height="600" maxWidth="800" maxHeight="550" minWidth="800" minHeight="550"
+					   backgroundColor="0xDDDDDD" title="Package Apache Flex SDK for use in an IDE"
+					   applicationComplete="handleApplicationComplete(event)" showStatusBar="false"
+					   skinClass="ws.tink.spark.skins.controls.InstallApacheFlexSkin" xmlns:controls="ws.tink.spark.controls.*" xmlns:controls1="org.apache.flex.packageflexsdk.view.controls.*" xmlns:components="org.apache.flex.packageflexsdk.view.components.*">
+	
+	<fx:Style source="assets/styles/styles.css" />
+	
+	<fx:Script>
+		<![CDATA[	
+			import flash.globalization.LocaleID;
+			import flash.globalization.StringTools;
+			
+			import mx.binding.utils.BindingUtils;
+			import mx.binding.utils.ChangeWatcher;
+			import mx.collections.ArrayCollection;
+			import mx.events.EffectEvent;
+			import mx.events.FlexEvent;
+			import mx.utils.StringUtil;
+			
+			import org.apache.flex.packageflexsdk.model.OptionalComponentVO;
+			import org.apache.flex.packageflexsdk.resource.RuntimeLocale;
+			import org.apache.flex.packageflexsdk.resource.ViewResourceConstants;
+			import org.apache.flex.packageflexsdk.view.components.AdobeLicense;
+			import org.apache.flex.packageflexsdk.view.components.ConsoleWindow;
+			import org.apache.flex.packageflexsdk.view.components.MPLLicense;
+			import org.as3commons.zip.Zip;
+			import org.as3commons.zip.ZipEvent;
+			import org.as3commons.zip.ZipFile;
+			
+			import spark.components.Window;
+			import spark.effects.easing.Sine;
+			import spark.events.IndexChangeEvent;
+			import spark.events.TextOperationEvent;
+			
+			import ws.tink.spark.controls.StepItem;
+			
+			/**
+			 * Apache Flex binary distribution
+			 * 
+			 * Values stored in ApacheFlexConfig.xml edit file to change
+			 * 
+			 */
+			private var APACHE_FLEX_BIN_DISTRO_FILE:String;
+			private var APACHE_FLEX_BIN_DISTRO_URL:String;
+			
+			/**
+			 * Adobe AIR SDK
+			 * 
+			 * Values stored in ApacheFlexConfig.xml edit file to change
+			 * 
+			 */ 
+			private var ADOBE_AIR_SDK_WIN_FILE:String;
+			private var ADOBE_AIR_SDK_WIN_URL:String;
+			private var ADOBE_AIR_SDK_MAC_FILE:String;
+			private var ADOBE_AIR_SDK_MAC_URL:String;
+			
+			/**
+			 * Adobe Flash Player
+			 * 
+			 * Values stored in ApacheFlexConfig.xml edit file to change
+			 * 
+			 */
+			private var ADOBE_FB_GLOBALPLAYER_SWC_FILE:String;
+			private var ADOBE_FB_GLOBALPLAYER_SWC_URL:String;
+			
+			
+			/**
+			 * Optional installs 
+			 * 
+			 */
+			private var OSMF_FILE:String;
+			private var OSMF_URL:String;
+			
+			private var TLF_FILE:String;
+			private var TLF_URL:String;
+			
+			private var BLAZEDS_FILE:String;
+			private var BLAZEDS_URL:String;
+			
+			private var AFE_FILE:String;
+			private var AFE_URL:String;
+			private var AGLJ40_FILE:String;
+			private var AGLJ40_URL:String;
+			private var FLEX_FONTKIT_FILE:String;
+			private var FLEX_FONTKIT_URL:String;
+			private var RIDEAU_FILE:String;
+			private var RIDEAU_URL:String;
+			
+			private const APP_NAME:String = "InstallApacheFlex";
+			private const WINDOWS_OS:String = "windows";
+			private const MAC_OS:String = "mac";
+			
+			[Bindable]private var _flexHome:String;
+			private var _flexTemp:String;
+			private var _flexHomeDir:File;
+			private var _flexTempDir:File;
+			private var _apacheFlexSDKZipFile:File;
+			private var _adobeAIRSDKZipFile:File;
+			private var _fbGlobalPlayerDir:File;
+			private var _fbGlobalPlayerFile:File;
+			private var _blazeDSJarFile:File;
+			private var _afeJarFile:File;
+			private var _aglj40JarFile:File;
+			private var _flexFontKitJarFile:File;
+			private var _rideauJarFile:File;
+			private var _osmfFile:File;
+			private var _tlfFile:File;
+			
+			private var _os:String;
+			private var _loader:URLLoader;	
+			private var _process:NativeProcess;
+			private var _previousDisplayedPercent:int = 0;
+			private var _runtimeLocale:RuntimeLocale = new RuntimeLocale();
+			private var _fileUnzipErrorFunction:Function;
+			private var _numOptionalComponents:int = 4;
+			private var _numOptionalComponentsPermissions:int = 0;
+			
+			[Bindable] private var _constants:ViewResourceConstants;
+			[Bindable] private var _installationSteps:ArrayCollection = new ArrayCollection();
+			[Bindable] private var _optionalInstallsDataProvider:ArrayCollection = new ArrayCollection();
+			[Bindable] public var _messages:ArrayCollection = new ArrayCollection();
+			
+			protected function handleApplicationComplete(event:FlexEvent):void
+			{
+				centerWindow();
+				_constants = ViewResourceConstants.getInstance();
+				_runtimeLocale.enumerateBundles();
+				_langSelect.dataProvider = _runtimeLocale.supportedLanguage;
+				_langSelect.selectedIndex = 0;
+				selectDefaultLanguage();
+				loadXML();
+			}
+			
+			protected function selectDefaultLanguage():void {
+				var length:int = _runtimeLocale.supportedLanguage.length;
+				var tool:StringTools = new StringTools(LocaleID.DEFAULT);
+				var userLocale:String = tool.actualLocaleIDName.replace("-","_");
+				
+				for (var i:int = 0; i < length; i++)
+				{
+					if (_runtimeLocale.supportedLanguage[i].data == userLocale) {
+						_langSelect.selectedIndex = i;
+						break;
+					}
+				}
+			}
+			
+			protected function centerWindow():void
+			{
+				this.nativeWindow.x = Screen.mainScreen.bounds.width/2 - this.nativeWindow.width/2;
+				this.nativeWindow.y = Screen.mainScreen.bounds.height/2 - this.nativeWindow.height/2;
+			}
+			
+			protected function loadXML():void
+			{
+				var request:URLRequest = new URLRequest(_constants.CONFIG_URL);
+				
+				_loader = new URLLoader();
+				
+				try
+				{
+					_loader.load(request);
+				}
+				catch (error:Error)
+				{
+					log(_constants.ERROR_CONFIG_XML_LOAD + error.errorID + " " + error.message);
+					abortInstallation();
+				}
+				
+				_loader.addEventListener(IOErrorEvent.IO_ERROR, xmlError,false,0,true);
+				_loader.addEventListener(Event.COMPLETE, xmlLoaded,false,0,true);
+			}
+			
+			protected function xmlError(event:IOErrorEvent):void
+			{
+				log(_constants.ERROR_CONFIG_XML_LOAD + event.errorID);
+				abortInstallation();
+			}
+			
+			protected function xmlLoaded(event:Event):void
+			{
+				setOSSpecificVariables();
+				
+				if (setXMLVariables())
+				{
+					main();
+				}
+			}
+			
+			protected function setXMLVariables():Boolean
+			{
+				var data:XML = XML(_loader.data);
+				var version:Number = Number(data.version.toString());
+				var files:XMLList = data.files.file;
+				var keepGoing:Boolean = true;
+				
+				APACHE_FLEX_BIN_DISTRO_FILE = files.(@name == 'ApacheFlexSDK').@file.toString();
+				APACHE_FLEX_BIN_DISTRO_URL = files.(@name == 'ApacheFlexSDK').@path.toString();
+				if (!APACHE_FLEX_BIN_DISTRO_FILE || !APACHE_FLEX_BIN_DISTRO_URL)
+				{
+					log(_constants.ERROR_INVALID_SDK_URL);
+					keepGoing = false;
+				}
+				APACHE_FLEX_BIN_DISTRO_URL += APACHE_FLEX_BIN_DISTRO_FILE;
+				
+				ADOBE_AIR_SDK_WIN_FILE = files.(@name == 'AdobeAIRSDKWin').@file.toString();
+				ADOBE_AIR_SDK_WIN_URL = files.(@name == 'AdobeAIRSDKWin').@path.toString();
+				if (_os == WINDOWS_OS && (!ADOBE_AIR_SDK_WIN_FILE || !ADOBE_AIR_SDK_WIN_URL))
+				{
+					log(_constants.ERROR_INVALID_AIR_SDK_URL_WINDOWS);
+					keepGoing = false;
+				}
+				ADOBE_AIR_SDK_WIN_URL += ADOBE_AIR_SDK_WIN_FILE;
+				
+				ADOBE_AIR_SDK_MAC_FILE = files.(@name == 'AdobeAIRSDKMac').@file.toString();
+				ADOBE_AIR_SDK_MAC_URL = files.(@name == 'AdobeAIRSDKMac').@path.toString();
+				if (_os == MAC_OS && (!ADOBE_AIR_SDK_MAC_FILE || !ADOBE_AIR_SDK_MAC_URL))
+				{
+					log(_constants.ERROR_INVALID_AIR_SDK_URL_MAC);
+					keepGoing = false;
+				}
+				ADOBE_AIR_SDK_MAC_URL += ADOBE_AIR_SDK_MAC_FILE;
+				
+				ADOBE_FB_GLOBALPLAYER_SWC_FILE =  files.(@name == 'FlashPlayer').@file.toString();
+				ADOBE_FB_GLOBALPLAYER_SWC_URL = files.(@name == 'FlashPlayer').@path.toString();
+				if (!ADOBE_FB_GLOBALPLAYER_SWC_FILE || !ADOBE_FB_GLOBALPLAYER_SWC_URL)
+				{
+					log(_constants.ERROR_INVALID_FLASH_PLAYER_SWC_URL);
+					keepGoing = false;
+				}
+				ADOBE_FB_GLOBALPLAYER_SWC_URL += ADOBE_FB_GLOBALPLAYER_SWC_FILE;
+				
+				OSMF_FILE = files.(@name == 'OSMF').@file.toString();
+				OSMF_URL = files.(@name == 'OSMF').@path.toString();
+				
+				TLF_FILE = files.(@name == 'TLF').@file.toString();
+				TLF_URL = files.(@name == 'TLF').@path.toString();
+				
+				BLAZEDS_FILE = files.(@name == 'BlazeDS').@file.toString();
+				BLAZEDS_URL = files.(@name == 'BlazeDS').@path.toString();
+				
+				AFE_FILE = files.(@name == 'afe').@file.toString();
+				AFE_URL = files.(@name == 'afe').@path.toString();
+				
+				AGLJ40_FILE = files.(@name == 'aglj40').@file.toString();
+				AGLJ40_URL = files.(@name == 'aglj40').@path.toString();
+				
+				FLEX_FONTKIT_FILE = files.(@name == 'flex-fontkit').@file.toString();
+				FLEX_FONTKIT_URL = files.(@name == 'flex-fontkit').@path.toString();
+				
+				RIDEAU_FILE = files.(@name == 'rideau').@file.toString();
+				RIDEAU_URL = files.(@name == 'rideau').@path.toString();
+				
+				return keepGoing;
+			}
+			
+			protected function setOSSpecificVariables():void
+			{
+				var operatingSystemStr:String = Capabilities.os;
+				
+				if (operatingSystemStr.search("Mac OS") != -1)
+				{
+					_os =  MAC_OS;
+				}
+				else if (operatingSystemStr.search("Windows") != -1)
+				{
+					_os = WINDOWS_OS;
+				}
+				else
+				{
+					log(_constants.ERROR_UNSUPPORTED_OPERATING_SYSTEM);
+				}
+			}
+			
+			protected function main():void
+			{
+				initiateInstallStepsActivity();
+				initializeOptionInstallsDataProvider();
+			}
+			
+			protected function handleInstallBtnClick(event:MouseEvent):void
+			{
+				if (flexSDKTxtInput.text == "")
+				{
+					log(_constants.INFO_ENTER_VALID_FLEX_SDK_PATH);
+				}
+				else
+				{
+					_langSelect.enabled = false;
+					_flexHome = flexSDKTxtInput.text;
+					resetInstallStepsActivity();
+					addOptionalComponentsToInstallSteps();
+					this.currentState = "installState";
+					install();
+				}
+			}
+			
+			protected function handleFirstStepNextBtnClick(event:MouseEvent):void
+			{
+				currentState = "optionsState";
+			}
+			
+			protected function initiateInstallStepsActivity():void
+			{
+				_installationSteps.addItem(new StepItem(_constants.STEP_CREATE_DIRECTORIES));
+				_installationSteps.addItem(new StepItem(_constants.STEP_DOWNLOAD_FLEX_SDK));
+				_installationSteps.addItem(new StepItem(_constants.STEP_UNZIP_FLEX_SDK));
+				_installationSteps.addItem(new StepItem(_constants.STEP_DOWNLOAD_AIR_RUNTIME_KIT));
+				_installationSteps.addItem(new StepItem(_constants.STEP_UNZIP_AIR_RUNTIME_KIT));
+				_installationSteps.addItem(new StepItem(_constants.STEP_DOWNLOAD_FLASHPLAYER_SWC));
+				_installationSteps.addItem(new StepItem(_constants.STEP_INSTALL_CONFIG_FILES));
+			}
+			
+			protected function resetInstallStepsActivity():void
+			{
+				for each(var step:StepItem in _installationSteps)
+				{
+					step.status = StepItem.NORMAL;
+				}
+			}
+			
+			protected function addOptionalComponentsToInstallSteps():void
+			{
+				for each (var obj:OptionalComponentVO in _optionalInstallsDataProvider)
+				{
+					if(obj.selected)
+					{
+						_installationSteps.addItem(new StepItem(obj.label));
+					}
+				}
+			}
+			
+			protected function initializeOptionInstallsDataProvider():void{
+				_optionalInstallsDataProvider.addItem(new OptionalComponentVO(_constants.STEP_OPTIONAL_INSTALL_TLF,_constants.ASK_TLF,true));
+				_optionalInstallsDataProvider.addItem(new OptionalComponentVO(_constants.STEP_OPTIONAL_INSTALL_OSMF,_constants.ASK_OSMF,true));
+				_optionalInstallsDataProvider.addItem(new OptionalComponentVO(_constants.STEP_OPTIONAL_INSTALL_FONTSWF,_constants.ASK_FONTSWF,false));
+				_optionalInstallsDataProvider.addItem(new OptionalComponentVO(_constants.STEP_OPTIONAL_INSTALL_BLAZEDS,_constants.ASK_BLAZEDS,false));
+			}
+			
+			protected function install():void
+			{
+				createDirectories();
+			}
+			
+			
+			protected function setCommandLineState():void
+			{
+				currentState = "commandLineState";
+			}
+			
+			protected function setGUIState():void
+			{
+				currentState = "guiState";
+			}
+			
+			// TODO Scan for Apache SDKs installed and check if allready modified?
+			protected function browseForSDK(event:MouseEvent):void
+			{
+				var file:File = new File(); 
+				
+				file.addEventListener(Event.SELECT, flexSDKDirSelected,false,0,true); 
+				file.browseForDirectory(_constants.INFO_SELECT_DIRECTORY); 
+			}
+			
+			protected function flexSDKDirSelected(event:Event):void
+			{
+				var selectedDir:File =  File(event.target);
+				
+				if(isDirectoryEmpty(selectedDir))
+				{
+					_flexHome = selectedDir.nativePath;
+					flexSDKTxtInput.text = _flexHome;
+					nextBtn.enabled = true;
+					_langSelect.enabled = true;
+					flexSDKTxtInput.errorString = "";
+				}
+				else
+				{
+					nextBtn.enabled = false;
+					flexSDKTxtInput.errorString = _constants.ERROR_DIRECTORY_NOT_EMPTY;
+				}
+			}
+			
+			protected function validApacheSDK(flexPath:String):Boolean
+			{
+				var valid:Boolean = true;
+				var descriptionFile:String = flexPath + File.separator + "flex-sdk-description.xml";
+				var file:File = new File(descriptionFile);
+				
+				// Check flex SDK diretory has flex description file
+				if (!file.exists)
+				{
+					valid = false;
+					flexSDKTxtInput.errorString = _constants.ERROR_INVALID_FLEX_SDK_DIRECTORY;
+				}
+				
+				// TODO Check is Apache not Adobe SDK
+				
+				return valid;
+			}
+			
+			protected function SDKNotPackaged(flexPath:String):Boolean
+			{
+				var unpackaged:Boolean = true;
+				var playerFile:String = flexPath + File.separator + "frameworks" + File.separator + "libs" + File.separator
+					+ "player" + File.separator + "11.1" + File.separator + "playerglobal.swc"; 
+				var file:File = new File(playerFile);
+				
+				// check for existance of  player global
+				if (file.exists)
+				{
+					unpackaged = false;
+					flexSDKTxtInput.errorString = _constants.ERROR_INVALID_FLEX_SDK_DIRECTORY;
+				}
+				
+				return unpackaged;
+			}
+			
+			protected function handleFlexSDXTxtInputChange(event:TextOperationEvent):void
+			{
+				var tempDir:File;
+				var path:String = flexSDKTxtInput.text;
+				
+				try
+				{
+					tempDir = new File(path);
+					
+					if (SDKNotPackaged(path))
+					{
+						flexSDKTxtInput.errorString = "";
+						_flexHome = path;
+						nextBtn.enabled = true;
+						_langSelect.enabled = true;
+					}
+					else
+					{
+						flexSDKTxtInput.errorString = _constants.ERROR_INVALID_FLEX_SDK_DIRECTORY;
+						nextBtn.enabled = false;
+					}
+				}
+				catch (e:Error)
+				{
+					flexSDKTxtInput.errorString = _constants.ERROR_INVALID_FLEX_SDK_DIRECTORY;
+					nextBtn.enabled = false;
+				}
+			}
+			
+			protected function createDirectories():void
+			{
+				updateActivityStep(_constants.STEP_CREATE_DIRECTORIES, StepItem.ACTIVE);
+				
+				try
+				{
+					log(_constants.INFO_CREATING_FLEX_HOME);
+					_flexHomeDir = createFolder(_flexHome);
+					log(_constants.INFO_CREATING_TEMP_DIR);
+					_flexTemp = _flexHome + File.separator + "temp";
+					_flexTempDir = createFolder(_flexTemp);
+					updateActivityStep(_constants.STEP_CREATE_DIRECTORIES, StepItem.COMPLETE);
+					downloadApacheFlexSDK();
+				}
+				catch (e:Error)
+				{
+					updateActivityStep(_constants.STEP_CREATE_DIRECTORIES, StepItem.ERROR);
+					log(_constants.ERROR_UNABLE_TO_CREATE_TEMP_DIRECTORY);
+					abortInstallation();
+				}
+			}
+			
+			protected function downloadApacheFlexSDK():void
+			{
+				updateActivityStep(_constants.STEP_DOWNLOAD_FLEX_SDK, StepItem.ACTIVE);
+				
+				try
+				{
+					log(_constants.INFO_DOWNLOADING_APACHE_FLEX_SDK + APACHE_FLEX_BIN_DISTRO_URL);
+					_apacheFlexSDKZipFile = File.userDirectory.resolvePath(_flexTemp + File.separator + APACHE_FLEX_BIN_DISTRO_FILE); 
+					copyOrDownload(APACHE_FLEX_BIN_DISTRO_URL, handleApacheFlexSDKDownload, _apacheFlexSDKZipFile, handleApacheFlexSDKDownloadError);
+				}
+				catch (e:Error)
+				{
+					updateActivityStep(_constants.STEP_DOWNLOAD_FLEX_SDK, StepItem.ERROR);
+					abortInstallation();
+				}
+				
+			}
+			
+			protected function handleApacheFlexSDKDownload(event:Event):void
+			{
+				try
+				{
+					writeFileToDirectory(_apacheFlexSDKZipFile, event.target.data);
+				}
+				catch (e:Error)
+				{
+					updateActivityStep(_constants.STEP_DOWNLOAD_FLEX_SDK, StepItem.ERROR);
+					abortInstallation();
+				}
+				
+				updateActivityStep(_constants.STEP_DOWNLOAD_FLEX_SDK, StepItem.COMPLETE);	
+				unzipApacheFlexSDK();
+			}
+			
+			protected function handleApacheFlexSDKDownloadError(event:*=null):void{
+				updateActivityStep(_constants.STEP_DOWNLOAD_FLEX_SDK, StepItem.ERROR);
+				log(_constants.ERROR_UNABLE_TO_DOWNLOAD_FLEX_SDK);
+				abortInstallation();
+			}
+			
+			protected function unzipApacheFlexSDK():void
+			{
+				updateActivityStep(_constants.STEP_UNZIP_FLEX_SDK, StepItem.ACTIVE);
+				
+				try
+				{
+					log(_constants.INFO_UNZIPPING + _apacheFlexSDKZipFile.nativePath);
+					unzip(_apacheFlexSDKZipFile, handleApacheFlexSDKZipFileUnzipComplete, handleApacheFlexSDKZipFileUnzipError);
+				}
+				catch (e:Error)
+				{
+					updateActivityStep(_constants.STEP_UNZIP_FLEX_SDK, StepItem.ERROR);
+					abortInstallation();
+				}
+			}
+			
+			protected function handleApacheFlexSDKZipFileUnzipComplete(event:Event):void
+			{
+				log(_constants.INFO_FINISHED_UNZIPPING + _apacheFlexSDKZipFile.nativePath);
+				updateActivityStep(_constants.STEP_UNZIP_FLEX_SDK, StepItem.COMPLETE);
+				
+				if (_os == WINDOWS_OS)
+				{
+					downloadAIRRuntimeKitForWindows();
+				}
+				else if (_os == MAC_OS)
+				{ 
+					downloadAIRRuntimeKitForMac();
+				}
+			}
+			
+			protected function handleApacheFlexSDKZipFileUnzipError(error:ErrorEvent=null):void
+			{
+				updateActivityStep(_constants.STEP_UNZIP_FLEX_SDK, StepItem.ERROR);
+				abortInstallation();
+			}
+			
+			protected function downloadAIRRuntimeKitForWindows():void
+			{
+				updateActivityStep(_constants.STEP_DOWNLOAD_AIR_RUNTIME_KIT, StepItem.ACTIVE);
+				
+				try
+				{
+					log(_constants.INFO_DOWLOADING_AIR_RUNTIME_KIT_WINDOWS + ADOBE_AIR_SDK_WIN_URL);
+					_adobeAIRSDKZipFile = File.userDirectory.resolvePath(_flexTemp + File.separator + ADOBE_AIR_SDK_WIN_FILE);
+					copyOrDownload(ADOBE_AIR_SDK_WIN_URL, handleAIRSDKDownload, _adobeAIRSDKZipFile, handleAIRSDKDownloadError);
+				}
+				catch (e:Error)
+				{
+					updateActivityStep(_constants.STEP_DOWNLOAD_AIR_RUNTIME_KIT, StepItem.ERROR);
+					abortInstallation();
+				}
+			}
+			
+			protected function downloadAIRRuntimeKitForMac():void
+			{
+				updateActivityStep(_constants.STEP_DOWNLOAD_AIR_RUNTIME_KIT, StepItem.ACTIVE);
+				
+				try
+				{
+					log(_constants.INFO_DOWLOADING_AIR_RUNTIME_KIT_MAC + ADOBE_AIR_SDK_MAC_URL);
+					_adobeAIRSDKZipFile = File.userDirectory.resolvePath(_flexTemp + File.separator + ADOBE_AIR_SDK_MAC_FILE);
+					copyOrDownload(ADOBE_AIR_SDK_MAC_URL, handleAIRSDKDownload, _adobeAIRSDKZipFile, handleAIRSDKDownloadError);
+				}
+				catch (e:Error)
+				{
+					updateActivityStep(_constants.STEP_DOWNLOAD_AIR_RUNTIME_KIT, StepItem.ERROR);
+					abortInstallation();
+				}
+			}
+			
+			protected function handleAIRSDKDownload(event:Event):void
+			{
+				try
+				{
+					writeFileToDirectory(_adobeAIRSDKZipFile,event.target.data);
+				}
+				catch (e:Error)
+				{
+					updateActivityStep(_constants.STEP_DOWNLOAD_AIR_RUNTIME_KIT, StepItem.ERROR);
+					abortInstallation();
+				}
+				
+				updateActivityStep(_constants.STEP_DOWNLOAD_AIR_RUNTIME_KIT, StepItem.COMPLETE);
+				
+				unzipAdobeAIRSDK();
+			}
+			
+			protected function handleAIRSDKDownloadError(error:*=null):void
+			{
+				updateActivityStep(_constants.STEP_DOWNLOAD_AIR_RUNTIME_KIT, StepItem.ERROR);
+				log(_constants.ERROR_UNABLE_TO_DOWNLOAD_AIR_SDK);
+				abortInstallation();
+			}
+			
+			protected function unzipAdobeAIRSDK():void
+			{
+				updateActivityStep(_constants.STEP_UNZIP_AIR_RUNTIME_KIT, StepItem.ACTIVE);
+				
+				try
+				{
+					if (_os == WINDOWS_OS)
+					{
+						unzipAdobeAIRSDKWindows()
+					}
+					else if (_os == MAC_OS)
+					{
+						unzipAdobeAIRSDKMac();
+					}
+				}
+				catch (e:Error)
+				{
+					updateActivityStep(_constants.STEP_UNZIP_AIR_RUNTIME_KIT, StepItem.ERROR);
+					abortInstallation();
+				}
+			}
+			
+			protected function unzipAdobeAIRSDKWindows():void
+			{
+				log(_constants.INFO_UNZIPPING + _adobeAIRSDKZipFile.nativePath);
+				unzip(_adobeAIRSDKZipFile, handleAdobeAIRSDKWinZipFileUnzipComplete, handleAdobeAIRSDKWinZipFileUnzipError);
+			}
+			
+			protected function unzipAdobeAIRSDKMac():void
+			{
+				if (NativeProcess.isSupported)
+				{
+					untar(_adobeAIRSDKZipFile, _flexHomeDir, handleAdobeAIRSDKMacUntarComplete, handleAdobeAIRSDKMacUntarError);
+				}
+				else
+				{
+					log(_constants.ERROR_NATIVE_PROCESS_NOT_SUPPORTED);
+					updateActivityStep(_constants.STEP_UNZIP_AIR_RUNTIME_KIT, StepItem.ERROR);
+				}
+			}
+			
+			protected function handleAdobeAIRSDKMacUntarError(error:ProgressEvent=null):void{
+				updateActivityStep(_constants.STEP_UNZIP_AIR_RUNTIME_KIT, StepItem.ERROR);
+				abortInstallation();
+			}
+			
+			protected function handleAdobeAIRSDKMacUntarComplete(event:Event):void
+			{
+				updateActivityStep(_constants.STEP_UNZIP_AIR_RUNTIME_KIT, StepItem.COMPLETE);
+				log(_constants.INFO_FINISHED_UNTARING + _adobeAIRSDKZipFile.nativePath);
+				downloadPlayerGlobalSWC();
+			}
+			
+			protected function handleAdobeAIRSDKWinZipFileUnzipComplete(event:Event):void
+			{
+				updateActivityStep(_constants.STEP_UNZIP_AIR_RUNTIME_KIT, StepItem.COMPLETE);
+				log(_constants.INFO_FINISHED_UNZIPPING + _adobeAIRSDKZipFile.nativePath);
+				downloadPlayerGlobalSWC();
+			}
+			
+			protected function handleAdobeAIRSDKWinZipFileUnzipError(error:ErrorEvent=null):void{
+				updateActivityStep(_constants.STEP_UNZIP_AIR_RUNTIME_KIT, StepItem.ERROR);
+			}
+			
+			protected function downloadPlayerGlobalSWC():void
+			{
+				updateActivityStep(_constants.STEP_DOWNLOAD_FLASHPLAYER_SWC, StepItem.ACTIVE);
+				
+				try
+				{
+					log(_constants.INFO_INSTALLING_PLAYERGLOBAL_SWC + ADOBE_FB_GLOBALPLAYER_SWC_URL);
+					_fbGlobalPlayerDir = createFolder(_flexHome + File.separator + "frameworks" + File.separator + "libs" + File.separator + "player" + File.separator + "11.1");
+					_fbGlobalPlayerFile = File.userDirectory.resolvePath(_fbGlobalPlayerDir.nativePath + File.separator + "playerglobal.swc");
+					copyOrDownload(ADOBE_FB_GLOBALPLAYER_SWC_URL, handlePlayerGlobalDownload, _fbGlobalPlayerFile, handlePlayerGlobalDownloadError);
+				}
+				catch (e:Error)
+				{
+					updateActivityStep(_constants.STEP_DOWNLOAD_FLASHPLAYER_SWC, StepItem.ERROR);
+					abortInstallation();
+				}
+			}
+			
+			protected function handlePlayerGlobalDownload(event:Event):void
+			{
+				try
+				{
+					var playerGlobalFile:File = File.userDirectory.resolvePath(_fbGlobalPlayerDir.nativePath + File.separator + "playerglobal.swc");
+					writeFileToDirectory(playerGlobalFile,event.target.data);
+				}
+				catch (e:Error)
+				{
+					updateActivityStep(_constants.STEP_DOWNLOAD_FLASHPLAYER_SWC, StepItem.ERROR);
+					abortInstallation();
+				}
+				updateActivityStep(_constants.STEP_DOWNLOAD_FLASHPLAYER_SWC, StepItem.COMPLETE);
+				copyConfigFiles();
+			}
+			
+			protected function handlePlayerGlobalDownloadError(event:ErrorEvent=null):void
+			{
+				updateActivityStep(_constants.STEP_DOWNLOAD_FLASHPLAYER_SWC, StepItem.ERROR);
+				log(_constants.ERROR_UNABLE_TO_DOWNLOAD_FLASH_PLAYER_SWC);
+				abortInstallation();
+			}
+			
+			protected function copyConfigFiles():void
+			{
+				var aborted:Boolean = false;
+				
+				updateActivityStep(_constants.STEP_INSTALL_CONFIG_FILES, StepItem.ACTIVE);
+				
+				try
+				{
+					//Config files
+					var configFilesDir:File = File.userDirectory.resolvePath(_flexHome + File.separator + "ide" + File.separator + "flashbuilder" + File.separator + "config");
+					var configFiles:Array = configFilesDir.getDirectoryListing();
+					var flexHomeFrameworksDir:File = File.userDirectory.resolvePath(_flexHome + File.separator + "frameworks");
+					log(_constants.INFO_INSTALLING_CONFIG_FILES);
+					
+					for each (var file:File in configFiles)
+					{
+						if (isValidConfigFile(file))
+						{
+							var copyToFile:File = flexHomeFrameworksDir.resolvePath(file.name);
+							file.copyTo(copyToFile,true);
+						}
+					}
+				}
+				catch (e:Error)
+				{
+					updateActivityStep(_constants.STEP_INSTALL_CONFIG_FILES, StepItem.ERROR);
+					log(_constants.ERROR_UNABLE_TO_INSTALL_CONFIG_FILES);
+					abortInstallation();
+					aborted = true;
+				}
+				
+				
+				if (!aborted)
+				{
+					updateActivityStep(_constants.STEP_INSTALL_CONFIG_FILES, StepItem.COMPLETE);
+					//cleanup();
+					installNextOptionalComponent();
+				}
+			}
+			
+			protected function installNextOptionalComponent():void
+			{
+				for each (var obj:OptionalComponentVO in _optionalInstallsDataProvider)
+				{
+					if(obj.selected && !obj.installed && !obj.aborted)
+					{
+						switch(obj.label)
+						{
+							case _constants.STEP_OPTIONAL_INSTALL_BLAZEDS:
+							{
+								installBlazeDS();
+								return;
+								break;
+							}
+							case _constants.STEP_OPTIONAL_INSTALL_FONTSWF:
+							{
+								installFontSwf();
+								return;
+								break;
+							}
+							case _constants.STEP_OPTIONAL_INSTALL_OSMF:
+							{
+								installOSMF();
+								return;
+								break;
+							}
+							case _constants.STEP_OPTIONAL_INSTALL_TLF:
+							{
+								installTLF();
+								return;
+								break;
+							} 
+							default:
+							{
+								break;
+							}
+						}
+					}
+				}
+				checkAndHandleAllOptionalComponentsInstalled();
+			}
+			
+			protected function installBlazeDS():void
+			{
+				updateActivityStep(_constants.STEP_OPTIONAL_INSTALL_BLAZEDS, StepItem.ACTIVE);
+				log(StringUtil.substitute(_constants.INFO_DOWNLOADING_FILE_FROM,[BLAZEDS_FILE,BLAZEDS_URL]));
+				_blazeDSJarFile = File.userDirectory.resolvePath(_flexTemp + File.separator + BLAZEDS_FILE);
+				copyOrDownload(BLAZEDS_URL+BLAZEDS_FILE,handleBlazeDSDownloadComplete,null,handleBlazeDSInstallError);
+			}
+			
+			protected function handleBlazeDSDownloadComplete(event:Event):void
+			{
+				try
+				{
+					writeFileToDirectory(_blazeDSJarFile,event.target.data);
+					copyFileToOptionalLibDir(_blazeDSJarFile);
+					updateOptionalComponentInstallStatus(_constants.STEP_OPTIONAL_INSTALL_BLAZEDS,true);
+					updateOptionalComponentInstallStatusAborted(_constants.STEP_OPTIONAL_INSTALL_BLAZEDS,false);
+					updateActivityStep(_constants.STEP_OPTIONAL_INSTALL_BLAZEDS, StepItem.COMPLETE);
+					clearData(URLLoader(event.target));
+					installNextOptionalComponent();
+				}
+				catch (e:Error)
+				{
+					updateActivityStep(_constants.STEP_OPTIONAL_INSTALL_BLAZEDS, StepItem.ERROR);
+					updateOptionalComponentInstallStatusAborted(_constants.STEP_OPTIONAL_INSTALL_BLAZEDS,true);
+					installNextOptionalComponent();
+				}
+			}
+			
+			protected function installFontSwf():void
+			{
+				updateActivityStep(_constants.STEP_OPTIONAL_INSTALL_FONTSWF,StepItem.ACTIVE);
+				downloadFontSwfAFEFile();
+			}
+			
+			protected function downloadFontSwfAFEFile():void
+			{
+				log(StringUtil.substitute(_constants.INFO_DOWNLOADING_FILE_FROM,[AFE_FILE,AFE_URL]));
+				_afeJarFile = File.userDirectory.resolvePath(_flexTemp + File.separator + AFE_FILE);
+				copyOrDownload(AFE_URL+AFE_FILE,handleFontSWFAFEFileDownloaded,null,handleFontSWFInstallError);
+			}
+			
+			protected function handleFontSWFAFEFileDownloaded(event:Event):void
+			{
+				try
+				{
+					writeFileToDirectory(_afeJarFile, event.target.data);
+					copyFileToOptionalLibDir(_afeJarFile);
+					clearData(URLLoader(event.target));
+					
+					downloadFontSwfAGLFile();
+					
+				}
+				catch (e:Error)
+				{
+					updateActivityStep(_constants.STEP_OPTIONAL_INSTALL_FONTSWF, StepItem.ERROR);
+					updateOptionalComponentInstallStatusAborted(_constants.STEP_OPTIONAL_INSTALL_FONTSWF,true);
+					installNextOptionalComponent();
+				}
+			}
+			
+			protected function downloadFontSwfAGLFile():void
+			{
+				log(StringUtil.substitute(_constants.INFO_DOWNLOADING_FILE_FROM,[AGLJ40_FILE,AGLJ40_URL]));
+				_aglj40JarFile = File.userDirectory.resolvePath(_flexTemp + File.separator + AGLJ40_FILE);
+				copyOrDownload(AGLJ40_URL+AGLJ40_FILE,handleFontSWFAGLFileDownloaded,null,handleFontSWFInstallError);
+			}
+			
+			protected function handleFontSWFAGLFileDownloaded(event:Event):void
+			{
+				try
+				{
+					writeFileToDirectory(_aglj40JarFile, event.target.data);
+					copyFileToOptionalLibDir(_aglj40JarFile);
+					clearData(URLLoader(event.target));
+					
+					downloadFontSwfFlexFontKitFile();
+				}
+				catch (e:Error)
+				{
+					updateActivityStep(_constants.STEP_OPTIONAL_INSTALL_FONTSWF, StepItem.ERROR);
+					updateOptionalComponentInstallStatusAborted(_constants.STEP_OPTIONAL_INSTALL_FONTSWF,true);
+					installNextOptionalComponent();
+				}
+			}
+			
+			protected function downloadFontSwfFlexFontKitFile():void
+			{
+				log(StringUtil.substitute(_constants.INFO_DOWNLOADING_FILE_FROM,[FLEX_FONTKIT_FILE,FLEX_FONTKIT_URL]));
+				_flexFontKitJarFile = File.userDirectory.resolvePath(_flexTemp + File.separator + FLEX_FONTKIT_FILE);
+				copyOrDownload(FLEX_FONTKIT_URL+FLEX_FONTKIT_FILE,handleFontSWFFlexFontKitFileDownloaded,null,handleFontSWFInstallError);
+			}
+			
+			protected function handleFontSWFFlexFontKitFileDownloaded(event:Event):void
+			{
+				try
+				{
+					writeFileToDirectory(_flexFontKitJarFile, event.target.data);
+					copyFileToOptionalLibDir(_flexFontKitJarFile);
+					clearData(URLLoader(event.target));
+					
+					downloadFontSwfRideauKitFile();
+				}
+				catch (e:Error)
+				{
+					updateActivityStep(_constants.STEP_OPTIONAL_INSTALL_FONTSWF, StepItem.ERROR);
+					updateOptionalComponentInstallStatusAborted(_constants.STEP_OPTIONAL_INSTALL_FONTSWF,true);
+					installNextOptionalComponent();
+				}
+			}
+			
+			protected function downloadFontSwfRideauKitFile():void
+			{
+				log(StringUtil.substitute(_constants.INFO_DOWNLOADING_FILE_FROM,[RIDEAU_FILE,RIDEAU_URL]));
+				_rideauJarFile = File.userDirectory.resolvePath(_flexTemp + File.separator + RIDEAU_FILE);
+				copyOrDownload(RIDEAU_URL+RIDEAU_FILE,handleFontSWFRideauFileDownloaded,null,handleFontSWFInstallError);
+			}
+			
+			protected function handleFontSWFRideauFileDownloaded(event:Event):void
+			{
+				try
+				{
+					writeFileToDirectory(_rideauJarFile,event.target.data);
+					copyFileToOptionalLibDir(_rideauJarFile);
+					clearData(URLLoader(event.target));
+					
+					updateOptionalComponentInstallStatus(_constants.STEP_OPTIONAL_INSTALL_FONTSWF,true);
+					updateOptionalComponentInstallStatusAborted(_constants.STEP_OPTIONAL_INSTALL_FONTSWF,false);
+					updateActivityStep(_constants.STEP_OPTIONAL_INSTALL_FONTSWF, StepItem.COMPLETE);
+					installNextOptionalComponent(); 
+				}
+				catch (e:Error)
+				{
+					updateActivityStep(_constants.STEP_OPTIONAL_INSTALL_FONTSWF, StepItem.ERROR);
+					updateOptionalComponentInstallStatusAborted(_constants.STEP_OPTIONAL_INSTALL_FONTSWF,true);
+					installNextOptionalComponent();
+				}
+			}
+			
+			protected function installOSMF():void
+			{
+				updateActivityStep(_constants.STEP_OPTIONAL_INSTALL_OSMF,StepItem.ACTIVE);
+				downloadOSMFFile();
+			}
+			
+			protected function downloadOSMFFile():void
+			{
+				log(StringUtil.substitute(_constants.INFO_DOWNLOADING_FILE_FROM,[OSMF_FILE,OSMF_URL]));
+				_osmfFile = File.userDirectory.resolvePath(_flexTemp + File.separator + OSMF_FILE);
+				copyOrDownload(OSMF_URL+OSMF_FILE,handleOSMFFileDownloaded,null,handleOSMFInstallError);
+			}
+			
+			protected function handleOSMFFileDownloaded(event:Event):void
+			{
+				try
+				{
+					writeFileToDirectory(_osmfFile, event.target.data);
+					copyFileToLibDir(_osmfFile);
+					clearData(URLLoader(event.target));
+					
+					updateOptionalComponentInstallStatus(_constants.STEP_OPTIONAL_INSTALL_OSMF,true);
+					updateOptionalComponentInstallStatusAborted(_constants.STEP_OPTIONAL_INSTALL_OSMF,false);
+					updateActivityStep(_constants.STEP_OPTIONAL_INSTALL_OSMF, StepItem.COMPLETE);
+					installNextOptionalComponent();
+				}
+				catch (e:Error)
+				{
+					updateActivityStep(_constants.STEP_OPTIONAL_INSTALL_OSMF, StepItem.ERROR);
+					updateOptionalComponentInstallStatusAborted(_constants.STEP_OPTIONAL_INSTALL_OSMF,true);
+					installNextOptionalComponent();
+				}
+			}
+			
+			protected function installTLF():void
+			{
+				updateActivityStep(_constants.STEP_OPTIONAL_INSTALL_TLF,StepItem.ACTIVE);
+				downloadTLFFile();
+			}
+			
+			protected function downloadTLFFile():void
+			{
+				log(StringUtil.substitute(_constants.INFO_DOWNLOADING_FILE_FROM,[TLF_FILE,TLF_URL]));
+				_tlfFile = File.userDirectory.resolvePath(_flexTemp + File.separator + TLF_FILE);
+				copyOrDownload(TLF_URL+TLF_FILE,handleTLFFileDownloaded,null,handleTLFInstallError);
+			}
+			
+			protected function handleTLFFileDownloaded(event:Event):void
+			{
+				try
+				{
+					writeFileToDirectory(_tlfFile, event.target.data);
+					copyFileToLibDir(_tlfFile);
+					clearData(URLLoader(event.target));
+					
+					updateOptionalComponentInstallStatus(_constants.STEP_OPTIONAL_INSTALL_TLF,true);
+					updateOptionalComponentInstallStatusAborted(_constants.STEP_OPTIONAL_INSTALL_TLF,false);
+					updateActivityStep(_constants.STEP_OPTIONAL_INSTALL_TLF, StepItem.COMPLETE);
+					installNextOptionalComponent();
+				}
+				catch (e:Error)
+				{
+					updateActivityStep(_constants.STEP_OPTIONAL_INSTALL_TLF, StepItem.ERROR);
+					updateOptionalComponentInstallStatusAborted(_constants.STEP_OPTIONAL_INSTALL_TLF,true);
+					installNextOptionalComponent();
+				}
+			}
+			
+			protected function copyFileToOptionalLibDir(file:File):void
+			{
+				//Copy to "${FLEX_HOME}/lib/external/optional"
+				var copyToFile:File = _flexHomeDir.resolvePath("lib" + File.separator + "external" + File.separator + "optional" + File.separator + file.name);
+				file.copyTo(copyToFile,true);
+			}
+			
+			protected function copyFileToLibDir(file:File):void
+			{
+				//Copy to "${FLEX_HOME}/lib/external/optional"
+				var copyToFile:File = _flexHomeDir.resolvePath("frameworks" + File.separator + "libs" + File.separator + file.name);
+				file.copyTo(copyToFile,true);
+			}
+			
+			/* 			protected function downloadAdobeFlexSDK(callAfterDownloadFunction:Function):void
+			{
+			try
+			{
+			_adobeFlexSDKZipFile = File.userDirectory.resolvePath(_flexTemp + File.separator + ADOBE_FLEX_4_6_FILE);
+			var errorHandler:Function = getErrorHandlerFromStep(_currentOptionalStep);
+			copyOrDownload(ADOBE_FLEX_4_6_URL + ADOBE_FLEX_4_6_FILE, callAfterDownloadFunction, _adobeFlexSDKZipFile, errorHandler);
+			}
+			catch (e:Error)
+			{
+			updateActivityStep(_currentOptionalStep.label, StepItem.ERROR);
+			installNextOptionalComponent();
+			}
+			} */
+			
+			/* 			protected function getErrorHandlerFromStep(step:StepItem):Function
+			{
+			if(step.label == _constants.STEP_OPTIONAL_INSTALL_BLAZEDS)
+			{
+			return handleBlazeDSInstallError;
+			}
+			else if (step.label == _constants.STEP_OPTIONAL_INSTALL_FONTSWF)
+			{
+			return handleFontSWFInstallError;
+			}
+			return null;
+			} */
+			
+			protected function handleBlazeDSInstallError(event:*=null):void{
+				updateActivityStep(_constants.STEP_OPTIONAL_INSTALL_BLAZEDS, StepItem.ERROR);
+				updateOptionalComponentInstallStatusAborted(_constants.STEP_OPTIONAL_INSTALL_BLAZEDS,true);
+				log(StringUtil.substitute(_constants.ERROR_UNABLE_TO_DOWNLOAD_FILE,["BlazeDS"]));
+				installNextOptionalComponent();
+			}
+			
+			protected function handleFontSWFInstallError(event:*=null):void{
+				updateActivityStep(_constants.STEP_OPTIONAL_INSTALL_FONTSWF, StepItem.ERROR);
+				updateOptionalComponentInstallStatusAborted(_constants.STEP_OPTIONAL_INSTALL_FONTSWF,true);
+				log(StringUtil.substitute(_constants.ERROR_UNABLE_TO_DOWNLOAD_FILE,["FontSwf Utility"]));
+				installNextOptionalComponent();
+			}
+			
+			protected function handleOSMFInstallError(event:*=null):void{
+				updateActivityStep(_constants.STEP_OPTIONAL_INSTALL_OSMF, StepItem.ERROR);
+				updateOptionalComponentInstallStatusAborted(_constants.STEP_OPTIONAL_INSTALL_OSMF,true);
+				log(StringUtil.substitute(_constants.ERROR_UNABLE_TO_DOWNLOAD_FILE,["OSMF"]));
+				installNextOptionalComponent();
+			}
+			
+			protected function handleTLFInstallError(event:*=null):void{
+				updateActivityStep(_constants.STEP_OPTIONAL_INSTALL_TLF, StepItem.ERROR);
+				updateOptionalComponentInstallStatusAborted(_constants.STEP_OPTIONAL_INSTALL_TLF,true);
+				log(StringUtil.substitute(_constants.ERROR_UNABLE_TO_DOWNLOAD_FILE,["TLF"]));
+				installNextOptionalComponent();
+			}
+			
+			protected function updateOptionalComponentInstallStatus(label:String,isInstalled:Boolean):void
+			{
+				for each (var obj:OptionalComponentVO in _optionalInstallsDataProvider)
+				{
+					if(obj.label == label)
+					{
+						obj.installed = isInstalled;
+					}
+				}
+			}
+			
+			protected function updateOptionalComponentInstallStatusAborted(label:String,isAborted:Boolean):void
+			{
+				for each (var obj:OptionalComponentVO in _optionalInstallsDataProvider)
+				{
+					if(obj.label == label)
+					{
+						obj.aborted = isAborted;
+					}
+				}
+			}
+			
+			protected function checkAndHandleAllOptionalComponentsInstalled():void
+			{
+				var allComponentsInstalled:Boolean = true;
+				for each (var obj:OptionalComponentVO in _optionalInstallsDataProvider)
+				{
+					if(obj.selected && !(obj.installed || obj.aborted))
+					{
+						allComponentsInstalled = false;
+					}
+				}
+				if(allComponentsInstalled)
+				{
+					cleanup(false);	
+				}
+			}
+			
+			protected function cleanup(isAbort:Boolean=false):void
+			{
+				try
+				{
+					_flexTempDir.deleteDirectory(true);
+				}
+				catch (e:Error)
+				{
+					log(_constants.ERROR_UNABLE_TO_DELETE_TEMP_DIRECTORY);	
+				}
+				
+				if (!isAbort)
+				{
+					log(_constants.INFO_INSTALLATION_COMPLETE);
+					updateUIHandleInstallationComplete();
+				}
+			}
+			
+			protected function updateUIHandleInstallationComplete():void
+			{
+				browseBtn.enabled = true;
+				openApacheFlexFolderBtn.visible = true;
+				openApacheFlexFolderBtn.includeInLayout = true;
+				progressBar.visible = false;
+				progressBar.includeInLayout = false;
+			}
+			
+			protected function abortInstallation():void{
+				browseBtn.enabled = false;
+				installBtn.enabled = false;
+				cleanup(true);
+				log(_constants.INFO_ABORT_INSTALLATION);
+			}
+			
+			protected function _langSelect_changeHandler(event:IndexChangeEvent):void
+			{
+				if (_langSelect.selectedItem["data"] == _runtimeLocale.defaultLanguage)
+				{
+					resourceManager.localeChain = [_runtimeLocale.defaultLanguage];
+					resourceManager.update();
+				}
+				else
+				{
+					resourceManager.localeChain = [_langSelect.selectedItem["data"],_runtimeLocale.defaultLanguage];
+					resourceManager.update();	
+				}	
+			}
+			
+			override protected function resourcesChanged():void
+			{
+				super.resourcesChanged();
+				
+				if (browseBtn)
+				{
+					browseBtn.label = _constants.BROWSE_BTN_LABEL;
+				}
+				if (installBtn)
+				{
+					installBtn.label = _constants.INSTALL_BTN_LABEL;
+				}
+				if (installLogBtn)
+				{
+					installLogBtn.label = _constants.INSTALL_LOG_BTN_LABEL;
+				}
+				if (closeBtn)
+				{
+					closeBtn.label = _constants.CLOSE_BTN_LABEL;
+				}
+				if (flexSDKTxtInput)
+				{
+					flexSDKTxtInput.prompt = _constants.SELECT_PATH_PROMPT;
+				}
+			}
+			
+			protected function placeFirstGroup():void
+			{
+				firstStepGroup.x = this.width/2 - firstStepGroup.width/2;
+			}
+			
+			protected function placeSecondGroup():void
+			{
+				secondStepGroup.x = this.width/2 - secondStepGroup.width/2;
+			}
+			
+			protected function placeThirdGroup():void
+			{
+				thirdStepGroup.x = this.width/2 - thirdStepGroup.width/2;
+			}
+			
+			protected function handleOptionalInstallsChange(event:IndexChangeEvent):void
+			{
+				installRdBtn.visible = true;
+				dontInstallRdBtn.visible = true;
+				var selectedItem:OptionalComponentVO = OptionalComponentVO(event.target.selectedItem);
+				optionalInstallsTxtArea.text = selectedItem.message;
+				if(selectedItem.answered)
+				{
+					if(selectedItem.selected)
+					{
+						installPermissionRbtnGrp.selection = installRdBtn;
+					}
+					else
+					{
+						installPermissionRbtnGrp.selection = dontInstallRdBtn;	
+					}
+				}
+				else
+				{
+					installPermissionRbtnGrp.selection = null;
+				}
+				if(selectedItem.message == _constants.ASK_OSMF || selectedItem.message == _constants.ASK_TLF)
+				{
+					mplLicenseBtn.includeInLayout = mplLicenseBtn.visible = true;
+					adobeLicenseBtn.includeInLayout = adobeLicenseBtn.visible = false;
+				}
+				if(selectedItem.message == _constants.ASK_BLAZEDS || selectedItem.message == _constants.ASK_FONTSWF)
+				{
+					mplLicenseBtn.includeInLayout = mplLicenseBtn.visible = false;
+					adobeLicenseBtn.includeInLayout = adobeLicenseBtn.visible = true;
+				}
+			}
+			
+			protected function handleInstallPermissionChange(event:Event):void
+			{
+				optionalComponentsList.selectedItem.selected = (event.target.selectedValue==_constants.INSTALL)?true:false;
+				optionalComponentsList.selectedItem.answered = true;
+				checkIfAllRequiredComponentsPromptsAnswered();
+			}
+			
+			protected function checkIfAllRequiredComponentsPromptsAnswered():void
+			{
+				var success:Boolean = true;
+				for each (var obj:OptionalComponentVO in _optionalInstallsDataProvider)
+				{
+					if(obj.required && !obj.selected)
+					{
+						success = false;
+					}
+				}
+				installBtn.enabled = success;
+			}
+			
+			/************************ Utility methods *****************/
+			
+			private function createFolder(path:String):File
+			{
+				var dir:File = new File(path);
+				
+				dir.createDirectory();
+				
+				return dir;
+			}
+			
+			private function copyOrDownload(url:String, handlerFunction:Function, dest:File, errorFunction:Function=null):void
+			{
+				if (url.search("http") == 0)
+				{
+					download(url, handlerFunction,errorFunction);
+				}
+				else
+				{
+					var source:File = new File(url);
+					
+					try
+					{
+						source.copyTo(dest, true);
+					}
+					catch (error:Error)
+					{
+						if (errorFunction != null)
+						{
+							errorFunction.call(null);
+						}
+						log(_constants.ERROR_UNABLE_TO_COPY_FILE + error.errorID + " " + error.message);
+					}
+				}
+			}
+			
+			private function download(url:String, handlerFunction:Function, errorFunction:Function=null):void
+			{
+				var loader:URLLoader = new URLLoader();
+				var req:URLRequest = new URLRequest(url);
+				req.idleTimeout = 60000;
+				
+				loader.dataFormat = URLLoaderDataFormat.BINARY; 
+				loader.addEventListener(Event.COMPLETE, handlerFunction,false,0,true);
+				loader.addEventListener(Event.COMPLETE, handleDownloadComplete,false,0,true);
+				
+				if (errorFunction != null)
+				{
+					loader.addEventListener(ErrorEvent.ERROR,errorFunction,false,0,true);
+					loader.addEventListener(IOErrorEvent.IO_ERROR,errorFunction,false,0,true);
+				}
+				loader.addEventListener(ProgressEvent.PROGRESS, handleDownloadProgress,false,0,true);
+				
+				loader.load(req);
+			}
+			
+			private function handleDownloadProgress(event:ProgressEvent):void
+			{
+				var bytesTotal:int = event.bytesTotal;
+				var bytesLoaded:int = event.bytesLoaded;
+				var percentLoaded:int = Math.round(bytesLoaded*100/bytesTotal);
+				
+				// show count in command line progress bar in gui
+				if (currentState == "commandLineState" && percentLoaded % 10 == 0 && percentLoaded != _previousDisplayedPercent)
+				{
+					log(_constants.INFO_DOWNLOADED + percentLoaded + "%");
+					_previousDisplayedPercent = percentLoaded;
+				}
+				else
+				{
+					progressBar.percent = percentLoaded;
+				}
+			}
+			
+			private function handleDownloadComplete(event:Event):void
+			{
+				_previousDisplayedPercent = 0;
+				clearData(URLLoader(event.target));
+			}
+			
+			private function clearData(v:URLLoader):void
+			{
+				ByteArray(v.data).clear();
+				System.gc();
+			}
+			
+			private function unzip(fileToUnzip:File, unzipCompleteFunction:Function, unzipErrorFunction:Function=null):void
+			{
+				var zipFileBytes:ByteArray = new ByteArray();
+				var fs:FileStream = new FileStream();
+				var fzip:Zip = new Zip();
+				
+				fs.open(fileToUnzip, FileMode.READ);
+				fs.readBytes(zipFileBytes);
+				fs.close();
+				
+				fzip.addEventListener(ZipEvent.FILE_LOADED, onFileLoaded,false,0,true);
+				fzip.addEventListener(Event.COMPLETE, unzipCompleteFunction,false,0,true);
+				fzip.addEventListener(Event.COMPLETE, onUnzipComplete,false,0,true);
+				if (unzipErrorFunction != null)
+				{
+					fzip.addEventListener(ErrorEvent.ERROR,unzipErrorFunction,false,0,true);
+					_fileUnzipErrorFunction = unzipErrorFunction
+				}
+				fzip.loadBytes(zipFileBytes);
+			}
+			
+			private function onFileLoaded(e:ZipEvent):void
+			{
+				try
+				{
+					var fzf:ZipFile = e.file;
+					var f:File = _flexHomeDir.resolvePath(fzf.filename);
+					var fs:FileStream = new FileStream();
+					
+					if (fzf.sizeUncompressed == 0 && fzf.sizeCompressed == 0)
+					{
+						// Is a directory, not a file. Dont try to write anything into it.    
+						return;
+					}
+					
+					fs.open(f, FileMode.WRITE);
+					fs.writeBytes(fzf.content);
+					fs.close();
+					
+				}
+				catch (error:Error)
+				{
+					_fileUnzipErrorFunction.call();
+				}
+			}
+			
+			private function onUnzipComplete(event:Event):void
+			{
+				var fzip:Zip = event.target as Zip;
+				fzip.close();
+				fzip.removeEventListener(ZipEvent.FILE_LOADED, onFileLoaded);
+				fzip.removeEventListener(Event.COMPLETE, onUnzipComplete);
+			}
+			
+			private function untar(source:File,destination:File,unTarCompleteFunction:Function,unTarErrorFunction:Function):void
+			{
+				var tar:File = new File("/usr/bin/tar");
+				var startupInfo:NativeProcessStartupInfo = new NativeProcessStartupInfo();
+				var arguments:Vector.<String> = new Vector.<String>();
+				
+				arguments.push("xf");
+				arguments.push(source.nativePath);
+				arguments.push("-C");
+				arguments.push(destination.nativePath);
+				
+				startupInfo.executable = tar;
+				startupInfo.arguments = arguments;
+				
+				_process = new NativeProcess();
+				_process.addEventListener(ProgressEvent.STANDARD_OUTPUT_DATA, unTarFileProgress,false,0,true);
+				_process.addEventListener(ProgressEvent.STANDARD_ERROR_DATA, unTarErrorFunction,false,0,true);
+				_process.addEventListener(ProgressEvent.STANDARD_ERROR_DATA, unTarError,false,0,true);
+				_process.addEventListener(NativeProcessExitEvent.EXIT, unTarCompleteFunction,false,0,true);
+				_process.addEventListener(NativeProcessExitEvent.EXIT, unTarComplete,false,0,true);
+				_process.start(startupInfo);
+			}
+			
+			private function unTarError(event:Event):void
+			{
+				var output:String = _process.standardError.readUTFBytes(_process.standardError.bytesAvailable);
+				
+				log(_constants.ERROR_NATIVE_PROCESS_ERROR);
+				log(output);
+			}
+			
+			private function unTarFileProgress(event:Event):void
+			{
+				var output:String = _process.standardOutput.readUTFBytes(_process.standardOutput.bytesAvailable);
+				
+				log(output);
+			}
+			
+			private function unTarComplete(event:NativeProcessExitEvent):void
+			{
+				_process.closeInput();
+				_process.exit(true);
+			}
+			
+			private function writeFileToDirectory(file:File,data:ByteArray):void
+			{
+				var fs:FileStream = new FileStream();
+				fs.open(file, FileMode.WRITE);
+				fs.writeBytes(data); 
+				fs.close();
+			}
+			
+			private function isValidConfigFile(file:File):Boolean
+			{
+				var name:String = file.name;
+				
+				if (name.search("-config.xml") == -1)
+				{
+					return false;
+				}
+				else
+				{
+					return true;
+				}
+			}
+			
+			private function log(text:String):void
+			{
+				_messages.addItem(text);
+			}
+			
+			private function showConsole(event:Event):void 
+			{
+				var console:ConsoleWindow = new ConsoleWindow();
+				
+				console.messages = _messages;
+				console.open();
+				console.nativeWindow.x = this.nativeWindow.x + this.nativeWindow.width/2 - console.nativeWindow.width/2;
+				console.nativeWindow.y = this.nativeWindow.y + this.nativeWindow.height/2 - console.nativeWindow.height/2;
+			}
+			
+			private function showMPLLicense(event:Event):void 
+			{
+				var licenseWindow:MPLLicense = new MPLLicense();
+				licenseWindow.open();
+				licenseWindow.nativeWindow.x = this.nativeWindow.x + this.nativeWindow.width/2 - licenseWindow.nativeWindow.width/2;
+				licenseWindow.nativeWindow.y = this.nativeWindow.y + this.nativeWindow.height/2 - licenseWindow.nativeWindow.height/2;
+			}
+			
+			private function showAdobeLicense(event:Event):void 
+			{
+				var licenseWindow:AdobeLicense = new AdobeLicense();
+				licenseWindow.open();
+				licenseWindow.nativeWindow.x = this.nativeWindow.x + this.nativeWindow.width/2 - licenseWindow.nativeWindow.width/2;
+				licenseWindow.nativeWindow.y = this.nativeWindow.y + this.nativeWindow.height/2 - licenseWindow.nativeWindow.height/2;
+			}
+
+			private function openApacheFlexFolder(event:Event):void 
+			{
+				_flexHomeDir.openWithDefaultApplication();
+			}
+			
+			private function closeApplication(event:Event):void 
+			{
+				// TODO only enable close button when finished or when an error occurs
+				// TODO anything we need to clean up?
+				close();
+			}
+			
+			protected function clickLogo(event:MouseEvent):void
+			{
+				var url:String = _constants.APACHE_FLEX_URL; 
+				var urlReq:URLRequest = new URLRequest(url); 
+				
+				navigateToURL(urlReq);
+			}
+			
+			protected function getStepItemFromStepLabel(stepLabel:String):StepItem{
+				for each(var s:StepItem in _installationSteps)
+				{
+					if (s.label == stepLabel)
+					{
+						return s;
+					}
+				}
+				return null;
+			}
+			
+			protected function updateActivityStep(stepLabel:String,status:String):void
+			{
+				var step:StepItem = StepItem(getStepItemFromStepLabel(stepLabel));
+				
+				if (step != null)
+				{
+					step.status = status;
+				}
+			}
+			
+			private function isDirectoryEmpty(dir:File):Boolean
+			{
+				var files:Array = dir.getDirectoryListing();
+				if(files.length == 0)
+				{
+					return true;
+				}
+				return false;
+			}
+			
+		]]>
+	</fx:Script>
+	<fx:Declarations>
+		<s:Elastic id="ease" />
+		<s:BlurFilter id="blur"/>
+		<s:RadioButtonGroup id="installPermissionRbtnGrp" change="handleInstallPermissionChange(event)" />
+	</fx:Declarations>
+	<s:states>
+		<s:State name="default" />
+		<s:State name="optionsState" />
+		<s:State name="installState" />
+	</s:states>
+	<s:transitions>
+		<s:Transition id="showDefault" fromState="*" toState="default">
+			<s:Sequence id="t0" targets="{[firstStepGroup]}" effectEnd="placeFirstGroup()">
+				<s:SetAction target="{firstStepGroup}" property="visible" value="true"/>
+				<s:SetAction target="{secondStepGroup}" property="visible" value="false"/>
+				<s:SetAction target="{thirdStepGroup}" property="visible" value="false"/>
+				<s:Move target="{firstStepGroup}" xFrom="800" xTo="{this.width/2 - firstStepGroup.width/2}" duration="500" easer="{ease}" />
+			</s:Sequence>
+		</s:Transition>
+		<s:Transition id="showOptions" fromState="*" toState="optionsState">
+			<s:Sequence id="t1" targets="{[secondStepGroup]}" effectEnd="placeSecondGroup()">
+				<s:SetAction target="{firstStepGroup}" property="visible" value="false"/>
+				<s:SetAction target="{secondStepGroup}" property="visible" value="true"/>
+				<s:SetAction target="{thirdStepGroup}" property="visible" value="false"/>
+				<s:Move target="{secondStepGroup}" xFrom="800" xTo="{this.width/2 - secondStepGroup.width/2}" duration="500" easer="{ease}" />
+			</s:Sequence>
+		</s:Transition>
+		<s:Transition id="showInstall" fromState="*" toState="installState">
+			<s:Sequence id="t2" targets="{[thirdStepGroup]}" effectEnd="placeThirdGroup()">
+				<s:SetAction target="{firstStepGroup}" property="visible" value="false"/>
+				<s:SetAction target="{secondStepGroup}" property="visible" value="false"/>
+				<s:SetAction target="{thirdStepGroup}" property="visible" value="true"/>
+				<s:Move target="{thirdStepGroup}" xFrom="800" xTo="{this.width/2 - thirdStepGroup.width/2}" duration="500" easer="{ease}" />
+			</s:Sequence>
+		</s:Transition>
+	</s:transitions>
+	<s:layout>
+		<s:BasicLayout />
+	</s:layout>
+	
+	<s:HGroup 
+		left="0" 
+		right="0" 
+		paddingLeft="20" 
+		paddingRight="20" 
+		paddingTop="5" 
+		horizontalAlign="right">
+		<s:Spacer width="100%" />
+		<s:Label id="langLabel" 
+				 horizontalCenter="0" 
+				 height="100%" 
+				 textAlign="right"
+				 text="Current Language" 
+				 verticalAlign="middle"/>
+		<s:ComboBox id="_langSelect" 
+					width="184" 
+					change="_langSelect_changeHandler(event)"/>
+	</s:HGroup>
+	<s:Panel id="firstStepGroup" 
+			 title="Select installation directory" 
+			 width="640" 
+			 height="200" 
+			 top="280" 
+			 x="{firstStepGroup.x = this.width/2 - firstStepGroup.width/2}"
+			 visible="true" 
+			 visible.optionsState="false" 
+			 visible.installState="false"  
+			 backgroundAlpha="0" >
+		<s:layout>
+			<s:HorizontalLayout 
+				verticalAlign="middle" 
+				paddingRight="10" 
+				paddingLeft="10" />
+		</s:layout>
+		<s:TextInput id="flexSDKTxtInput" 
+					 width="100%" 
+					 prompt="{_constants.SELECT_PATH_PROMPT}"
+					 change="handleFlexSDXTxtInputChange(event)"/>
+		<s:Button id="browseBtn" 
+				  styleName="browseBtnStyle" 
+				  width="88" 
+				  height="32"
+				  label="{_constants.BROWSE_BTN_LABEL}" 
+				  click="browseForSDK(event)" 
+				  toolTip="{_constants.INFO_SELECT_DIRECTORY}" />
+		<s:controlBarContent>
+			<s:Spacer 
+				width="100%" />
+			<s:Button id="nextBtn" 
+					  styleName="mainBtnStyle" 
+					  width="88" 
+					  height="32" 
+					  right="10"
+					  label="{_constants.NEXT_BTN_LABEL}" 
+					  enabled="false" 
+					  click="handleFirstStepNextBtnClick(event)" />
+		</s:controlBarContent>
+	</s:Panel>
+	<s:Panel id="secondStepGroup" 
+			 title="License Agreements"
+			 width="640" 
+			 height="200" 
+			 top="280" 
+			 visible="false" 
+			 visible.optionsState="true" 
+			 backgroundAlpha="0" >
+		<s:controlBarContent>
+			<s:Spacer 
+				width="100%" />
+			<s:Button id="installBtn" 
+					  styleName="mainBtnStyle" 
+					  width="88" 
+					  height="32" 
+					  right="10"
+					  label="{ViewResourceConstants.getInstance().INSTALL_BTN_LABEL}" 
+					  enabled="false" 
+					  click="handleInstallBtnClick(event)" />
+		</s:controlBarContent>
+		<s:layout>
+			<s:VerticalLayout 
+				verticalAlign="middle" 
+				paddingRight="10" 
+				paddingLeft="10" />
+		</s:layout>
+		<s:HGroup 
+			width="100%" 
+			height="100%" 
+			horizontalAlign="center">
+			<s:List id="optionalComponentsList" 
+					width="45%" 
+					height="100%"
+					itemRenderer="org.apache.flex.packageflexsdk.view.itemrenderers.OptionalInstallItemRenderer"
+					dataProvider="{_optionalInstallsDataProvider}" 
+					change="handleOptionalInstallsChange(event)">
+				<s:layout>
+					<s:VerticalLayout />
+				</s:layout>
+			</s:List>
+			<s:TextArea id="optionalInstallsTxtArea" text="{_constants.INFO_NEED_TO_READ_AND_AGREE_TO_LICENSE}"
+						fontSize="12" 
+						width="55%" 
+						height="100%" 
+						verticalScrollPolicy="off" />
+		</s:HGroup>
+		<s:HGroup 
+			width="100%" 
+			height="20" 
+			horizontalAlign="center" 
+			verticalAlign="middle">
+			<s:RadioButton id="installRdBtn" 
+						   label="{_constants.INSTALL}" 
+						   selected="false" 
+						   group="{installPermissionRbtnGrp}" 
+						   visible="false"/>
+			<s:RadioButton id="dontInstallRdBtn" 
+						   label="{_constants.DONT_INSTALL}" 
+						   selected="false" 
+						   group="{installPermissionRbtnGrp}" 
+						   visible="false"/>
+			<s:Button id="mplLicenseBtn" 
+					  label="{_constants.MPL_LICENSE_BTN_LABEL}" 
+					  styleName="genericBtnStyle" 
+					  click="{showMPLLicense(event)}" 
+					  includeInLayout="false" />
+			<s:Button id="adobeLicenseBtn" 
+					  label="{_constants.ADOBE_LICENSE_BTN_LABEL}" 
+					  styleName="genericBtnStyle" 
+					  click="{showAdobeLicense(event)}" 
+					  includeInLayout="false" />
+		</s:HGroup>
+	</s:Panel>
+	
+	<s:Panel id="thirdStepGroup" 
+			 title="{_constants.INFO_INSTALLING}"  
+			 width="640" 
+			 height="200" 
+			 top="280" 
+			 visible="false" 
+			 visible.installState="true" 
+			 backgroundAlpha="0">
+		<s:layout>
+			<s:VerticalLayout 
+				horizontalAlign="center"
+				verticalAlign="middle"
+				paddingTop="10" 
+				paddingRight="10" 
+				paddingLeft="10"
+				gap="15"/>
+		</s:layout>
+		<controls1:MultiStepProgressIndicator 
+			steps="{_installationSteps}" />
+		<s:Label id="lastMessage" 
+				 text="{_messages.getItemAt(_messages.length-1)}"
+				 textAlign="center"
+				 width="80%" 
+				 horizontalCenter="0" />
+		<controls:ProgressBar id="progressBar" 
+							  width="60%" 
+							  height="21" />
+		<s:Button id="openApacheFlexFolderBtn"
+				  styleName="mainBtnStyle"
+				  width="225"
+				  height="32"
+				  visible="false"
+				  includeInLayout="false"
+				  label="{_constants.OPEN_APACHE_FLEX_FOLDER_BTN_LABEL}"
+				  toolTip="{_flexHome}"
+				  click="openApacheFlexFolder(event)" />
+	</s:Panel>
+	<s:HGroup 
+		left="0" 
+		right="0" 
+		bottom="20" 
+		paddingLeft="20" 
+		paddingRight="20" 
+		paddingTop="0">
+		<s:Button id="installLogBtn" 
+				  styleName="genericBtnStyle" 
+				  width="110" 
+				  height="32"
+				  label="{_constants.INSTALL_LOG_BTN_LABEL}" 
+				  click="showConsole(event)" />
+		<s:Spacer width="100%" />
+		<s:Button id="closeBtn" 
+				  styleName="genericBtnStyle" 
+				  width="88" 
+				  height="32" 
+				  label="{_constants.CLOSE_BTN_LABEL}" 
+				  click="closeApplication(event)" />
+	</s:HGroup>
+	
+</s:WindowedApplication>
\ No newline at end of file

Added: incubator/flex/utilities/InstallApacheFlex/src/assets/fonts/open-sans/Apache License Version 2.txt
URL: http://svn.apache.org/viewvc/incubator/flex/utilities/InstallApacheFlex/src/assets/fonts/open-sans/Apache%20License%20Version%202.txt?rev=1360962&view=auto
==============================================================================
--- incubator/flex/utilities/InstallApacheFlex/src/assets/fonts/open-sans/Apache License Version 2.txt (added)
+++ incubator/flex/utilities/InstallApacheFlex/src/assets/fonts/open-sans/Apache License Version 2.txt Thu Jul 12 21:33:49 2012
@@ -0,0 +1,53 @@
+Apache License
+
+Version 2.0, January 2004
+
+http://www.apache.org/licenses/
+
+TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+1. Definitions.
+
+"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
+
+"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.
+
+"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
+
+"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
+
+"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
+
+"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
+
+"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).
+
+"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.
+
+"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."
+
+"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.
+
+2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
+
+3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.
+
+4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
+
+You must give any other recipients of the Work or Derivative Works a copy of this License; and
+
+You must cause any modified files to carry prominent notices stating that You changed the files; and
+
+You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and
+
+If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Y
 our modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.
+
+5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.
+
+6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
+
+7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
+
+8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
+
+9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
\ No newline at end of file

Added: incubator/flex/utilities/InstallApacheFlex/src/assets/fonts/open-sans/OpenSans-Bold.ttf
URL: http://svn.apache.org/viewvc/incubator/flex/utilities/InstallApacheFlex/src/assets/fonts/open-sans/OpenSans-Bold.ttf?rev=1360962&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/utilities/InstallApacheFlex/src/assets/fonts/open-sans/OpenSans-Bold.ttf
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/utilities/InstallApacheFlex/src/assets/fonts/open-sans/OpenSans-BoldItalic.ttf
URL: http://svn.apache.org/viewvc/incubator/flex/utilities/InstallApacheFlex/src/assets/fonts/open-sans/OpenSans-BoldItalic.ttf?rev=1360962&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/utilities/InstallApacheFlex/src/assets/fonts/open-sans/OpenSans-BoldItalic.ttf
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/utilities/InstallApacheFlex/src/assets/fonts/open-sans/OpenSans-ExtraBold.ttf
URL: http://svn.apache.org/viewvc/incubator/flex/utilities/InstallApacheFlex/src/assets/fonts/open-sans/OpenSans-ExtraBold.ttf?rev=1360962&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/utilities/InstallApacheFlex/src/assets/fonts/open-sans/OpenSans-ExtraBold.ttf
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/utilities/InstallApacheFlex/src/assets/fonts/open-sans/OpenSans-ExtraBoldItalic.ttf
URL: http://svn.apache.org/viewvc/incubator/flex/utilities/InstallApacheFlex/src/assets/fonts/open-sans/OpenSans-ExtraBoldItalic.ttf?rev=1360962&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/utilities/InstallApacheFlex/src/assets/fonts/open-sans/OpenSans-ExtraBoldItalic.ttf
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/utilities/InstallApacheFlex/src/assets/fonts/open-sans/OpenSans-Italic.ttf
URL: http://svn.apache.org/viewvc/incubator/flex/utilities/InstallApacheFlex/src/assets/fonts/open-sans/OpenSans-Italic.ttf?rev=1360962&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/utilities/InstallApacheFlex/src/assets/fonts/open-sans/OpenSans-Italic.ttf
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/utilities/InstallApacheFlex/src/assets/fonts/open-sans/OpenSans-Light.ttf
URL: http://svn.apache.org/viewvc/incubator/flex/utilities/InstallApacheFlex/src/assets/fonts/open-sans/OpenSans-Light.ttf?rev=1360962&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/utilities/InstallApacheFlex/src/assets/fonts/open-sans/OpenSans-Light.ttf
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/utilities/InstallApacheFlex/src/assets/fonts/open-sans/OpenSans-LightItalic.ttf
URL: http://svn.apache.org/viewvc/incubator/flex/utilities/InstallApacheFlex/src/assets/fonts/open-sans/OpenSans-LightItalic.ttf?rev=1360962&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/utilities/InstallApacheFlex/src/assets/fonts/open-sans/OpenSans-LightItalic.ttf
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/utilities/InstallApacheFlex/src/assets/fonts/open-sans/OpenSans-Regular.ttf
URL: http://svn.apache.org/viewvc/incubator/flex/utilities/InstallApacheFlex/src/assets/fonts/open-sans/OpenSans-Regular.ttf?rev=1360962&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/utilities/InstallApacheFlex/src/assets/fonts/open-sans/OpenSans-Regular.ttf
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/utilities/InstallApacheFlex/src/assets/fonts/open-sans/OpenSans-Semibold.ttf
URL: http://svn.apache.org/viewvc/incubator/flex/utilities/InstallApacheFlex/src/assets/fonts/open-sans/OpenSans-Semibold.ttf?rev=1360962&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/utilities/InstallApacheFlex/src/assets/fonts/open-sans/OpenSans-Semibold.ttf
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/utilities/InstallApacheFlex/src/assets/fonts/open-sans/OpenSans-SemiboldItalic.ttf
URL: http://svn.apache.org/viewvc/incubator/flex/utilities/InstallApacheFlex/src/assets/fonts/open-sans/OpenSans-SemiboldItalic.ttf?rev=1360962&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/utilities/InstallApacheFlex/src/assets/fonts/open-sans/OpenSans-SemiboldItalic.ttf
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/utilities/InstallApacheFlex/src/assets/icons/114.png
URL: http://svn.apache.org/viewvc/incubator/flex/utilities/InstallApacheFlex/src/assets/icons/114.png?rev=1360962&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/utilities/InstallApacheFlex/src/assets/icons/114.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/utilities/InstallApacheFlex/src/assets/icons/128.png
URL: http://svn.apache.org/viewvc/incubator/flex/utilities/InstallApacheFlex/src/assets/icons/128.png?rev=1360962&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/utilities/InstallApacheFlex/src/assets/icons/128.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/utilities/InstallApacheFlex/src/assets/icons/16.png
URL: http://svn.apache.org/viewvc/incubator/flex/utilities/InstallApacheFlex/src/assets/icons/16.png?rev=1360962&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/utilities/InstallApacheFlex/src/assets/icons/16.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/utilities/InstallApacheFlex/src/assets/icons/29.png
URL: http://svn.apache.org/viewvc/incubator/flex/utilities/InstallApacheFlex/src/assets/icons/29.png?rev=1360962&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/utilities/InstallApacheFlex/src/assets/icons/29.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/utilities/InstallApacheFlex/src/assets/icons/32.png
URL: http://svn.apache.org/viewvc/incubator/flex/utilities/InstallApacheFlex/src/assets/icons/32.png?rev=1360962&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/utilities/InstallApacheFlex/src/assets/icons/32.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/utilities/InstallApacheFlex/src/assets/icons/36.png
URL: http://svn.apache.org/viewvc/incubator/flex/utilities/InstallApacheFlex/src/assets/icons/36.png?rev=1360962&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/utilities/InstallApacheFlex/src/assets/icons/36.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/utilities/InstallApacheFlex/src/assets/icons/48.png
URL: http://svn.apache.org/viewvc/incubator/flex/utilities/InstallApacheFlex/src/assets/icons/48.png?rev=1360962&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/utilities/InstallApacheFlex/src/assets/icons/48.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/utilities/InstallApacheFlex/src/assets/icons/512.png
URL: http://svn.apache.org/viewvc/incubator/flex/utilities/InstallApacheFlex/src/assets/icons/512.png?rev=1360962&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/utilities/InstallApacheFlex/src/assets/icons/512.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/utilities/InstallApacheFlex/src/assets/icons/57.png
URL: http://svn.apache.org/viewvc/incubator/flex/utilities/InstallApacheFlex/src/assets/icons/57.png?rev=1360962&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/utilities/InstallApacheFlex/src/assets/icons/57.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/utilities/InstallApacheFlex/src/assets/icons/72.png
URL: http://svn.apache.org/viewvc/incubator/flex/utilities/InstallApacheFlex/src/assets/icons/72.png?rev=1360962&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/utilities/InstallApacheFlex/src/assets/icons/72.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/utilities/InstallApacheFlex/src/assets/icons/ApacheFlexLogo_fullcolor_wb.png
URL: http://svn.apache.org/viewvc/incubator/flex/utilities/InstallApacheFlex/src/assets/icons/ApacheFlexLogo_fullcolor_wb.png?rev=1360962&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/utilities/InstallApacheFlex/src/assets/icons/ApacheFlexLogo_fullcolor_wb.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/utilities/InstallApacheFlex/src/assets/icons/Flexicon.png
URL: http://svn.apache.org/viewvc/incubator/flex/utilities/InstallApacheFlex/src/assets/icons/Flexicon.png?rev=1360962&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/utilities/InstallApacheFlex/src/assets/icons/Flexicon.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/utilities/InstallApacheFlex/src/assets/icons/apache_flex_badge_icon.png
URL: http://svn.apache.org/viewvc/incubator/flex/utilities/InstallApacheFlex/src/assets/icons/apache_flex_badge_icon.png?rev=1360962&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/utilities/InstallApacheFlex/src/assets/icons/apache_flex_badge_icon.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/utilities/InstallApacheFlex/src/assets/icons/bg_logo.png
URL: http://svn.apache.org/viewvc/incubator/flex/utilities/InstallApacheFlex/src/assets/icons/bg_logo.png?rev=1360962&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/utilities/InstallApacheFlex/src/assets/icons/bg_logo.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/utilities/InstallApacheFlex/src/assets/icons/favicon.ico
URL: http://svn.apache.org/viewvc/incubator/flex/utilities/InstallApacheFlex/src/assets/icons/favicon.ico?rev=1360962&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/utilities/InstallApacheFlex/src/assets/icons/favicon.ico
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/utilities/InstallApacheFlex/src/assets/styles/styles.css
URL: http://svn.apache.org/viewvc/incubator/flex/utilities/InstallApacheFlex/src/assets/styles/styles.css?rev=1360962&view=auto
==============================================================================
--- incubator/flex/utilities/InstallApacheFlex/src/assets/styles/styles.css (added)
+++ incubator/flex/utilities/InstallApacheFlex/src/assets/styles/styles.css Thu Jul 12 21:33:49 2012
@@ -0,0 +1,98 @@
+/*
+
+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.
+
+*/
+@namespace s "library://ns.adobe.com/flex/spark";
+@namespace mx "library://ns.adobe.com/flex/mx";
+@namespace st "ws.tink.spark.controls.*";
+
+@font-face {
+	src: url("assets/fonts/open-sans/OpenSans-Semibold.ttf");
+	fontFamily: openSansSemibold;
+	advancedAntiAliasing: true;
+}
+
+@font-face {
+	src: url("assets/fonts/open-sans/OpenSans-SemiboldItalic.ttf");
+	fontFamily: openSansSemibold;
+	advancedAntiAliasing: true;
+	fontStyle:italic;
+}
+
+st|StepRenderer st|ActivityIndicator
+{
+	skinClass : ClassReference("ws.tink.spark.skins.controls.StepActivityIndicatorSkin");
+}
+
+st|StepRenderer st|ActivityIndicator st|Rotator
+{
+	skinClass : ClassReference("ws.tink.spark.skins.controls.StepRotatorSkin");
+}
+
+st|StepRenderer
+{
+	color 			: #FFFFFF;
+	activeColor		: #FFFFFF;
+	errorColor		: #B20E13;
+	completeColor	: #679d13;
+	borderColor		: #BFBFBF;
+}
+
+st|ProgressBar
+{
+	skinClass : ClassReference("ws.tink.spark.skins.controls.ProgressBarSkin");
+	chromeColor	: #1275a4;
+}
+
+s|Button
+{
+	skinClass : ClassReference("ws.tink.spark.skins.controls.ButtonSkin");
+	fontFamily : openSansSemibold;
+	fontSize : 14;
+	color	: #FFFFFF;
+	borderColor: #DBDBDB;
+}
+
+.browseBtnStyle
+{
+	chromeColor: #40b8df;
+}
+
+.mainBtnStyle
+{
+	chromeColor: #679d13;
+}
+
+.genericBtnStyle
+{
+	chromeColor: #7b7b7b;
+}
+
+s|TextInput
+{
+	fontFamily : openSansSemibold;
+	fontSize : 13;
+	color	: #757575;
+	skinClass : ClassReference("ws.tink.spark.skins.controls.TextInputSkin");
+	borderColor		: #BFBFBF;
+}
+
+s|TextInput:normalWithPrompt,
+s|TextInput:disabledWithPrompt
+{
+	color: #BBBBBB;
+}
\ No newline at end of file