MySpace Open Platform

A Place For Developers

Welcome Developers!

in

Welcome!

in

opensocial-actionscript-client

Last post 10-12-2009 12:17 AM by Ellis. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 10-09-2009 3:19 AM

    • Ellis
    • Not Ranked
    • Joined on 09-16-2009
    • Posts 5

    opensocial-actionscript-client

    Hi, I'm embedding a Flash file in the HTML/JavaScript container, and would like to use an API to call opensocial instead of making all the ExternalInterface calls myself.  MySpaceID for AS3 is REST only.  Since I want to use JavaScript, i've found that the latest opensocial JavaScript API for ActionScript is "opensocial-actionscript-client".  I've run into a few problems though.  It seems that MySpace only support 0.8 of opensocial, but this library is for 0.9.  Also, it doesn't have MySpace extensions.  Lastly, I follow the sample to try to use the API, but it doesn't work:

    client = new JsWrapperClient("opensocial.flash");
    client.addEventListener(OpenSocialClientEvent.CLIENT_READY, onReady);
    printer.print("starting client");
    client.start();

    the problem is that onReady never gets called.  I looked into the opensocial-actionscript-client container code, and it's checking to see if "opensocial.flash.jsReady" is set to true, and only then will it continue.  But MySpace's OpenSocial implementation doesn't provide opensocial.flash.  Is this a difference between 0.8 and 0.9?  Will MySpace be providing their own javascript wrapper for ActionScript?

    Regards...

  • 10-12-2009 12:17 AM In reply to

    • Ellis
    • Not Ranked
    • Joined on 09-16-2009
    • Posts 5

    Re: opensocial-actionscript-client

    MySpace is obviously not interested in helping the development community out.  Thanks for nothing guys.

    I found the answer on my own.  When using the javascript wrapper in the opensocial-actionscript-client API in your flash project, the hosting page also needs to include a javascript file.  This file is found in "jswrapper/javascript/opensocial-flashsdk.js" in the client folder.  Things will work after that.

     

Page 1 of 1 (2 items)