We shouldn't need to port any of the LzLoader stuff. <div><br class="webkit-block-placeholder"></div><div>We have LzHTTPLoader, which is the cross platform XML data loader, and it has runtime-specific kernel routines it calls to translate native<div>
XML object s into LFC LzDataXXX objects. The kernel classes are LzXMLTranslator and LzXMLParser. LZXMLParser is responsible for converting strings to native XML objects , and LzXMLTranslator copies a native XML object to LZDataElement tree. </div>
<div><br class="webkit-block-placeholder"></div><div><br class="webkit-block-placeholder"></div><div><br><div class="gmail_quote">On Tue, Apr 1, 2008 at 1:18 PM, P T Withington <<a href="mailto:ptw@openlaszlo.org">ptw@openlaszlo.org</a>> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">This is all low-level AS2-specific hacks that are non-portable. We either need to excise this code or rewrite it portably.<div>
<div></div><div class="Wj3C7c"><br>
<br>
On 2008-03-31, at 17:05 EDT, Philip Romanik wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8x;border-left:1px #ccc solid;padding-left:1ex">
LzLoader in the swf kernel constructs LzDataText and LzDataElement objects directly. I tried to use 'new' but there is some kind of recursion because the app I'm using (amazon) crashes. This is the source of the regression I am seeing because some variables are initialized in the constructor now to prevent swf9 compiler errors.<br>
<br>
I can workaround the issue by defining the initial values in the hash.<br>
<br>
For example, I changed this line,<br>
<br>
lfcnode = {__proto__: LzDataText.prototype, data: nv, parentNode: lfcparent};<br>
<br>
to<br>
<br>
lfcnode = {__proto__: LzDataText.prototype, data: nv, parentNode: lfcparent, nodeType: LzDataNode.TEXT_NODE};<br>
<br>
<br>
I can also conditionally define the variables in LzDataElement and LzDataText, ie: in LzDataText,<br>
<br>
if (!$swf9) {<br>
var nodeType = LzDataNode.TEXT_NODE;<br>
}<br>
<br>
Any thoughts on this?<br>
<br>
Thanks!<br>
<br>
Phil<br>
<br>
</blockquote>
<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Henry Minsky<br>Software Architect<br><a href="mailto:hminsky@laszlosystems.com">hminsky@laszlosystems.com</a><br><br>
</div></div>