hi

i've searched, found and read lot's of articles/emails about using the flash XMLSocket and XMLObject objects in director, but find it very hard to get started with using those.
also i can't find any straight forward examples about this online.


what i want is just send some xml to a server, and listen for XML from the server.
i managed to create an XMLSocket and XMLObject in lingo (from the message-window),
i manage to populate the XMLObject with xml,
i manage to connect the Socket (or better, it reports true/1 when i let it connects... is it then?)
but when i try sending the XML, the server doesn't recieve anything.
i'm using nc (netcat) as a server to test locally (osx)


also, i want to use a global Flash object (so not using a flash-member),
but somehow i can't get it working in a script.
when i instantiate an XMLSocket in the message window
> sok=newObject("XMLSocket")
sok contains a <FLASH OBJECT xxxx>, that appears to be a valid socket object,
but the same code in a script results in an [Object object],
which isn't an XMLSocket..


next to that, how do i install the callback function for the XMLSocket
(if i manage to get around the previous problems..)


if anyone could shed any light on this subject, or maybe even point me in the direction of some examples, i would be very greatfull!




thanks
arri

[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi To post messages to the list, email [email protected] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo. Thanks!]

Reply via email to