At 2:19 PM +0100 6/25/01, Paul Bowley wrote:
>Hi all
>
>I'm brand new to Lingo and Director.  Is there a Lingo equivalent of Flash
>5's XML.load?  I want to send an XML stream to a Director movie over HTTP,
>then parse the XML with Lingo.  Is this possible?

Sure.  There are two ways you can do this:

1)  Use getNetText to obtain the XML data.  Use the XML Parser Xtra (which
comes with Director) to parse the XML data and use as needed.

2)  Use an embedded Flash 5 movie (if you are using Director 8.5) and use
the normal XML.load function to obtain and parse the XML data.  Use the
XML.send function to move the data to Director (where it will get a sendXML
event sent to the behavior level.)  Warning:  Director cannot handle quoted
attributes when using this approach (will generate scripting error.)  An
alternative for getting the data into Director after parsing is to use the
Lingo getVariable function.

HTH,
-- 

...---===|  Terry R. Schussler  |===---...
...---===|  Chief Investigator  |===---...

on visitWebsite yourSelection
 coolSites = [ \
   #advancedSeminars : "http://www.macromediaSEMINARS.com/";, \
   #directorUniversity: "http://www.directorU.com";, \
   #multiuserUniversity: "http://www.multiuserU.com";, \
   #flashUniversity: "http://www.flash5U.com";, \
   #freeBehaviors : "http://www.behaviors.com/";]
 gotoNetPage coolSites[yourSelection]
end visitWebsite


[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/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