Modified:
/trunk/Snackr/.actionScriptProperties
/trunk/Snackr/.flexProperties
/trunk/Snackr/src/Snackr-app.xml
/trunk/Snackr/src/ui/popups/OptionsPopup.mxml
/trunk/Snackr/src/ui/utils/UIUtils.as
=======================================
--- /trunk/Snackr/.actionScriptProperties Fri Jun 4 16:40:24 2010
+++ /trunk/Snackr/.actionScriptProperties Sat Jun 5 11:57:49 2010
@@ -1,4 +1,4 @@
-<?xml version="1.0" encoding="UTF-8"?>
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<actionScriptProperties mainApplicationPath="Snackr.mxml"
projectUUID="512c88b8-e2b5-4042-bd85-ed8a0402fae2" version="6">
<compiler additionalCompilerArguments="-locale en_US"
autoRSLOrdering="false" copyDependentFiles="true" flex3CompatMode="true"
fteInMXComponents="false" generateAccessible="false"
htmlExpressInstall="true" htmlGenerate="false"
htmlHistoryManagement="false" htmlPlayerVersionCheck="true"
includeNetmonSwc="false" outputFolderPath="bin-debug"
sourceFolderPath="src" strict="true" targetPlayerVersion="0.0.0"
useApolloConfig="true" useDebugRSLSwfs="true" verifyDigests="true"
warn="true">
<compilerSourcePath/>
=======================================
--- /trunk/Snackr/.flexProperties Fri Jun 4 16:40:24 2010
+++ /trunk/Snackr/.flexProperties Sat Jun 5 11:57:49 2010
@@ -1,2 +1,2 @@
-<?xml version="1.0" encoding="UTF-8"?>
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<flexProperties enableServiceManager="false" flexServerFeatures="0"
flexServerType="0" toolCompile="true" useServerFlexSDK="false" version="1"/>
=======================================
--- /trunk/Snackr/src/Snackr-app.xml Mon Jul 21 22:02:57 2008
+++ /trunk/Snackr/src/Snackr-app.xml Sat Jun 5 11:57:49 2010
@@ -28,7 +28,7 @@
USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-->
-<application xmlns="http://ns.adobe.com/air/application/1.0">
+<application xmlns="http://ns.adobe.com/air/application/1.5">
<!-- Adobe AIR Application Descriptor File Template.
@@ -53,13 +53,13 @@
<name>Snackr</name>
<!-- An application version designator (such as "v1", "2.5", or "Alpha
1"). Required. -->
- <version>v0.38 TEST</version>
+ <version>v0.4</version>
<!-- Description, displayed in the AIR application installer. Optional.
-->
<description>A ticker that displays random items from your favorite RSS
feeds.</description>
<!-- Copyright information. Optional -->
- <copyright>Copyright (c) 2008 Narciso Jaramillo
+ <copyright>Copyright (c) 2008-2010 Narciso Jaramillo
All rights reserved.
Redistribution and use in source and binary forms, with or without
=======================================
--- /trunk/Snackr/src/ui/popups/OptionsPopup.mxml Fri Jun 4 16:40:24 2010
+++ /trunk/Snackr/src/ui/popups/OptionsPopup.mxml Sat Jun 5 11:57:49 2010
@@ -763,7 +763,7 @@
Google Reader integration was contributed by <a
href="http://usereccentric.com"><font color="#A0A0FF">Rob
Adams</font></a>.<br>
Other contributions by Justin Patrin and Matthew M. Boedicker.</p>
<p> </p>
- <p>Copyright (c) 2008 Narciso Jaramillo<br>
+ <p>Copyright (c) 2008-2010 Narciso Jaramillo<br>
All rights reserved.</p>
<p> </p>
<p>Redistribution and use in source and binary forms, with or
without
=======================================
--- /trunk/Snackr/src/ui/utils/UIUtils.as Sun Nov 30 15:39:09 2008
+++ /trunk/Snackr/src/ui/utils/UIUtils.as Sat Jun 5 11:57:49 2010
@@ -53,11 +53,6 @@
static public const SIDE_LEFT: Number = 2;
static public const SIDE_RIGHT: Number = 3;
- /**
- * The namespace of the AIR application XML file schema.
- */
- namespace airAppNS = "http://ns.adobe.com/air/application/1.0";
-
static public function drawSpeechBalloon(graphics: Graphics,
pointerSide: Number, bounds: Rectangle, pointerPos: Number,
pointerWidth: Number, pointerHeight: Number): void {
graphics.lineStyle();
@@ -242,12 +237,17 @@
str = str.replace("&", "&");
return str;
}
+
+ static private function getDescriptorNamespace(): Namespace {
+ return
NativeApplication.nativeApplication.applicationDescriptor.namespace();
+ }
/**
* Returns the name of the application ("Snackr", of course!)
*/
static public function get appName(): String {
- return
NativeApplication.nativeApplication.applicationDescriptor.airAppNS::name;
+ var ns: Namespace = getDescriptorNamespace();
+ return
NativeApplication.nativeApplication.applicationDescriptor.ns::name;
}
/**
@@ -256,15 +256,16 @@
* front before using it for numeric version comparisons.
*/
static public function get appVersion(): String {
- return
NativeApplication.nativeApplication.applicationDescriptor.airAppNS::version;
+ var ns: Namespace = getDescriptorNamespace();
+ return
NativeApplication.nativeApplication.applicationDescriptor.ns::version;
}
/**
* URL to the Snackr application icon.
*/
static public function get appIconURL(): String {
- use namespace airAppNS;
- var iconFile: File =
File.applicationDirectory.resolvePath(NativeApplication.nativeApplication.applicationDescriptor.icon.image48x48);
+ var ns: Namespace = getDescriptorNamespace();
+ var iconFile: File =
File.applicationDirectory.resolvePath(NativeApplication.nativeApplication.applicationDescriptor.ns::icon.ns::image48x48);
return iconFile.url;
}
@@ -272,8 +273,8 @@
* URL to the small version of the Snackr icon.
*/
static public function get appSmallIconURL(): String {
- use namespace airAppNS;
- var iconFile: File =
File.applicationDirectory.resolvePath(NativeApplication.nativeApplication.applicationDescriptor.icon.image16x16);
+ var ns: Namespace = getDescriptorNamespace();
+ var iconFile: File =
File.applicationDirectory.resolvePath(NativeApplication.nativeApplication.applicationDescriptor.ns::icon.ns::image16x16);
return iconFile.url;
}
}