VerifyError: Error #1025 or Error from hell

i was trying to read an XML with namespaces and then Flash throw me this weird error

VerifyError: Error #1025: An invalid register 3 was accessed

then we found that was beacuse of these lines (locally declared in a function)

1
2
var ns = ttXML.namespace();
default xml namespace = ns;

the error comes when you try to call some function after those lines in your code

the solution that we found was declare ns variable outside of the function
and then everything works fine =D

This entry was posted in AS3. Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

One Comment

  1. Posted 18 December 2008 at 18:09 | Permalink

    Hi,
    there’s another way (maybe cleaner) so solve this issue:
    just add
    default xml namespace=new Namespace(”");
    after working with the xml object.

    That should eliminate this strange error!

    http://warappa.wordpress.com/2008/12/19/runtime-error-1025-an-invalid-register-was-accessed/

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*