I'm using Director 11.5. This code works fine in the debugging/development mode, but as soon as I put it into a projector, I get an error. The code reads:
gXML = newObject("XML")
Using the _player.debugPlaybackEnabled = TRUE, I can see that the first line is where the script gives the error. I have the XMLParser.x32 included in my projector. The projector is running on Windows 7.
So everything runs fine and all code executes when running in development mode. As soon as I create a projector and run it, I receive the error:
"Handler not defined
Script Error: Continue?"
Any advice on how to get this corrected?
Thanks in advance!
newObject is actually a Flash method, so you will also need to include the Flash Asset Xtra in / alongside your projector.
(Because you are creating a scripted global object rather than using a Flash sprite, the xtra is not added automatically to your movie xtras.)