Getting Started

Introduction
Welcome to the Getting Started Guide for the Tagarela Jabber Library

Hello World
Before you begin, download the Tagarela Jabber Library on the links above, and start a new Movie.
 * Open Macromedia Director
 * Create a new movie ( File-> New-> Movie )
 * Import the Tagarela Jabber Library on this movie ( go to the Cast Window CTRL+3 -> right click on the cast window -> click on "Import" -> choose the Tagarela.cst file -> Import )

Now, go to the Message Window ( CTRL + M ) and try this
 * Create a new jabber object and connect to the server
 * jabber = new(script "jabber")
 * jabber.connect("jabber.org")
 * Starting the connection stream
 * jabber.jStart
 * Logging in
 * jabber.jLogin("username","password")
 * Sending someone a message
 * jabber.jmessage("ra017335@jabber.org","hello world")
 * Logging out
 * jabber.disconnect

Call Back Model
Shockwave Movies uses typically asynchronous methods to do things, since a method can't block it : the show must go on ! Therefore, Tagarela also works on a asynchronous base, meaning that you will call methods and pre defined receive call backs.

Methods list
These are the list of methods. For each method call, you will receive a call back from a sendAllSprites(#callBack, args), allowing any frame of your movie to receive it.


 * Instant Message and Presence
 * jabber.connect("server")
 * jabber.jStart
 * jabber.jLogin("username","password")
 * jabber.jRoster
 * jabber.jPresence("online")
 * jabber.jMessage("username@server","Hello World !")
 * jabber.jSubscribe("username@server")
 * jabber.jAccept("username@server")
 * jabber.jDecline("username@server")
 * jabber.jRosterRemove("username@server")
 * jabber.disconnect
 * jabber.connected
 * jabber.started
 * jabber.logged
 * In Band Registration
 * jabber.jRegister("username","password")
 * VCard
 * jabber.jGetVCard("username@server")
 * jabber.jSetVCard(vcard)
 * vcard = ["FN":"First Name", "NICKNAME" : "My Nickname", "EMAIL" : "my@email.com", "URL": "http://me.com", "DESC":"My description"]
 * RPC
 * jabber.jRPCCall(#method,"username@server",#callBack,[#args])
 * Service Discovery
 * jabber.jServicesInfo
 * jabber.jServicesItems(node)

Call Back list
To do