Ask a Question related to Macromedia Director Lingo, Design and Development.
-
Kyriakos #1
problematic behaviour of movies using XML parser scripts in shockwave - !!!
hi, all!
we are in the process of testing XML parsing in shockwave and
publishing some movies on the internet, that all of them use the XML
parser scripts from shocknet ([url]www.shocknet.org.uk[/url])
The problem is that all the movies seem to show problematic behaviour
(explaining below) when trying to play them locally or from the
internet.
When we publish a movie we test it on several pc's to see if it works.
Here is what happens:
Local
=====
PC 1: Movie works fine
PC 2: Movie stops loading and stays on the first frame
PC 3: Movie stops loading and stays on the first frame
PC 4: Works fine
Internet
=====
PC 1: Movie works fine in IE
PC 2: Movie doesn't work in IE, works in Mozilla!
PC 3: Movie doesn't work at all
PC 4: Movie works in IE
we believe the xml file (which is in the dswmedia folder under the
movie) is not parsed right (or even at all??) on some occasions and we
don't know why. Can it be a problem with the paths? We tried to change
slashes to backslashes, or even put the xml file in the same folder
with the movie, but with no results
In the parseDone script, the makeList function produces an empty
property list
Below I include the startmovie script.
------------------
global gParserObject, XMLParsedList, thePhotoName, myCurrentItemList
on startMovie
openXML("@\dswmedia\thefile.xml")
end
on restartMovie ()
set the visible of sprite 130 to true
set the visible of sprite 30 to false
myCurrentItemList = [4,5,6]
SumCubes = XMLParsedList[1][2].count-1
NumLexh = random(SumCubes)+1
thePhotoName = XMLParsedList[1][2][NumLexh][2][2]
theRightAnswer = XMLParsedList[1][2][NumLexh][3][2]
thewrongAnswer1 = XMLParsedList[1][2][NumLexh][4][2]
thewrongAnswer2 = XMLParsedList[1][2][NumLexh][5][2]
theFilename = "@/dswmedia/cubes/" & thePhotoName
member(1, "internal").filename = theFilename
member("r1").text = theRightAnswer
member("r2").text = thewrongAnswer1
member("r3").text = thewrongAnswer2
go to the frame+1
end
on openXML TheFilename
set the visible of sprite 130 to true
gParserObject = ""
gParserObject = new(script"xml.parser") -----!!!!!
errorCode = gParserObject.parseURL(TheFilename, "parseDone")
-- CheckError()
end
on ParseDone
CheckError()
XMLParsedList = gParserObject.makeList()
If XMLParsedList = [:] or VoidP(XMLParsedList) then
alert("XML Not Read")
abort
end if
restartMovie()
end
on CheckError
if (voidP(gParserObject.getError())) then
Alert("Parse error:" & gParserObject.getError())
abort
end if
end
on StopMovie
gParserObject = ""
end
---------------
thanks very much in advance!
Kyriakos Terzopoulos
Conceptum S.A.
Kyriakos Guest
-
Shockwave movies won't load
When I go to websites with Shockwave movies, they won't load. All I will see is the progress bar, empty, and STAYING empty. I have the latest... -
Pointer disappear in 3D shockwave movies
Hi everybody, I have a 3D multiplayer game (a Shockwave soccer-like game) in a Spanish Portal (mundijuegos.com). Some of our users have report... -
Parent scripts and shockwave
I am a advanced developer in Lingo but rather new to shockwave. In a new shockwave project, I encountered 2 basic problems: 1. In an on prepareMovie... -
linked shockwave movies not visible in browser
Hope you can help. I have imported several shockwave movies, as castmembers, hoping to use them as castmembers instead of making one long movie.... -
How to pass global variables in shockwave movies?
Hi. Does anyone know how to pass global variables in shockwave movies? As I have many movies jumping from one to another, how I can make the other...



Reply With Quote

