Blog to discuss Midnight Coders products features, ideas and trends in development of Rich Internet Applications

Wednesday, January 17, 2007

Invoke client ActionScript functions from the server side

Invoking a server-side method from a Flex/Flash client is a very common task and Flex/Flash Remoting addresses it nicely. However, the reverse invocation (from server to client) is not straightforward, if not impossible. WebORB Enterprise Edition 3.0 provides a very simple API for invoking client-side ActionScript functions from the .NET code. There is a new article on our website describing the API. The article includes full source code listings as well as a live example demonstrating the approach.

You can access the article at:
http://www.themidnightcoders.com/articles/invokeflexclientfromserver.htm

The example in the article is simple, yet very demonstrative of the described functionality. It shows a Flex client with a few AS functions invoked from .NET. Any time any other client connects or disconnects to/from the server application, server application handler invokes AS functions on all connected clients to notify of the events.

0 Comments:

Post a Comment

<< Home