soledad penadés
repeat 4[fd 100 rt 90]

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

If you need to parse some XML with namespaces in ActionScript 3 you may find this error quite soon: VerifyError: Error #1025: An invalid register 1 was accessed

It all comes because of this line:

default xml namespace = myXML.namespace();

It is needed in order to access the values in the namespaced value so removing it is not an option. The problem appears when you call any other function in your object… and you get that weird error.

I haven't managed to find out why. It kind of seems that changing the namespace (as the very example from Flash's reference on how to read an RSS feed suggests) also alters the namespace of later function calls, and so the interpreter can't find the functions.

I found the simplest solution was to reset the namespace back to nothing when I was done with accessing the XML:

default xml namespace = new Namespace(");

There should be an explanation for this but I haven't yet found it. Meanwhile this can save your life :-)

// 9 responses to VerifyError: Error #1025: An invalid register 1 was accessed

Tomek
Tomek
20071218

Your note did save my life! Thank you!

(I visited Valencia some time ago - I have nice memories…)

Cheers,

tomek

sole
sole
20071218

I'm glad that helped you :-)

Tim
Tim
20080207

Thanks for you help. I'm not going to say it saved my life, but it is going to save me some much needed sleep which I appreciate very much. Thanks from a tired student.:)

Tim

sole
sole
20080211

It's great to hear that helped you to save some hours of sleep - because sleeping is sooo good!! :-)

jmc
jmc
20080226

Another life saved … Thank's for all.

sole
sole
20080226

/me begins to feel flattered :-$

Tom
Tom
20080429

You just saved another life! I was going nuts over this! Thank you!

chris
chris
20080825

u are bookmarked !!! :)

thanks

solver
solver
20080924

YEA!

bookmarked! :)

thx.

Feel free to leave a reply

Comments are moderated: Rude and offtopic ones are out!