PDA

View Full Version : ActionScript/JavaScript Bridge Released!


Alessandro
03-01-2007, 03:32 PM
We are happy to announce that the SDK for the development of Flash and Flex clients of Lightstreamer is now officially available.

The new SDK contains an ActionScript/JavaScript Bridge that enables any Flash or Flex application based on ActionScript to receive live data from Lightstreamer Server through the Web Client.

The resources included in the SDK comprise the JavaScript and ActionScript parts of the Bridge, together with the jsdoc of the API and some full examples with source code.

The Bridge requires ActionScript 2 or greater, Flash Player 8 or greater and Lightstreamer Web Client 4.1 build 1290 or greater.

The new SDK is available as part of the standard Lightstreamer software distribution from http://www.lightstreamer.com/download.htm.

In the future we will also release a native ActionScript library that will not require the JS Bridge.

Eager to know your feedbacks!

yen_praveen
02-01-2008, 11:43 AM
Hi,
I have gone through the API and when i tried to use it, i faced some compilation problems.Majorly on ExternalInterface.addCallBack() which passes more than 2 parameters.But i could see the Flex API AS2 or AS3 supporting only 2 parameters.

Need suggestions on using the LS Flex/JS brigge API with actual source code of Flash files.

Regards,
Praveen.

Mone
02-04-2008, 10:44 AM
Hello,

The javascript bridge is Javascript/AS2 code.

Note that you don't need to use the addCallback method to use it. Just include the lsjavascriptbridge.as file in your flash code and use the API you find here: http://www.lightstreamer.com/docs/client_flashflexjsbridge_jsdoc/index.html


Note that in AS2 the addCallback method has 3 parameters:
http://livedocs.adobe.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=00002201.html