ActionScript 3.0 :: Xml AppendChild Goes Nuts?

Nov 13, 2009

when copying nodes from one XML object to another using appendChild(), sometimes the copied nodes aren't put at the end of the XML object. I've added a file to test this:

Put a number into the field, ranging from 1 to 3, and click addNode. It copies a specific node (FileID = 1,..3) from one XML object to another, and trace shows the result. If I add 1,2,3,1,2 consecutively, then the last node '2' isn't added at the end of the new XML object, but somewhere in between.
 
I did find a work around by converting the node to a string and then appending that. But the fact that appending an XML node doesn't always put it at the end of the XML object puzzles me. It looks like a bug, doesn't it?

View 5 Replies


Similar Posts:


ActionScript 3.0 :: Xml AppendChild Xml Object?

Aug 4, 2009

I have a major problem I have a xml object that I build on the fly in as I have used appendChild to add simple string node child. However I need to append a child xml object and I get errors.

[Code]...

View 2 Replies

ActionScript 3.0 :: IE/ExternalInterface Do Not Return Any Value If Movie Added With AppendChild?

Sep 8, 2009

There is a problem with IE/ExternalInterface if movie is added to DOM f.ex appendChild. JavaScript functions are called but they do not return any value.MS first response was that this is 3rd party/Adobe problem.Fixing this with innerHTML is not the solution.

Simplified test case has
var flashMovie = '<OBJECT id="testId" codeBase="http://fpdownload..
Works in IE and FF[code]...

View 6 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved