Skip to content
This repository
Browse code

cleaner.

  • Loading branch information...
commit ec633b24789be145a9cdf112a6505aee9ef80145 1 parent c9bb1ec
Justin Bishop authored
3  fbair/nile/NileContainer.mxml
@@ -239,6 +239,8 @@
239 239
 
240 240
       // Now set data to our new mega-list in .stream
241 241
       data = event.data.stream;
  242
+      
  243
+      // We don't want to allow animating till the next frame...
242 244
       if (dataCache[CurrentFilter])
243 245
         addEventListener(Event.ENTER_FRAME, afterUpdatesReturned);
244 246
     }
@@ -246,7 +248,6 @@
246 248
     private function afterUpdatesReturned(event:Event):void {
247 249
       removeEventListener(Event.ENTER_FRAME, afterUpdatesReturned);
248 250
       AnimatedCanvas.Animate = true;
249  
-      FBConnect.dispatcher.dispatchEvent(new FBEvent(FBEvent.RESOLVED));
250 251
     }
251 252
 
252 253
     // Setting our massive container data (massive, baby, that's what she said)
3  fbair/server/Fetcher.as
@@ -82,6 +82,9 @@ package fbair.server {
82 82
 
83 83
     // Called every time we have new updates from the server
84 84
     private function updatesReturned(event:FBEvent):void {
  85
+      // Dispatch that we're happy
  86
+      FBConnect.dispatcher.dispatchEvent(new FBEvent(FBEvent.RESOLVED));
  87
+
85 88
       // Now dispatch all of it!
86 89
       dispatchEvent(new FBEvent(FBEvent.DATA_RECEIVED,
87 90
         FBAPI.multiqueryByKey(event.data)));

0 notes on commit ec633b2

Please sign in to comment.
Something went wrong with that request. Please try again.