Permalink
Browse files

cleaner.

  • Loading branch information...
1 parent c9bb1ec commit ec633b24789be145a9cdf112a6505aee9ef80145 @jubishop committed Jul 29, 2009
Showing with 5 additions and 1 deletion.
  1. +2 −1 fbair/nile/NileContainer.mxml
  2. +3 −0 fbair/server/Fetcher.as
@@ -239,14 +239,15 @@
// Now set data to our new mega-list in .stream
data = event.data.stream;
+
+ // We don't want to allow animating till the next frame...
if (dataCache[CurrentFilter])
addEventListener(Event.ENTER_FRAME, afterUpdatesReturned);
}
private function afterUpdatesReturned(event:Event):void {
removeEventListener(Event.ENTER_FRAME, afterUpdatesReturned);
AnimatedCanvas.Animate = true;
- FBConnect.dispatcher.dispatchEvent(new FBEvent(FBEvent.RESOLVED));
}
// Setting our massive container data (massive, baby, that's what she said)
View
@@ -82,6 +82,9 @@ package fbair.server {
// Called every time we have new updates from the server
private function updatesReturned(event:FBEvent):void {
+ // Dispatch that we're happy
+ FBConnect.dispatcher.dispatchEvent(new FBEvent(FBEvent.RESOLVED));
+
// Now dispatch all of it!
dispatchEvent(new FBEvent(FBEvent.DATA_RECEIVED,
FBAPI.multiqueryByKey(event.data)));

0 comments on commit ec633b2

Please sign in to comment.