0 Replies Latest reply on May 8, 2011 12:26 AM by forestinsb

    How to get the AS3 SDK for Facebook Platform and the CS SDK to play nice?

    forestinsb

      I tried to combine a very basic Photopshop Panel created with the CS SDK v1.5 and the AS3 Facebook SDK (http://code.google.com/p/facebook-actionscript-api/), but get the following errors when I try to login to Facebook in the Panel.

       

      Error: Error #3200: Cannot perform operation on closed window.

      at Error$/throwError()

      at flash.display::NativeWindow/get bounds()

      at flash.html::HTMLLoader$/createRootWindow()

      at com.facebook.graph.windows::AbstractWindow/showWindow()[C:\Users\MikeHunt\Work\facebookGr aphApi\desktopAPI\com\facebook\graph\windows\AbstractWindow.as:129]

      at com.facebook.graph.windows::LoginWindow/open()[C:\Users\MikeHunt\Work\facebookGraphApi\de sktopAPI\com\facebook\graph\windows\LoginWindow.as:130]

      at com.facebook.graph::FacebookDesktop/login()[C:\Users\MikeHunt\Work\facebookGraphApi\deskt opAPI\com\facebook\graph\FacebookDesktop.as:514]

      at com.facebook.graph::FacebookDesktop$/login()[C:\Users\MikeHunt\Work\facebookGraphApi\desk topAPI\com\facebook\graph\FacebookDesktop.as:161]

      at Test/login()[~/work/code/flash/Test/src/Test.mxml:133]

      at Test/__loginBtn_click()[~/work/code/flash/Test/src/Test.mxml:200]

       

      I tried using csxs:CSXSWindowedApplication, mx:WindowedApplication, and mx:Application. All had the same errors.

       

      Thanks,

      forest