1 Reply Latest reply on Aug 9, 2010 9:00 AM by Gurdeep Singh

    Does this work for anybody?

    dmeN Level 5

      Man this is a slow forum... seems not too many using FlashBuilder? If anyone has Builder 4 and the Facebook library with AIR connect v3.4 for Flex installed - could you please check out this simple script. This will just open a NativeWindow containing a Facebook login. On my machine the login and cancel buttons at the bottom are cutoff... and I don't know how to fix this. Have asked everyone I can think of thus far and have not received one reply. If anyone can help I'd really appreciate it. Here's the script:

       

      <fx:Script>

      <![CDATA[

       

       

      import mx.controls.Alert;

       

      import com.facebook.utils.DesktopSessionHelper;

       

      import com.facebook.events.FacebookEvent;

       

       

      private var session:DesktopSessionHelper;

       

      private function init():void

      {

      session =

       

      new DesktopSessionHelper();

      session.apiKey =

      "19a283a9cc1a6603a7cd390a9444b4b7";

      session.login();

      }

       

       

      private function onConnect(e:FacebookEvent):void

      {

       

      if(e.success){

      Alert.show(

      "success","!");

      }

      else{

      Alert.show(

      "failure","!");

      }

      }

      ]]>

       

      </fx:Script>