Evaldas Taroza wrote:
Hi,

I am starting with OL. I decided to create a simple chat application, based on XMPP, in order to play a bit with OL. In XMPP peers normally communicate using sockets, so the chat would leverage the flash runtime only.

However, everywhere I try to find out how to do flash stuff with OL I stumble on comments that I should consider using Actionscript and Flex instead, because the power of OL is the portability...

I really want to play with OL, but apparently I will need to reach some flash related interfaces. Moreover, there are libraries like XIFF written in Actionscript.

So several questions:
1. Considering that I need only flash runtime how can I use available Actionscript libraries inside my LZX scripts?

There is a <script/> tag that you can use to embed existing scripts.

2. Is it reasonable to choose OL for my described app? Maybe Flex is a better choice?

OpenLaszlo will work fine.

3. How much flash API can I reach from OL scripts? How can I export flash APIs to be available in OL?

The drawview tag is a good example of integrating Laszlo with actionscript. It exposes the Actionscript drawing APIs as OpenLaszlo methods. It's built into the distribution and can be found here:

http://svn.openlaszlo.org/openlaszlo/trunk/lps/components/extensions/drawview.lzx

Thanks for help.

Evaldas


--
Regards,
Max Carlson
OpenLaszlo.org

Reply via email to