incubator-flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cframp...@apache.org
Subject svn commit: r1409957 [6/12] - in /incubator/flex/utilities/trunk: common/.settings/ common/src/assets/styles/ common/src/org/apache/flex/utilities/common/ common/src/org/apache/flex/utilities/common/controls/ common/src/org/apache/flex/utilities/common...
Date Thu, 15 Nov 2012 19:56:39 GMT
Modified: incubator/flex/utilities/trunk/installer/src/org/apache/flex/packageflexsdk/resource/ViewResourceConstants.as
URL: http://svn.apache.org/viewvc/incubator/flex/utilities/trunk/installer/src/org/apache/flex/packageflexsdk/resource/ViewResourceConstants.as?rev=1409957&r1=1409956&r2=1409957&view=diff
==============================================================================
--- incubator/flex/utilities/trunk/installer/src/org/apache/flex/packageflexsdk/resource/ViewResourceConstants.as (original)
+++ incubator/flex/utilities/trunk/installer/src/org/apache/flex/packageflexsdk/resource/ViewResourceConstants.as Thu Nov 15 19:56:32 2012
@@ -1,222 +1,222 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-//  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 flash.events.Event;
-import flash.events.EventDispatcher;
-import flash.events.IEventDispatcher;
-import flash.utils.Dictionary;
-import flash.utils.Proxy;
-import flash.utils.flash_proxy;
-
-import mx.collections.ArrayCollection;
-import mx.events.PropertyChangeEvent;
-import mx.resources.IResourceManager;
-import mx.resources.ResourceManager;
-
-[Bindable(event="propertyChange")]
-public dynamic class ViewResourceConstants extends Proxy implements IEventDispatcher
-{
-	
-	//--------------------------------------------------------------------------
-	//
-	//    Class constants
-	//
-	//--------------------------------------------------------------------------
-	
-	public static const BUNDLE_NAME:String = "resourceStrings";
-	
-	public static const DEFAULT_LANGUAGE:String = RuntimeLocale.EN_US;
-	
-	//--------------------------------------------------------------------------
-	//
-	//    Class properties
-	//
-	//--------------------------------------------------------------------------
-	
-	//----------------------------------
-	//    instance
-	//----------------------------------
-	
-	private static var _instance:ViewResourceConstants;
-	
-	public static function get instance():ViewResourceConstants
-	{
-		if (!_instance)
-			_instance = new ViewResourceConstants(new SE());
-		
-		return _instance;
-	}
-	
-	//----------------------------------
-	//    supportedLanguages
-	//----------------------------------
-	
-	public static function get supportedLanguages():ArrayCollection
-	{
-		var result:ArrayCollection = new ArrayCollection();
-		
-		result.addItem({label: "English (US)", data: RuntimeLocale.EN_US});
-		result.addItem({label: "English (GB)", data: RuntimeLocale.EN_GB});
-		result.addItem({label: "English (AU)", data: RuntimeLocale.EN_AU});
-		result.addItem({label: "Nederlands", data: RuntimeLocale.NL_NL});
-		result.addItem({label: "Greek", data: RuntimeLocale.EL_GR});
-		result.addItem({label: "Português", data: RuntimeLocale.PT_BR});
-		
-		return result;
-	}
-	
-	//--------------------------------------------------------------------------
-	//
-	//    Constructor
-	//
-	//--------------------------------------------------------------------------
-	
-	public function ViewResourceConstants(se:SE) 
-	{
-		_eventDispatcher = new EventDispatcher();
-		
-		RuntimeLocale.instance.installResources();
-	}
-		
-	//--------------------------------------------------------------------------
-	//
-	//    Variables
-	//
-	//--------------------------------------------------------------------------
-	
-	private var _content:Dictionary;
-	
-	private var _eventDispatcher:EventDispatcher;
-	
-	private var _resourceManager:IResourceManager = ResourceManager.getInstance();;
-	
-	//--------------------------------------------------------------------------
-	//
-	//    Methods
-	//
-	//--------------------------------------------------------------------------
-	
-	//----------------------------------
-	//    addEventListener
-	//----------------------------------
-	
-	public function addEventListener(type:String, listener:Function, 
-									 useCapture:Boolean = false, priority:int = 0, 
-									 useWeakReference:Boolean = false):void
-	{
-		_eventDispatcher.addEventListener(type, listener, useCapture, priority, useWeakReference);
-	}
-	
-	//----------------------------------
-	//    dispatchEvent
-	//----------------------------------
-	
-	public function dispatchEvent(event:Event):Boolean
-	{
-		return _eventDispatcher.dispatchEvent(event);
-	}
-	
-	//----------------------------------
-	//    getProperty
-	//----------------------------------
-	
-	override flash_proxy function getProperty(name:*):*
-	{
-		if (!_content[name])
-		{
-			var errorString:String = "The key was not found in the resource strings (key: '" + name + "').";
-			
-			trace(errorString);
-			
-			throw new Error(errorString);
-		}
-		
-		return _content[name];
-	}
-	
-	//----------------------------------
-	//    hasEventListener
-	//----------------------------------
-	
-	public function hasEventListener(type:String):Boolean
-	{
-		return _eventDispatcher.hasEventListener(type);
-	}
-	
-	//----------------------------------
-	//    removeEventListener
-	//----------------------------------
-	
-	public function removeEventListener(type:String, listener:Function, 
-										useCapture:Boolean = false):void
-	{
-		_eventDispatcher.removeEventListener(type, listener, useCapture);
-	}
-	
-	//----------------------------------
-	//    update
-	//----------------------------------
-	
-	public function update(event:Event = null):void
-	{
-		_content = new Dictionary();
-		
-		var messageStringsContentDefault:Object;
-		var messageStringsContentLocalized:Object;
-		
-		var n:int = _resourceManager.localeChain.length;
-		messageStringsContentDefault = 
-				_resourceManager.getResourceBundle(_resourceManager.localeChain[n - 1], BUNDLE_NAME).content;
-		
-		if (n > 1)
-			messageStringsContentLocalized = 
-				_resourceManager.getResourceBundle(_resourceManager.localeChain[0], BUNDLE_NAME).content;
-		
-		var useLocalizedString:Boolean;
-		var event:Event;
-		for (var key:String in messageStringsContentDefault)
-		{
-			useLocalizedString = messageStringsContentLocalized && 
-				messageStringsContentLocalized[key] &&
-				messageStringsContentLocalized[key] != "";
-			
-			_content[key] = (useLocalizedString) ? 
-				messageStringsContentLocalized[key] : messageStringsContentDefault[key];
-			
-			event = PropertyChangeEvent.createUpdateEvent(this, key, "", _content[key]);
-			dispatchEvent(event);
-		}
-	}
-	
-	//----------------------------------
-	//    willTrigger
-	//----------------------------------
-	
-	public function willTrigger(type:String):Boolean
-	{
-		return _eventDispatcher.willTrigger(type);
-	}
-		
-}
-}
-
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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 flash.events.Event;
+import flash.events.EventDispatcher;
+import flash.events.IEventDispatcher;
+import flash.utils.Dictionary;
+import flash.utils.Proxy;
+import flash.utils.flash_proxy;
+
+import mx.collections.ArrayCollection;
+import mx.events.PropertyChangeEvent;
+import mx.resources.IResourceManager;
+import mx.resources.ResourceManager;
+
+[Bindable(event="propertyChange")]
+public dynamic class ViewResourceConstants extends Proxy implements IEventDispatcher
+{
+	
+	//--------------------------------------------------------------------------
+	//
+	//    Class constants
+	//
+	//--------------------------------------------------------------------------
+	
+	public static const BUNDLE_NAME:String = "resourceStrings";
+	
+	public static const DEFAULT_LANGUAGE:String = RuntimeLocale.EN_US;
+	
+	//--------------------------------------------------------------------------
+	//
+	//    Class properties
+	//
+	//--------------------------------------------------------------------------
+	
+	//----------------------------------
+	//    instance
+	//----------------------------------
+	
+	private static var _instance:ViewResourceConstants;
+	
+	public static function get instance():ViewResourceConstants
+	{
+		if (!_instance)
+			_instance = new ViewResourceConstants(new SE());
+		
+		return _instance;
+	}
+	
+	//----------------------------------
+	//    supportedLanguages
+	//----------------------------------
+	
+	public static function get supportedLanguages():ArrayCollection
+	{
+		var result:ArrayCollection = new ArrayCollection();
+		
+		result.addItem({label: "English (US)", data: RuntimeLocale.EN_US});
+		result.addItem({label: "English (GB)", data: RuntimeLocale.EN_GB});
+		result.addItem({label: "English (AU)", data: RuntimeLocale.EN_AU});
+		result.addItem({label: "Nederlands", data: RuntimeLocale.NL_NL});
+		result.addItem({label: "Greek", data: RuntimeLocale.EL_GR});
+		result.addItem({label: "Português", data: RuntimeLocale.PT_BR});
+		
+		return result;
+	}
+	
+	//--------------------------------------------------------------------------
+	//
+	//    Constructor
+	//
+	//--------------------------------------------------------------------------
+	
+	public function ViewResourceConstants(se:SE) 
+	{
+		_eventDispatcher = new EventDispatcher();
+		
+		RuntimeLocale.instance.installResources();
+	}
+		
+	//--------------------------------------------------------------------------
+	//
+	//    Variables
+	//
+	//--------------------------------------------------------------------------
+	
+	private var _content:Dictionary;
+	
+	private var _eventDispatcher:EventDispatcher;
+	
+	private var _resourceManager:IResourceManager = ResourceManager.getInstance();;
+	
+	//--------------------------------------------------------------------------
+	//
+	//    Methods
+	//
+	//--------------------------------------------------------------------------
+	
+	//----------------------------------
+	//    addEventListener
+	//----------------------------------
+	
+	public function addEventListener(type:String, listener:Function, 
+									 useCapture:Boolean = false, priority:int = 0, 
+									 useWeakReference:Boolean = false):void
+	{
+		_eventDispatcher.addEventListener(type, listener, useCapture, priority, useWeakReference);
+	}
+	
+	//----------------------------------
+	//    dispatchEvent
+	//----------------------------------
+	
+	public function dispatchEvent(event:Event):Boolean
+	{
+		return _eventDispatcher.dispatchEvent(event);
+	}
+	
+	//----------------------------------
+	//    getProperty
+	//----------------------------------
+	
+	override flash_proxy function getProperty(name:*):*
+	{
+		if (!_content[name])
+		{
+			var errorString:String = "The key was not found in the resource strings (key: '" + name + "').";
+			
+			trace(errorString);
+			
+			throw new Error(errorString);
+		}
+		
+		return _content[name];
+	}
+	
+	//----------------------------------
+	//    hasEventListener
+	//----------------------------------
+	
+	public function hasEventListener(type:String):Boolean
+	{
+		return _eventDispatcher.hasEventListener(type);
+	}
+	
+	//----------------------------------
+	//    removeEventListener
+	//----------------------------------
+	
+	public function removeEventListener(type:String, listener:Function, 
+										useCapture:Boolean = false):void
+	{
+		_eventDispatcher.removeEventListener(type, listener, useCapture);
+	}
+	
+	//----------------------------------
+	//    update
+	//----------------------------------
+	
+	public function update(event:Event = null):void
+	{
+		_content = new Dictionary();
+		
+		var messageStringsContentDefault:Object;
+		var messageStringsContentLocalized:Object;
+		
+		var n:int = _resourceManager.localeChain.length;
+		messageStringsContentDefault = 
+				_resourceManager.getResourceBundle(_resourceManager.localeChain[n - 1], BUNDLE_NAME).content;
+		
+		if (n > 1)
+			messageStringsContentLocalized = 
+				_resourceManager.getResourceBundle(_resourceManager.localeChain[0], BUNDLE_NAME).content;
+		
+		var useLocalizedString:Boolean;
+		var event:Event;
+		for (var key:String in messageStringsContentDefault)
+		{
+			useLocalizedString = messageStringsContentLocalized && 
+				messageStringsContentLocalized[key] &&
+				messageStringsContentLocalized[key] != "";
+			
+			_content[key] = (useLocalizedString) ? 
+				messageStringsContentLocalized[key] : messageStringsContentDefault[key];
+			
+			event = PropertyChangeEvent.createUpdateEvent(this, key, "", _content[key]);
+			dispatchEvent(event);
+		}
+	}
+	
+	//----------------------------------
+	//    willTrigger
+	//----------------------------------
+	
+	public function willTrigger(type:String):Boolean
+	{
+		return _eventDispatcher.willTrigger(type);
+	}
+		
+}
+}
+
 class SE {}
\ No newline at end of file

Propchange: incubator/flex/utilities/trunk/installer/src/org/apache/flex/packageflexsdk/resource/ViewResourceConstants.as
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/flex/utilities/trunk/installer/src/org/apache/flex/packageflexsdk/util/DownloadUtil.as
URL: http://svn.apache.org/viewvc/incubator/flex/utilities/trunk/installer/src/org/apache/flex/packageflexsdk/util/DownloadUtil.as?rev=1409957&r1=1409956&r2=1409957&view=diff
==============================================================================
--- incubator/flex/utilities/trunk/installer/src/org/apache/flex/packageflexsdk/util/DownloadUtil.as (original)
+++ incubator/flex/utilities/trunk/installer/src/org/apache/flex/packageflexsdk/util/DownloadUtil.as Thu Nov 15 19:56:32 2012
@@ -1,94 +1,94 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-//  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.util
-{
-	import flash.desktop.NativeProcess;
-	import flash.desktop.NativeProcessStartupInfo;
-	import flash.events.ErrorEvent;
-	import flash.events.Event;
-	import flash.events.IOErrorEvent;
-	import flash.events.NativeProcessExitEvent;
-	import flash.events.ProgressEvent;
-	import flash.filesystem.File;
-	import flash.net.URLLoader;
-	import flash.net.URLLoaderDataFormat;
-	import flash.net.URLRequest;
-	import flash.system.Capabilities;
-
-	public class DownloadUtil
-	{
-		public static function download(url:String, completeFunction:Function, errorFunction:Function=null, progressFunction: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, completeFunction,false,0,true);
-			
-			if (errorFunction != null)
-			{
-				loader.addEventListener(ErrorEvent.ERROR,errorFunction,false,0,true);
-				loader.addEventListener(IOErrorEvent.IO_ERROR,errorFunction,false,0,true);
-			}
-			if(progressFunction != null)
-			{
-				loader.addEventListener(ProgressEvent.PROGRESS, progressFunction,false,0,true);
-			}
-			
-			loader.load(req);
-		}
-		
-		public static function invokeNativeProcess(args:Vector.<String>):void
-		{
-			var os:String = Capabilities.os.toLowerCase();
-			var info:NativeProcessStartupInfo = new NativeProcessStartupInfo();
-			var cmdExe:File = (os.indexOf("win") > -1) ? new File("C:\\Windows\\System32\\cmd.exe") : null;
-			if (cmdExe && cmdExe.exists)
-			{
-				info.executable = cmdExe;
-				info.arguments = args;
-			}
-			var installProcess:NativeProcess = new NativeProcess();
-			installProcess.start(info);
-		}
-		
-		public static function executeFile(file:File,completeFunction:Function=null):void
-		{
-			var os:String = Capabilities.os.toLowerCase();
-			var info:NativeProcessStartupInfo = new NativeProcessStartupInfo();
-			info.executable = file;
-			var process:NativeProcess = new NativeProcess();
-			if(completeFunction != null)
-			{
-				process.addEventListener(NativeProcessExitEvent.EXIT, completeFunction,false,0,true);
-			}
-			process.addEventListener(NativeProcessExitEvent.EXIT, handleNativeProcessComplete,false,0,true);
-			process.start(info);
-		}
-		
-		protected static function handleNativeProcessComplete(event:NativeProcessExitEvent):void
-		{
-			var process:NativeProcess = NativeProcess(event.target);
-			process.closeInput();
-			process.exit(true);
-		}
-	}
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.util
+{
+	import flash.desktop.NativeProcess;
+	import flash.desktop.NativeProcessStartupInfo;
+	import flash.events.ErrorEvent;
+	import flash.events.Event;
+	import flash.events.IOErrorEvent;
+	import flash.events.NativeProcessExitEvent;
+	import flash.events.ProgressEvent;
+	import flash.filesystem.File;
+	import flash.net.URLLoader;
+	import flash.net.URLLoaderDataFormat;
+	import flash.net.URLRequest;
+	import flash.system.Capabilities;
+
+	public class DownloadUtil
+	{
+		public static function download(url:String, completeFunction:Function, errorFunction:Function=null, progressFunction: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, completeFunction,false,0,true);
+			
+			if (errorFunction != null)
+			{
+				loader.addEventListener(ErrorEvent.ERROR,errorFunction,false,0,true);
+				loader.addEventListener(IOErrorEvent.IO_ERROR,errorFunction,false,0,true);
+			}
+			if(progressFunction != null)
+			{
+				loader.addEventListener(ProgressEvent.PROGRESS, progressFunction,false,0,true);
+			}
+			
+			loader.load(req);
+		}
+		
+		public static function invokeNativeProcess(args:Vector.<String>):void
+		{
+			var os:String = Capabilities.os.toLowerCase();
+			var info:NativeProcessStartupInfo = new NativeProcessStartupInfo();
+			var cmdExe:File = (os.indexOf("win") > -1) ? new File("C:\\Windows\\System32\\cmd.exe") : null;
+			if (cmdExe && cmdExe.exists)
+			{
+				info.executable = cmdExe;
+				info.arguments = args;
+			}
+			var installProcess:NativeProcess = new NativeProcess();
+			installProcess.start(info);
+		}
+		
+		public static function executeFile(file:File,completeFunction:Function=null):void
+		{
+			var os:String = Capabilities.os.toLowerCase();
+			var info:NativeProcessStartupInfo = new NativeProcessStartupInfo();
+			info.executable = file;
+			var process:NativeProcess = new NativeProcess();
+			if(completeFunction != null)
+			{
+				process.addEventListener(NativeProcessExitEvent.EXIT, completeFunction,false,0,true);
+			}
+			process.addEventListener(NativeProcessExitEvent.EXIT, handleNativeProcessComplete,false,0,true);
+			process.start(info);
+		}
+		
+		protected static function handleNativeProcessComplete(event:NativeProcessExitEvent):void
+		{
+			var process:NativeProcess = NativeProcess(event.target);
+			process.closeInput();
+			process.exit(true);
+		}
+	}
 }
\ No newline at end of file

Propchange: incubator/flex/utilities/trunk/installer/src/org/apache/flex/packageflexsdk/util/DownloadUtil.as
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/flex/utilities/trunk/installer/src/org/apache/flex/packageflexsdk/util/MD5CompareUtil.as
URL: http://svn.apache.org/viewvc/incubator/flex/utilities/trunk/installer/src/org/apache/flex/packageflexsdk/util/MD5CompareUtil.as?rev=1409957&r1=1409956&r2=1409957&view=diff
==============================================================================
--- incubator/flex/utilities/trunk/installer/src/org/apache/flex/packageflexsdk/util/MD5CompareUtil.as (original)
+++ incubator/flex/utilities/trunk/installer/src/org/apache/flex/packageflexsdk/util/MD5CompareUtil.as Thu Nov 15 19:56:32 2012
@@ -1,227 +1,227 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-//  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.util
-{
-
-import com.adobe.crypto.MD5Stream;
-
-import flash.events.Event;
-import flash.events.EventDispatcher;
-import flash.events.IOErrorEvent;
-import flash.events.OutputProgressEvent;
-import flash.events.ProgressEvent;
-import flash.filesystem.File;
-import flash.filesystem.FileMode;
-import flash.filesystem.FileStream;
-import flash.net.URLLoader;
-import flash.net.URLLoaderDataFormat;
-import flash.net.URLRequest;
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.util
+{
+
+import com.adobe.crypto.MD5Stream;
+
+import flash.events.Event;
+import flash.events.EventDispatcher;
+import flash.events.IOErrorEvent;
+import flash.events.OutputProgressEvent;
+import flash.events.ProgressEvent;
+import flash.filesystem.File;
+import flash.filesystem.FileMode;
+import flash.filesystem.FileStream;
+import flash.net.URLLoader;
+import flash.net.URLLoaderDataFormat;
+import flash.net.URLRequest;
 import flash.utils.ByteArray;
-
-[Event(name="progress", type="flash.events.ProgressEvent")]
-
-public class MD5CompareUtil extends EventDispatcher
-{
-
-	//--------------------------------------------------------------------------
-	//
-	//    Class constants
-	//
-	//--------------------------------------------------------------------------
-	
-	public static const MD5_DOMAIN:String = "https://www.apache.org/dist/";
-	
-	public static const MD5_POSTFIX:String = ".md5";
-	
-	//--------------------------------------------------------------------------
-	//
-	//    Class properties
-	//
-	//--------------------------------------------------------------------------
-	
-	//----------------------------------
-	//    instance
-	//----------------------------------
-	
-	private static var _instance:MD5CompareUtil;
-	
-	public static function get instance():MD5CompareUtil
-	{
-		if (!_instance)
-			_instance = new MD5CompareUtil(new SE());
-		
-		return _instance;
-	}
-	
-	//--------------------------------------------------------------------------
-	//
-	//    Constructor
-	//
-	//--------------------------------------------------------------------------
-	
-	public function MD5CompareUtil(se:SE) {}
-		
-	//--------------------------------------------------------------------------
-	//
-	//    Variables
-	//
-	//--------------------------------------------------------------------------
-	
-	private var _callback:Function;
-	
-	private var _file:File;
-	
-	private var _fileStream:FileStream;
-	
-	private var _remoteMD5Value:String;
-	
-	private var _md5Stream:MD5Stream;
-	
-	private var _urlLoader:URLLoader;
-	
-	//--------------------------------------------------------------------------
-	//
-	//    Properties
-	//
-	//--------------------------------------------------------------------------
-	
-	//----------------------------------
-	//    errorMessage
-	//----------------------------------
-	
-	private var _errorMessage:String = "";
-
-	public function get errorMessage():String
-	{
-		return _errorMessage;
-	}
-
-	//----------------------------------
-	//    errorOccurred
-	//----------------------------------
-	
-	private var _errorOccurred:Boolean;
-
-	public function get errorOccurred():Boolean
-	{
-		return _errorOccurred;
-	}
-
-	//----------------------------------
-	//    fileIsVerified
-	//----------------------------------
-	
-	private var _fileIsVerified:Boolean;
-
-	public function get fileIsVerified():Boolean
-	{
-		return _fileIsVerified;
-	}
-
-	//--------------------------------------------------------------------------
-	//
-	//    Methods
-	//
-	//--------------------------------------------------------------------------
-	
-	//----------------------------------
-	//    compareSignatures
-	//----------------------------------
-	
-	private function compareSignatures():void
-	{
-		_md5Stream = new MD5Stream();
-		
-		_fileStream = new FileStream();
-		_fileStream.addEventListener(Event.COMPLETE, fileStreamOpenHandler);
-		_fileStream.addEventListener(ProgressEvent.PROGRESS, fileStreamOpenHandler);
-		_fileStream.addEventListener(OutputProgressEvent.OUTPUT_PROGRESS, fileStreamOpenHandler);
-		_fileStream.openAsync(_file, FileMode.READ); 
-	}
-	
-	//----------------------------------
-	//    fileStreamOpenHandler
-	//----------------------------------
-	
-	private function fileStreamOpenHandler(event:Event):void
-	{
-		var data:ByteArray = new ByteArray();
-		_fileStream.readBytes(data, 0, _fileStream.bytesAvailable);
-		
-		if (event is ProgressEvent)
-		{
-			_md5Stream.update(data);
-			
-			dispatchEvent(event.clone());
-		}
-		else
-		{
-			if (event.type == Event.COMPLETE)
-			{
-				_fileIsVerified = (_md5Stream.complete(data) == _remoteMD5Value);
-				
-				_callback();
-			}
-		}
-	}
-	
-	//----------------------------------
-	//    urlLoaderResultHandler
-	//----------------------------------
-	
-	private function urlLoaderResultHandler(event:Event):void
-	{
-		_errorOccurred = event is IOErrorEvent;
-		
-		if (!_errorOccurred)
-		{
-			_remoteMD5Value = String(_urlLoader.data);
-			_remoteMD5Value = _remoteMD5Value.split("\n")[0]; // we need only the first line
-			
-			compareSignatures();
-		}
-		else
-		{
-			_errorMessage = String(IOErrorEvent(event).text);
-		}
-	}
-	
-	//----------------------------------
-	//    verifyMD5
-	//----------------------------------
-	
-	public function verifyMD5(localSDKZipFile:File, remoteSDKZipPath:String, 
-							  onVerificationComplete:Function):void
-	{
-		_file = localSDKZipFile;
-		
-		_callback = onVerificationComplete;
-		
-		_urlLoader = new URLLoader();
-		_urlLoader.dataFormat = URLLoaderDataFormat.TEXT;
-		_urlLoader.addEventListener(Event.COMPLETE, urlLoaderResultHandler);
-		_urlLoader.addEventListener(IOErrorEvent.IO_ERROR, urlLoaderResultHandler);
-		_urlLoader.load(new URLRequest(MD5_DOMAIN + remoteSDKZipPath + MD5_POSTFIX));
-	}
-	
-}
-}
-
-class SE {}
\ No newline at end of file
+
+[Event(name="progress", type="flash.events.ProgressEvent")]
+
+public class MD5CompareUtil extends EventDispatcher
+{
+
+	//--------------------------------------------------------------------------
+	//
+	//    Class constants
+	//
+	//--------------------------------------------------------------------------
+	
+	public static const MD5_DOMAIN:String = "https://www.apache.org/dist/";
+	
+	public static const MD5_POSTFIX:String = ".md5";
+	
+	//--------------------------------------------------------------------------
+	//
+	//    Class properties
+	//
+	//--------------------------------------------------------------------------
+	
+	//----------------------------------
+	//    instance
+	//----------------------------------
+	
+	private static var _instance:MD5CompareUtil;
+	
+	public static function get instance():MD5CompareUtil
+	{
+		if (!_instance)
+			_instance = new MD5CompareUtil(new SE());
+		
+		return _instance;
+	}
+	
+	//--------------------------------------------------------------------------
+	//
+	//    Constructor
+	//
+	//--------------------------------------------------------------------------
+	
+	public function MD5CompareUtil(se:SE) {}
+		
+	//--------------------------------------------------------------------------
+	//
+	//    Variables
+	//
+	//--------------------------------------------------------------------------
+	
+	private var _callback:Function;
+	
+	private var _file:File;
+	
+	private var _fileStream:FileStream;
+	
+	private var _remoteMD5Value:String;
+	
+	private var _md5Stream:MD5Stream;
+	
+	private var _urlLoader:URLLoader;
+	
+	//--------------------------------------------------------------------------
+	//
+	//    Properties
+	//
+	//--------------------------------------------------------------------------
+	
+	//----------------------------------
+	//    errorMessage
+	//----------------------------------
+	
+	private var _errorMessage:String = "";
+
+	public function get errorMessage():String
+	{
+		return _errorMessage;
+	}
+
+	//----------------------------------
+	//    errorOccurred
+	//----------------------------------
+	
+	private var _errorOccurred:Boolean;
+
+	public function get errorOccurred():Boolean
+	{
+		return _errorOccurred;
+	}
+
+	//----------------------------------
+	//    fileIsVerified
+	//----------------------------------
+	
+	private var _fileIsVerified:Boolean;
+
+	public function get fileIsVerified():Boolean
+	{
+		return _fileIsVerified;
+	}
+
+	//--------------------------------------------------------------------------
+	//
+	//    Methods
+	//
+	//--------------------------------------------------------------------------
+	
+	//----------------------------------
+	//    compareSignatures
+	//----------------------------------
+	
+	private function compareSignatures():void
+	{
+		_md5Stream = new MD5Stream();
+		
+		_fileStream = new FileStream();
+		_fileStream.addEventListener(Event.COMPLETE, fileStreamOpenHandler);
+		_fileStream.addEventListener(ProgressEvent.PROGRESS, fileStreamOpenHandler);
+		_fileStream.addEventListener(OutputProgressEvent.OUTPUT_PROGRESS, fileStreamOpenHandler);
+		_fileStream.openAsync(_file, FileMode.READ); 
+	}
+	
+	//----------------------------------
+	//    fileStreamOpenHandler
+	//----------------------------------
+	
+	private function fileStreamOpenHandler(event:Event):void
+	{
+		var data:ByteArray = new ByteArray();
+		_fileStream.readBytes(data, 0, _fileStream.bytesAvailable);
+		
+		if (event is ProgressEvent)
+		{
+			_md5Stream.update(data);
+			
+			dispatchEvent(event.clone());
+		}
+		else
+		{
+			if (event.type == Event.COMPLETE)
+			{
+				_fileIsVerified = (_md5Stream.complete(data) == _remoteMD5Value);
+				
+				_callback();
+			}
+		}
+	}
+	
+	//----------------------------------
+	//    urlLoaderResultHandler
+	//----------------------------------
+	
+	private function urlLoaderResultHandler(event:Event):void
+	{
+		_errorOccurred = event is IOErrorEvent;
+		
+		if (!_errorOccurred)
+		{
+			_remoteMD5Value = String(_urlLoader.data);
+			_remoteMD5Value = _remoteMD5Value.split("\n")[0]; // we need only the first line
+			
+			compareSignatures();
+		}
+		else
+		{
+			_errorMessage = String(IOErrorEvent(event).text);
+		}
+	}
+	
+	//----------------------------------
+	//    verifyMD5
+	//----------------------------------
+	
+	public function verifyMD5(localSDKZipFile:File, remoteSDKZipPath:String, 
+							  onVerificationComplete:Function):void
+	{
+		_file = localSDKZipFile;
+		
+		_callback = onVerificationComplete;
+		
+		_urlLoader = new URLLoader();
+		_urlLoader.dataFormat = URLLoaderDataFormat.TEXT;
+		_urlLoader.addEventListener(Event.COMPLETE, urlLoaderResultHandler);
+		_urlLoader.addEventListener(IOErrorEvent.IO_ERROR, urlLoaderResultHandler);
+		_urlLoader.load(new URLRequest(MD5_DOMAIN + remoteSDKZipPath + MD5_POSTFIX));
+	}
+	
+}
+}
+
+class SE {}

Propchange: incubator/flex/utilities/trunk/installer/src/org/apache/flex/packageflexsdk/util/MD5CompareUtil.as
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/flex/utilities/trunk/installer/src/org/apache/flex/packageflexsdk/view/UpdaterDialog.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/utilities/trunk/installer/src/org/apache/flex/packageflexsdk/view/UpdaterDialog.mxml?rev=1409957&r1=1409956&r2=1409957&view=diff
==============================================================================
--- incubator/flex/utilities/trunk/installer/src/org/apache/flex/packageflexsdk/view/UpdaterDialog.mxml (original)
+++ incubator/flex/utilities/trunk/installer/src/org/apache/flex/packageflexsdk/view/UpdaterDialog.mxml Thu Nov 15 19:56:32 2012
@@ -1,204 +1,204 @@
-<?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:TitleWindow 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="412" 
-			   title="Update available"
-			   xmlns:controls="ws.tink.spark.controls.*"
-			   skinClass="ws.tink.spark.skins.controls.UpdaterDialogSkin">
-	
-	<fx:Script><![CDATA[
-		
-		import air.update.events.DownloadErrorEvent;
-		import air.update.events.StatusUpdateEvent;
-		import air.update.events.UpdateEvent;
-		
-		import com.riaspace.nativeApplicationUpdater.utils.HdiutilHelper;
-		
-		import mx.controls.Alert;
-		import mx.core.Application;
-		import mx.core.FlexGlobals;
-		import mx.events.CloseEvent;
-		import mx.utils.DisplayUtil;
-		
-		import org.apache.flex.packageflexsdk.util.DownloadUtil;
-		import org.apache.flex.utilities.common.Constants;
-		import org.apache.flex.utilities.common.Tools;
-		
-		[Bindable] 
-		private var _newVersion:String;
-		
-		private var _fileWindows:File;
-		private var _fileMac:File;
-		
-		protected function handleYesBtnClick(event:MouseEvent):void
-		{
-			currentState = "downloading";
-			downloadUpdater();
-		}
-		
-		protected function downloadUpdater():void
-		{
-			var applicationExtension:String = Tools.getApplicationExtension();
-			var downloadCompleteHandler:Function =  
-				(applicationExtension == Constants.APPLICATION_EXTENSION_WIN) ? 
-				handleWindowsInstallerDownloadComplete : handleMacInstallerDownloadComplete;
-				
-			var main:Object = FlexGlobals.topLevelApplication;
-			
-			var url:String = 
-				main.installerAppPath + main.installerAppFileName + applicationExtension;
-			
-			DownloadUtil.download(url, downloadCompleteHandler, handleDownloadError, handleDownloadProgress);
-		}
-		
-		protected function handleWindowsInstallerDownloadComplete(event:Event):void
-		{
-			_fileWindows = File.createTempFile();
-			writeFileToDirectory(_fileWindows,event.target.data);
-			installFromFile(_fileWindows);
-		}
-		
-		protected function installFromFile(file:File):void
-		{
-			DownloadUtil.executeFile(file);
-			setTimeout(NativeApplication.nativeApplication.exit, 200);
-		}
-		
-		protected function handleMacInstallerDownloadComplete(event:Event):void
-		{
-			_fileMac = File.createTempFile();
-			writeFileToDirectory(_fileMac,event.target.data);
-			var hdiutilHelper:HdiutilHelper = new HdiutilHelper(_fileMac);
-			hdiutilHelper.addEventListener(Event.COMPLETE, handleHdiutilHelperComplete);
-			hdiutilHelper.addEventListener(ErrorEvent.ERROR, handleHdiutilHelperError);
-			hdiutilHelper.attach();
-		}
-		
-		private function handleHdiutilHelperComplete(event:Event):void
-		{
-			var hdiutilHelper:HdiutilHelper = event.target as HdiutilHelper;
-			hdiutilHelper.removeEventListener(Event.COMPLETE, handleHdiutilHelperComplete);
-			hdiutilHelper.removeEventListener(ErrorEvent.ERROR, handleHdiutilHelperError);
-			
-			var attachedDmg:File = new File(hdiutilHelper.mountPoint);
-			var files:Array = attachedDmg.getDirectoryListing();
-			
-			if (files.length == 1)
-			{
-				var installFileFolder:File = File(files[0]).resolvePath("Contents/MacOS");
-				var installFiles:Array = installFileFolder.getDirectoryListing();
-				
-				if (installFiles.length == 1)
-				{
-					installFromFile(installFiles[0]);
-				}
-				else
-					dispatchEvent(new ErrorEvent(ErrorEvent.ERROR, false, false, 
-						"Contents/MacOS folder should contain only 1 install file!"));
-			}
-			else
-			{
-				dispatchEvent(new ErrorEvent(ErrorEvent.ERROR, false, false, 
-					"Mounted volume should contain only 1 install file!"));
-			}
-		}
-		
-		private function handleHdiutilHelperError(event:ErrorEvent):void
-		{
-			var hdiutilHelper:HdiutilHelper = event.target as HdiutilHelper;
-			hdiutilHelper.removeEventListener(Event.COMPLETE, handleHdiutilHelperComplete);
-			hdiutilHelper.removeEventListener(ErrorEvent.ERROR, handleHdiutilHelperError);
-			
-			dispatchEvent(new ErrorEvent(ErrorEvent.ERROR, false, false, 
-				"Error attaching dmg file!"));
-		}
-		
-		protected function handleDownloadProgress(event:ProgressEvent):void
-		{
-			var bytesTotal:int = event.bytesTotal;
-			var bytesLoaded:int = event.bytesLoaded;
-			var percentLoaded:int = Math.round(bytesLoaded*100/bytesTotal);
-			progressBar.percent = percentLoaded;
-		}
-		
-		
-		private function handleDownloadError(event:Event):void
-		{
-			Alert.show("Error downloading update file, try again later.");
-		}
-		
-		public function set latestVersion(value:String):void
-		{
-			_newVersion = value;
-		}
-		
-		private function writeFileToDirectory(file:File,data:ByteArray):void
-		{
-			var fs:FileStream = new FileStream();
-			fs.open(file, FileMode.WRITE);
-			fs.writeBytes(data); 
-			fs.close();
-		}
-		
-		protected function handleNoBtnClick(event:MouseEvent):void
-		{
-			dispatchEvent(new CloseEvent(CloseEvent.CLOSE));
-		}
-		
-	]]></fx:Script>
-	
-	<s:states>
-		<s:State name="normal" />
-		<s:State name="downloading" />
-	</s:states>
-	
-	<s:HGroup width="100%" 
-			top="210" 
-			  horizontalCenter="0" 
-			  verticalAlign="top">
-		<s:VGroup width="100%" 
-				  horizontalAlign="center">
-			<s:Label text="New version ({_newVersion}) is available."
-					 fontSize="14"/>
-			<s:Label text="Do you want to download and install it?" 
-					 fontSize="14"/>
-			<controls:ProgressBar id="progressBar" 
-								  width="80%" 
-								  height="21" />
-			<s:Spacer height="20" />
-			<s:HGroup>
-				<s:Button id="btnYes" 
-						  height="30"
-						  styleName="mainBtnStyle"
-						  label="UPDATE" 
-						  click="handleYesBtnClick(event)" 
-						  enabled.downloading="false" />
-				<s:Button id="btnNo" 
-						  height="30"
-						  styleName="negativeBtnStyle"
-						  label="DON'T UPDATE" 
-						  click="handleNoBtnClick(event)"
-						  enabled.downloading="false" />
-			</s:HGroup>
-		</s:VGroup>
-	</s:HGroup>
+<?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:TitleWindow 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="412" 
+			   title="Update available"
+			   xmlns:controls="ws.tink.spark.controls.*"
+			   skinClass="ws.tink.spark.skins.controls.UpdaterDialogSkin">
+	
+	<fx:Script><![CDATA[
+		
+		import air.update.events.DownloadErrorEvent;
+		import air.update.events.StatusUpdateEvent;
+		import air.update.events.UpdateEvent;
+		
+		import com.riaspace.nativeApplicationUpdater.utils.HdiutilHelper;
+		
+		import mx.controls.Alert;
+		import mx.core.Application;
+		import mx.core.FlexGlobals;
+		import mx.events.CloseEvent;
+		import mx.utils.DisplayUtil;
+		
+		import org.apache.flex.packageflexsdk.util.DownloadUtil;
+		import org.apache.flex.utilities.common.Constants;
+		import org.apache.flex.utilities.common.Tools;
+		
+		[Bindable] 
+		private var _newVersion:String;
+		
+		private var _fileWindows:File;
+		private var _fileMac:File;
+		
+		protected function handleYesBtnClick(event:MouseEvent):void
+		{
+			currentState = "downloading";
+			downloadUpdater();
+		}
+		
+		protected function downloadUpdater():void
+		{
+			var applicationExtension:String = Tools.getApplicationExtension();
+			var downloadCompleteHandler:Function =  
+				(applicationExtension == Constants.APPLICATION_EXTENSION_WIN) ? 
+				handleWindowsInstallerDownloadComplete : handleMacInstallerDownloadComplete;
+				
+			var main:Object = FlexGlobals.topLevelApplication;
+			
+			var url:String = 
+				main.installerAppPath + main.installerAppFileName + applicationExtension;
+			
+			DownloadUtil.download(url, downloadCompleteHandler, handleDownloadError, handleDownloadProgress);
+		}
+		
+		protected function handleWindowsInstallerDownloadComplete(event:Event):void
+		{
+			_fileWindows = File.createTempFile();
+			writeFileToDirectory(_fileWindows,event.target.data);
+			installFromFile(_fileWindows);
+		}
+		
+		protected function installFromFile(file:File):void
+		{
+			DownloadUtil.executeFile(file);
+			setTimeout(NativeApplication.nativeApplication.exit, 200);
+		}
+		
+		protected function handleMacInstallerDownloadComplete(event:Event):void
+		{
+			_fileMac = File.createTempFile();
+			writeFileToDirectory(_fileMac,event.target.data);
+			var hdiutilHelper:HdiutilHelper = new HdiutilHelper(_fileMac);
+			hdiutilHelper.addEventListener(Event.COMPLETE, handleHdiutilHelperComplete);
+			hdiutilHelper.addEventListener(ErrorEvent.ERROR, handleHdiutilHelperError);
+			hdiutilHelper.attach();
+		}
+		
+		private function handleHdiutilHelperComplete(event:Event):void
+		{
+			var hdiutilHelper:HdiutilHelper = event.target as HdiutilHelper;
+			hdiutilHelper.removeEventListener(Event.COMPLETE, handleHdiutilHelperComplete);
+			hdiutilHelper.removeEventListener(ErrorEvent.ERROR, handleHdiutilHelperError);
+			
+			var attachedDmg:File = new File(hdiutilHelper.mountPoint);
+			var files:Array = attachedDmg.getDirectoryListing();
+			
+			if (files.length == 1)
+			{
+				var installFileFolder:File = File(files[0]).resolvePath("Contents/MacOS");
+				var installFiles:Array = installFileFolder.getDirectoryListing();
+				
+				if (installFiles.length == 1)
+				{
+					installFromFile(installFiles[0]);
+				}
+				else
+					dispatchEvent(new ErrorEvent(ErrorEvent.ERROR, false, false, 
+						"Contents/MacOS folder should contain only 1 install file!"));
+			}
+			else
+			{
+				dispatchEvent(new ErrorEvent(ErrorEvent.ERROR, false, false, 
+					"Mounted volume should contain only 1 install file!"));
+			}
+		}
+		
+		private function handleHdiutilHelperError(event:ErrorEvent):void
+		{
+			var hdiutilHelper:HdiutilHelper = event.target as HdiutilHelper;
+			hdiutilHelper.removeEventListener(Event.COMPLETE, handleHdiutilHelperComplete);
+			hdiutilHelper.removeEventListener(ErrorEvent.ERROR, handleHdiutilHelperError);
+			
+			dispatchEvent(new ErrorEvent(ErrorEvent.ERROR, false, false, 
+				"Error attaching dmg file!"));
+		}
+		
+		protected function handleDownloadProgress(event:ProgressEvent):void
+		{
+			var bytesTotal:int = event.bytesTotal;
+			var bytesLoaded:int = event.bytesLoaded;
+			var percentLoaded:int = Math.round(bytesLoaded*100/bytesTotal);
+			progressBar.percent = percentLoaded;
+		}
+		
+		
+		private function handleDownloadError(event:Event):void
+		{
+			Alert.show("Error downloading update file, try again later.");
+		}
+		
+		public function set latestVersion(value:String):void
+		{
+			_newVersion = value;
+		}
+		
+		private function writeFileToDirectory(file:File,data:ByteArray):void
+		{
+			var fs:FileStream = new FileStream();
+			fs.open(file, FileMode.WRITE);
+			fs.writeBytes(data); 
+			fs.close();
+		}
+		
+		protected function handleNoBtnClick(event:MouseEvent):void
+		{
+			dispatchEvent(new CloseEvent(CloseEvent.CLOSE));
+		}
+		
+	]]></fx:Script>
+	
+	<s:states>
+		<s:State name="normal" />
+		<s:State name="downloading" />
+	</s:states>
+	
+	<s:HGroup width="100%" 
+			top="210" 
+			  horizontalCenter="0" 
+			  verticalAlign="top">
+		<s:VGroup width="100%" 
+				  horizontalAlign="center">
+			<s:Label text="New version ({_newVersion}) is available."
+					 fontSize="14"/>
+			<s:Label text="Do you want to download and install it?" 
+					 fontSize="14"/>
+			<controls:ProgressBar id="progressBar" 
+								  width="80%" 
+								  height="21" />
+			<s:Spacer height="20" />
+			<s:HGroup>
+				<s:Button id="btnYes" 
+						  height="30"
+						  styleName="mainBtnStyle"
+						  label="UPDATE" 
+						  click="handleYesBtnClick(event)" 
+						  enabled.downloading="false" />
+				<s:Button id="btnNo" 
+						  height="30"
+						  styleName="negativeBtnStyle"
+						  label="DON'T UPDATE" 
+						  click="handleNoBtnClick(event)"
+						  enabled.downloading="false" />
+			</s:HGroup>
+		</s:VGroup>
+	</s:HGroup>
 </s:TitleWindow>
\ No newline at end of file

Propchange: incubator/flex/utilities/trunk/installer/src/org/apache/flex/packageflexsdk/view/UpdaterDialog.mxml
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/flex/utilities/trunk/installer/src/org/apache/flex/packageflexsdk/view/components/AboutDialog.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/utilities/trunk/installer/src/org/apache/flex/packageflexsdk/view/components/AboutDialog.mxml?rev=1409957&r1=1409956&r2=1409957&view=diff
==============================================================================
--- incubator/flex/utilities/trunk/installer/src/org/apache/flex/packageflexsdk/view/components/AboutDialog.mxml (original)
+++ incubator/flex/utilities/trunk/installer/src/org/apache/flex/packageflexsdk/view/components/AboutDialog.mxml Thu Nov 15 19:56:32 2012
@@ -1,26 +1,26 @@
-<?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" width="400" height="300">
-	<fx:Declarations>
-		<!-- Place non-visual elements (e.g., services, value objects) here -->
-	</fx:Declarations>
+<?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" 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

Propchange: incubator/flex/utilities/trunk/installer/src/org/apache/flex/packageflexsdk/view/components/AboutDialog.mxml
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/flex/utilities/trunk/installer/src/org/apache/flex/packageflexsdk/view/components/AdobeLicense.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/utilities/trunk/installer/src/org/apache/flex/packageflexsdk/view/components/AdobeLicense.mxml?rev=1409957&r1=1409956&r2=1409957&view=diff
==============================================================================
--- incubator/flex/utilities/trunk/installer/src/org/apache/flex/packageflexsdk/view/components/AdobeLicense.mxml (original)
+++ incubator/flex/utilities/trunk/installer/src/org/apache/flex/packageflexsdk/view/components/AdobeLicense.mxml Thu Nov 15 19:56:32 2012
@@ -1,79 +1,79 @@
-<?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" 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" 
-		editable="false"/>
-	<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.instance.BTN_LABEL_CLOSE}" click="close()" styleName="genericBtnStyle"  />
-	</s:HGroup>
+<?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" 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" 
+		editable="false"/>
+	<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.instance.BTN_LABEL_CLOSE}" click="close()" styleName="genericBtnStyle"  />
+	</s:HGroup>
 </s:Window>
\ No newline at end of file

Propchange: incubator/flex/utilities/trunk/installer/src/org/apache/flex/packageflexsdk/view/components/AdobeLicense.mxml
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/flex/utilities/trunk/installer/src/org/apache/flex/packageflexsdk/view/components/ConsoleWindow.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/utilities/trunk/installer/src/org/apache/flex/packageflexsdk/view/components/ConsoleWindow.mxml?rev=1409957&r1=1409956&r2=1409957&view=diff
==============================================================================
--- incubator/flex/utilities/trunk/installer/src/org/apache/flex/packageflexsdk/view/components/ConsoleWindow.mxml (original)
+++ incubator/flex/utilities/trunk/installer/src/org/apache/flex/packageflexsdk/view/components/ConsoleWindow.mxml Thu Nov 15 19:56:32 2012
@@ -33,9 +33,9 @@ limitations under the License.
 			
 			[Bindable] public var messages:ArrayCollection = new ArrayCollection();
 			
-			protected function closeWindow(event:MouseEvent):void
-			{
-				close();
+			protected function closeWindow(event:MouseEvent):void
+			{
+				close();
 			}
 			
 			private function handleCopyBtnClick(event:MouseEvent):void

Propchange: incubator/flex/utilities/trunk/installer/src/org/apache/flex/packageflexsdk/view/components/ConsoleWindow.mxml
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/flex/utilities/trunk/installer/src/org/apache/flex/packageflexsdk/view/components/MPLLicense.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/utilities/trunk/installer/src/org/apache/flex/packageflexsdk/view/components/MPLLicense.mxml?rev=1409957&r1=1409956&r2=1409957&view=diff
==============================================================================
--- incubator/flex/utilities/trunk/installer/src/org/apache/flex/packageflexsdk/view/components/MPLLicense.mxml (original)
+++ incubator/flex/utilities/trunk/installer/src/org/apache/flex/packageflexsdk/view/components/MPLLicense.mxml Thu Nov 15 19:56:32 2012
@@ -1,48 +1,48 @@
-<?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" 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}" 
-		editable="false"/>
-	<s:HGroup width="100%" height="50" verticalAlign="middle" paddingRight="15" >
-		<s:Spacer width="100%" />
-		<s:Button label="{ViewResourceConstants.instance.BTN_LABEL_CLOSE}" click="close()" styleName="genericBtnStyle"  />
-	</s:HGroup>
-</s:Window>
+<?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" 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}" 
+		editable="false"/>
+	<s:HGroup width="100%" height="50" verticalAlign="middle" paddingRight="15" >
+		<s:Spacer width="100%" />
+		<s:Button label="{ViewResourceConstants.instance.BTN_LABEL_CLOSE}" click="close()" styleName="genericBtnStyle"  />
+	</s:HGroup>
+</s:Window>

Propchange: incubator/flex/utilities/trunk/installer/src/org/apache/flex/packageflexsdk/view/components/MPLLicense.mxml
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/flex/utilities/trunk/installer/src/org/apache/flex/packageflexsdk/view/controls/MultiStepProgressIndicator.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/utilities/trunk/installer/src/org/apache/flex/packageflexsdk/view/controls/MultiStepProgressIndicator.mxml?rev=1409957&r1=1409956&r2=1409957&view=diff
==============================================================================
--- incubator/flex/utilities/trunk/installer/src/org/apache/flex/packageflexsdk/view/controls/MultiStepProgressIndicator.mxml (original)
+++ incubator/flex/utilities/trunk/installer/src/org/apache/flex/packageflexsdk/view/controls/MultiStepProgressIndicator.mxml Thu Nov 15 19:56:32 2012
@@ -1,37 +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>
+<?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

Propchange: incubator/flex/utilities/trunk/installer/src/org/apache/flex/packageflexsdk/view/controls/MultiStepProgressIndicator.mxml
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/flex/utilities/trunk/installer/src/org/apache/flex/packageflexsdk/view/itemrenderers/OptionalInstallItemRenderer.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/utilities/trunk/installer/src/org/apache/flex/packageflexsdk/view/itemrenderers/OptionalInstallItemRenderer.mxml?rev=1409957&r1=1409956&r2=1409957&view=diff
==============================================================================
--- incubator/flex/utilities/trunk/installer/src/org/apache/flex/packageflexsdk/view/itemrenderers/OptionalInstallItemRenderer.mxml (original)
+++ incubator/flex/utilities/trunk/installer/src/org/apache/flex/packageflexsdk/view/itemrenderers/OptionalInstallItemRenderer.mxml Thu Nov 15 19:56:32 2012
@@ -1,30 +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>
+<?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>

Propchange: incubator/flex/utilities/trunk/installer/src/org/apache/flex/packageflexsdk/view/itemrenderers/OptionalInstallItemRenderer.mxml
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/flex/utilities/trunk/installer/src/sdk-installer-config.xml
URL: http://svn.apache.org/viewvc/incubator/flex/utilities/trunk/installer/src/sdk-installer-config.xml?rev=1409957&r1=1409956&r2=1409957&view=diff
==============================================================================
--- incubator/flex/utilities/trunk/installer/src/sdk-installer-config.xml (original)
+++ incubator/flex/utilities/trunk/installer/src/sdk-installer-config.xml Thu Nov 15 19:56:32 2012
@@ -1,71 +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.
-
--->
-
-<config>
-	<version>
-		<latest>1.0.9</latest>
-	</version>
-	<files>
-	
-		<!-- SDK Installer App binary distribution
-			 Notes: 
-			 	- use full URL when binaries are NOT released yet, else use 
-			 	  path relative to mirror
-			 	- if path is relative, don't use starting slash -->
-		<file name="SDKInstallerApp" path="http://people.apache.org/~bigosmallm/installapacheflex_RC10/binaries/" file="apache-flex-sdk-installer-1.0.9-incubating-bin" />
-		
-		<!-- Mirror URL CGI -->
-		<file name="MirrorURLCGI" path="" file="single-mirror-url.cgi" />
-		
-		<!-- Apache Flex binary distribution
-			 Notes: 
-			 	- path is relative to mirror URL
-			 	- don't use starting slash 
-			 	- for the second and later releases, remove the extension from the file name -->
-		<file name="ApacheFlexSDK" path="incubator/flex/4.8.0-incubating/binaries/" file="apache-flex-sdk-4.8.0-incubating-bin.zip" />
-		
-		<!-- Adobe AIR SDK -->
-		<file name="AdobeAIRSDKWin" path="http://airdownload.adobe.com/air/win/download/3.1/" file="AdobeAIRSDK.zip" />
-		<file name="AdobeAIRSDKMac" path="http://airdownload.adobe.com/air/mac/download/3.1/" file="AdobeAIRSDK.tbz2" />
-		
-		<!-- Adobe Flash Player player global swc -->
-		<file name="FlashPlayer" path="http://fpdownload.macromedia.com/get/flashplayer/updaters/11/" file="playerglobal11_1.swc" />	
-
-		<!-- SWFObject.js -->
-		<file name="swfobject" path="http://swfobject.googlecode.com/files/" file="swfobject_2_2.zip" />	
-		
-		<!-- BlazeDS -->
-		<file name="BlazeDS" path="http://opensource.adobe.com/svn/opensource/flex/sdk/branches/4.y/lib/" file="flex-messaging-common.jar" />	
-		
-		<!-- FontSWF -->
-		<file name="afe" path="http://opensource.adobe.com/svn/opensource/flex/sdk/branches/4.y/lib/" file="afe.jar" />
-		<file name="aglj40" path="http://opensource.adobe.com/svn/opensource/flex/sdk/branches/4.y/lib/" file="aglj40.jar" />
-		<file name="flex-fontkit" path="http://opensource.adobe.com/svn/opensource/flex/sdk/branches/4.y/lib/" file="flex-fontkit.jar" />
-		<file name="rideau" path="http://opensource.adobe.com/svn/opensource/flex/sdk/branches/4.y/lib/" file="rideau.jar" />
-			
-		<!-- OSMF -->
-		<file name="OSMF" path="http://opensource.adobe.com/svn/opensource/flex/sdk/branches/4.y/frameworks/libs/" file="osmf.swc" />	
-		
-		<!-- TLF -->
-		<file name="TLF" path="http://opensource.adobe.com/svn/opensource/flex/sdk/branches/4.y/frameworks/libs/" file="textLayout.swc" />	
-
-	</files>
+<?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.
+
+-->
+
+<config>
+	<version>
+		<latest>1.0.9</latest>
+	</version>
+	<files>
+	
+		<!-- SDK Installer App binary distribution
+			 Notes: 
+			 	- use full URL when binaries are NOT released yet, else use 
+			 	  path relative to mirror
+			 	- if path is relative, don't use starting slash -->
+		<file name="SDKInstallerApp" path="http://people.apache.org/~bigosmallm/installapacheflex_RC10/binaries/" file="apache-flex-sdk-installer-1.0.9-incubating-bin" />
+		
+		<!-- Mirror URL CGI -->
+		<file name="MirrorURLCGI" path="" file="single-mirror-url.cgi" />
+		
+		<!-- Apache Flex binary distribution
+			 Notes: 
+			 	- path is relative to mirror URL
+			 	- don't use starting slash 
+			 	- for the second and later releases, remove the extension from the file name -->
+		<file name="ApacheFlexSDK" path="incubator/flex/4.8.0-incubating/binaries/" file="apache-flex-sdk-4.8.0-incubating-bin.zip" />
+		
+		<!-- Adobe AIR SDK -->
+		<file name="AdobeAIRSDKWin" path="http://airdownload.adobe.com/air/win/download/3.1/" file="AdobeAIRSDK.zip" />
+		<file name="AdobeAIRSDKMac" path="http://airdownload.adobe.com/air/mac/download/3.1/" file="AdobeAIRSDK.tbz2" />
+		
+		<!-- Adobe Flash Player player global swc -->
+		<file name="FlashPlayer" path="http://fpdownload.macromedia.com/get/flashplayer/updaters/11/" file="playerglobal11_1.swc" />	
+
+		<!-- SWFObject.js -->
+		<file name="swfobject" path="http://swfobject.googlecode.com/files/" file="swfobject_2_2.zip" />	
+		
+		<!-- BlazeDS -->
+		<file name="BlazeDS" path="http://opensource.adobe.com/svn/opensource/flex/sdk/branches/4.y/lib/" file="flex-messaging-common.jar" />	
+		
+		<!-- FontSWF -->
+		<file name="afe" path="http://opensource.adobe.com/svn/opensource/flex/sdk/branches/4.y/lib/" file="afe.jar" />
+		<file name="aglj40" path="http://opensource.adobe.com/svn/opensource/flex/sdk/branches/4.y/lib/" file="aglj40.jar" />
+		<file name="flex-fontkit" path="http://opensource.adobe.com/svn/opensource/flex/sdk/branches/4.y/lib/" file="flex-fontkit.jar" />
+		<file name="rideau" path="http://opensource.adobe.com/svn/opensource/flex/sdk/branches/4.y/lib/" file="rideau.jar" />
+			
+		<!-- OSMF -->
+		<file name="OSMF" path="http://opensource.adobe.com/svn/opensource/flex/sdk/branches/4.y/frameworks/libs/" file="osmf.swc" />	
+		
+		<!-- TLF -->
+		<file name="TLF" path="http://opensource.adobe.com/svn/opensource/flex/sdk/branches/4.y/frameworks/libs/" file="textLayout.swc" />	
+
+	</files>
 </config>
\ No newline at end of file

Propchange: incubator/flex/utilities/trunk/installer/src/sdk-installer-config.xml
------------------------------------------------------------------------------
    svn:eol-style = native



Mime
View raw message