Permalink
Browse files

Going live.

  • Loading branch information...
0 parents commit 57f38e4617903a20cc4f9c4e24998297f63b6263 @jubishop committed May 3, 2009
Showing with 10,189 additions and 0 deletions.
  1. +5 −0 .gitignore
  2. +69 −0 ApplicationBase.as
  3. +129 −0 app.xml
  4. +256 −0 com/adobe/crypto/MD5.as
  5. +88 −0 com/adobe/serialization/json/JSON.as
  6. +218 −0 com/adobe/serialization/json/JSONDecoder.as
  7. +302 −0 com/adobe/serialization/json/JSONEncoder.as
  8. +90 −0 com/adobe/serialization/json/JSONParseError.as
  9. +107 −0 com/adobe/serialization/json/JSONToken.as
  10. +70 −0 com/adobe/serialization/json/JSONTokenType.as
  11. +552 −0 com/adobe/serialization/json/JSONTokenizer.as
  12. +69 −0 com/adobe/utils/IntUtil.as
  13. BIN com/adobe/utils/IntUtil.as.cpgz
  14. BIN docs/fdfa.graffle/QuickLook/Preview.pdf
  15. BIN docs/fdfa.graffle/QuickLook/Thumbnail.tiff
  16. +1,782 −0 docs/fdfa.graffle/data.plist
  17. BIN docs/fdfa.graffle/image1.png
  18. +153 −0 fb/FBAPI.as
  19. +278 −0 fb/FBConnect.as
  20. +40 −0 fb/FBEvent.as
  21. +23 −0 fb/FBSession.as
  22. +55 −0 fb/display/FBAuthDialog.as
  23. +187 −0 fb/display/FBDialog.mxml
  24. +60 −0 fb/display/FBPermDialog.as
  25. +75 −0 fb/display/LoadAnimation.as
  26. +51 −0 fb/display/WindowBase.as
  27. +110 −0 fb/net/FBPost.as
  28. +107 −0 fb/net/JSONLoader.as
  29. +62 −0 fb/net/RedirectTester.as
  30. +251 −0 fbair.mxml
  31. BIN fbair/assets/app_icon.png
  32. BIN fbair/assets/blue_button.png
  33. BIN fbair/assets/blue_button_disabled.png
  34. BIN fbair/assets/blue_button_down.png
  35. BIN fbair/assets/comment.png
  36. BIN fbair/assets/composer_textarea.png
  37. BIN fbair/assets/connect_logo.png
  38. BIN fbair/assets/delete.png
  39. BIN fbair/assets/delete_dark.png
  40. BIN fbair/assets/delete_dark_over.png
  41. BIN fbair/assets/delete_over.png
  42. BIN fbair/assets/fblogo.png
  43. BIN fbair/assets/icons/icon_128.png
  44. BIN fbair/assets/icons/icon_16.png
  45. BIN fbair/assets/icons/icon_32.png
  46. BIN fbair/assets/icons/icon_48.png
  47. BIN fbair/assets/install_badge.png
  48. BIN fbair/assets/like.png
  49. BIN fbair/assets/photo_frame.png
  50. BIN fbair/assets/photo_frame_over.png
  51. BIN fbair/assets/plus.png
  52. BIN fbair/assets/plus_down.png
  53. BIN fbair/assets/scroll_handle.png
  54. BIN fbair/assets/scroll_well.png
  55. BIN fbair/assets/shrink_ufi.png
  56. BIN fbair/assets/shrink_ufi_over.png
  57. BIN fbair/assets/tab_active.png
  58. BIN fbair/assets/tab_out.png
  59. BIN fbair/assets/tab_over.png
  60. BIN fbair/assets/ufi-high.png
  61. BIN fbair/assets/ufi-low.png
  62. BIN fbair/assets/video_badge.png
  63. +149 −0 fbair/composer/Composer.mxml
  64. +94 −0 fbair/gui/LoadingIndicator.mxml
  65. +90 −0 fbair/gui/RoundedProfileImage.mxml
  66. +59 −0 fbair/gui/StylePrefs.as
  67. +95 −0 fbair/gui/filters/FilterTab.mxml
  68. +274 −0 fbair/gui/filters/FiltersBar.mxml
  69. +45 −0 fbair/gui/filters/FiltersMenu.mxml
  70. +51 −0 fbair/gui/filters/FiltersMenuItem.mxml
  71. +121 −0 fbair/gui/skins/FBAIRSkin.as
  72. +161 −0 fbair/nile/Nile.mxml
  73. +447 −0 fbair/nile/NileContainer.mxml
  74. +72 −0 fbair/nile/renderers/ActionRow.mxml
  75. +76 −0 fbair/nile/renderers/AttachmentRenderer.mxml
  76. +148 −0 fbair/nile/renderers/CommentBox.mxml
  77. +111 −0 fbair/nile/renderers/CommentRenderer.mxml
  78. +306 −0 fbair/nile/renderers/CommentsRenderer.mxml
  79. +148 −0 fbair/nile/renderers/LikesRenderer.mxml
  80. +51 −0 fbair/nile/renderers/MediaItem.mxml
  81. +273 −0 fbair/nile/renderers/NileRenderer.mxml
  82. +189 −0 fbair/nile/renderers/UFI.mxml
  83. +12 −0 fbair/styles/composer.css
  84. +122 −0 fbair/styles/filters.css
  85. +100 −0 fbair/styles/global.css
  86. +9 −0 fbair/styles/nile.css
  87. +211 −0 fbair/styles/renderers.css
  88. +50 −0 fbair/styles/size_large.css
  89. +21 −0 fbair/styles/size_small.css
  90. +127 −0 fbair/util/CommentCache.as
  91. +134 −0 fbair/util/FBUpdater.as
  92. +36 −0 fbair/util/FileUtil.as
  93. +68 −0 fbair/util/MathUtil.as
  94. +94 −0 fbair/util/Output.as
  95. +156 −0 fbair/util/ProfileCache.as
  96. +99 −0 fbair/util/StringUtil.as
  97. +73 −0 fbair/util/TimeUtil.as
  98. +170 −0 fbair/util/display/AnimatedCanvas.as
  99. +121 −0 fbair/util/display/FBButton.as
  100. +53 −0 fbair/util/display/GrowableTextArea.as
  101. +81 −0 fbair/util/display/LinkImage.as
  102. +47 −0 fbair/util/display/LinkLabel.as
  103. +47 −0 fbair/util/display/LinkText.as
  104. +38 −0 fbair/util/display/SmoothImage.as
  105. +79 −0 fbair/util/display/SpritedImage.as
  106. +84 −0 fbair/util/display/StubbornImage.as
  107. +1 −0 run
  108. +7 −0 test
@@ -0,0 +1,5 @@
+*.swf
+*.air
+*.cache
+certs
+build
@@ -0,0 +1,69 @@
+/*
+ Copyright Facebook Inc.
+
+ Licensed 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 {
+ import flash.data.EncryptedLocalStore;
+ import flash.events.Event;
+ import flash.utils.ByteArray;
+
+ import mx.core.Container;
+ import mx.core.ScrollPolicy;
+ import mx.core.WindowedApplication;
+
+ public class ApplicationBase extends WindowedApplication {
+ // Our app id
+ public static const AppID:Number = 75647677556;
+
+ public function ApplicationBase() {
+ layout = "absolute";
+ showGripper = showStatusBar = false;
+ addEventListener(Event.ADDED, added);
+ }
+
+ private function added(event:Event):void {
+ clean(event.target);
+ }
+
+ private function clean(container:*):void {
+ if (container == this) return;
+
+ // Automagic scrollbars and masks in flex cause so much pain
+ // and trouble, that we're going to remove them for all
+ // containers added to our application. Take that, flex!
+ if (container is Container) {
+ container.clipContent = false;
+ container.horizontalScrollPolicy =
+ container.verticalScrollPolicy = ScrollPolicy.OFF;
+
+ for (var i:int = 0; i < container.numChildren; i++)
+ clean(container.getChildAt(i));
+ }
+ }
+
+ // We manage locally stored preferences with these functions
+ public static function getPreference(prefName:String):Object {
+ var bytes:ByteArray = EncryptedLocalStore.getItem(prefName);
+ if (!bytes) return null;
+ return bytes.readObject();
+ }
+
+ public static function setPreference(prefName:String,
+ prefObject:Object):void {
+ var bytes:ByteArray = new ByteArray();
+ bytes.writeObject(prefObject);
+ EncryptedLocalStore.setItem(prefName, bytes);
+ }
+ }
+}
129 app.xml
@@ -0,0 +1,129 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<application xmlns="http://ns.adobe.com/air/application/1.5">
+
+<!-- Adobe AIR Application Descriptor File Template.
+
+ Specifies parameters for identifying, installing, and launching AIR applications.
+
+ xmlns - The Adobe AIR namespace: http://ns.adobe.com/air/application/1.5
+ The last segment of the namespace specifies the version
+ of the AIR runtime required for this application to run.
+
+ minimumPatchLevel - The minimum patch level of the AIR runtime required to run
+ the application. Optional.
+-->
+
+ <!-- The application identifier string, unique to this application. Required. -->
+ <id>FBAIR</id>
+
+ <!-- Used as the filename for the application. Required. -->
+ <filename>Facebook for Adobe AIR</filename>
+
+ <!-- The name that is displayed in the AIR application installer.
+ May have multiple values for each language. See samples or xsd schema file. Optional. -->
+ <name>Facebook for Adobe AIR</name>
+
+ <!-- An application version designator (such as "v1", "2.5", or "Alpha 1"). Required. -->
+ <version>0.73</version>
+
+ <!-- Description, displayed in the AIR application installer.
+ May have multiple values for each language. See samples or xsd schema file. Optional. -->
+ <description>Facebook for Adobe AIR</description>
+
+ <!-- Copyright information. Optional -->
+ <copyright>Facebook 2009</copyright>
+
+ <!-- Settings for the application's initial window. Required. -->
+ <initialWindow>
+ <!-- The main SWF or HTML file of the application. Required. -->
+ <!-- Note: In Flex Builder, the SWF reference is set automatically. -->
+ <content>fbair.swf</content>
+
+ <!-- The title of the main window. Optional. -->
+ <title></title>
+
+ <!-- The type of system chrome to use (either "standard" or "none"). Optional. Default standard. -->
+ <systemChrome>standard</systemChrome>
+
+ <!-- Whether the window is transparent. Only applicable when systemChrome is none. Optional. Default false. -->
+ <transparent>false</transparent>
+
+ <!-- Whether the window is initially visible. Optional. Default false. -->
+ <visible>false</visible>
+
+ <!-- Whether the user can minimize the window. Optional. Default true. -->
+ <minimizable>true</minimizable>
+
+ <!-- Whether the user can maximize the window. Optional. Default true. -->
+ <maximizable>true</maximizable>
+
+ <!-- Whether the user can resize the window. Optional. Default true. -->
+ <resizable>true</resizable>
+
+ <!-- The window's initial width. Optional. -->
+ <width>380</width> <!-- was 366 -->
+
+ <!-- The window's initial height. Optional. -->
+ <height>700</height>
+
+ <!-- The window's initial minimum size, specified as a width/height pair, such as "400 200". Optional. -->
+ <minSize>380 350</minSize>
+
+ <!-- The window's initial maximum size, specified as a width/height pair, such as "1600 1200". Optional. -->
+ <maxSize>380 3200</maxSize>
+ </initialWindow>
+
+ <!-- The subpath of the standard default installation location to use. Optional. -->
+ <!-- <installFolder></installFolder> -->
+
+ <!-- The subpath of the Programs menu to use. (Ignored on operating systems without a Programs menu.) Optional. -->
+ <!-- <programMenuFolder></programMenuFolder> -->
+
+ <!-- The icon the system uses for the application. For at least one resolution,
+ specify the path to a PNG file included in the AIR package. Optional. -->
+ <icon>
+ <image16x16>fbair/assets/icons/icon_16.png</image16x16>
+ <image32x32>fbair/assets/icons/icon_32.png</image32x32>
+ <image48x48>fbair/assets/icons/icon_48.png</image48x48>
+ <image128x128>fbair/assets/icons/icon_128.png</image128x128>
+ </icon>
+
+ <!-- Whether the application handles the update when a user double-clicks an update version
+ of the AIR file (true), or the default AIR application installer handles the update (false).
+ Optional. Default false. -->
+ <!-- <customUpdateUI></customUpdateUI> -->
+
+ <!-- Whether the application can be launched when the user clicks a link in a web browser.
+ Optional. Default false. -->
+ <allowBrowserInvocation>true</allowBrowserInvocation>
+
+ <!-- Listing of file types for which the application can register. Optional. -->
+ <!-- <fileTypes> -->
+
+ <!-- Defines one file type. Optional. -->
+ <!-- <fileType> -->
+
+ <!-- The name that the system displays for the registered file type. Required. -->
+ <!-- <name></name> -->
+
+ <!-- The extension to register. Required. -->
+ <!-- <extension></extension> -->
+
+ <!-- The description of the file type. Optional. -->
+ <!-- <description></description> -->
+
+ <!-- The MIME content type. -->
+ <!-- <contentType></contentType> -->
+
+ <!-- The icon to display for the file type. Optional. -->
+ <!-- <icon>
+ <image16x16></image16x16>
+ <image32x32></image32x32>
+ <image48x48></image48x48>
+ <image128x128></image128x128>
+ </icon> -->
+
+ <!-- </fileType> -->
+ <!-- </fileTypes> -->
+
+</application>
Oops, something went wrong.

0 comments on commit 57f38e4

Please sign in to comment.