This content has been marked as final. Show 6 replies
Mine works- I am using MX 2004. The line in the xtrainfo.txt file for
the XML parser should look like this (beware of inadvertent line feeds):
[#namePPC:"XMLParser PPC Xtra", #nameW32:"XMLParser.X32",
Thanks for the reply. I assumed it was invalid because it gives a 404 error when accessed through a browser.
- When I add it to my list of xtras via Modify > Movie > Xtras, should it appear in the project's xtras directory?
- I get a "Script Error: Handler definition expected" error with the code "xml=new xtra(xmlparser)"
> - When I add it to my list of xtras via Modify > Movie > Xtras, should it
> appear in the project's xtras directory?
No. You can add xtras into a project in 2 different ways. One is to
manually create the xtras folder and add them into it. The other way is
to add it via Modify, Movies, Xtras and tick off the appropriate boxes
in that screen. You do not do both. In the case of a Shockwave movie
that is meant to play in a browser, you do not even get option 1, since
there is no way to make the xtras folder. You just add it in the
Modify, Movies, Xtras and tick the box that says Download if Needed (it
should be set by default)
> - I get a "Script Error: Handler definition expected" error with the code
> "xml=new xtra(xmlparser)"
I think you need to put quotes around the name of the xtra:
Hmm. Well I still get the same error using:
It just doesn't seem to be recognizing the xtra. Don't know why this is giving me so much trouble. I'm unfortunately stuck with using version 8.
OK, re-reading your previous message, the error that you got was "Script
Error: Handler definition expected". That usually means that you are
putting your code in a place where there is no handler. A handler is
like 'on mouseUp' or 'on startMovie'. Make sure that your code is
inside of a handler. If you only want to declare the XML parser script
once, then 'on startMovie' is a good place to put it. In a MOVIE script
(not a behavior), put this:
on startMovie me
Or, if you already have a startMovie handler in your movie, just add
Sweet, it seems to be working now (as in, I'm not getting any errors)! Many thanks for all your help.