Because we turn the mixin into an interface and interfaces are not allowed to have properties. I guess this is why Java makes you always write getters and setters. Bleah.

Can't think of an easy way around this off the top of my head other than to say `node['nodeType']` for now.

On 2008-07-19, at 09:20EDT, Henry Minsky wrote:

I've got this code which gets a flex compiler error when compiling in swf9:

public static function xmlrpc2jsobj (node:LzDataNodeMixin):* {
       if ( node.nodeType == LzDataElement.TEXT_NODE ){


org.openlaszlo.sc.CompilerError: line unknown: Error: Access of
possibly undefined property nodeType through a reference with static
type LzDataNodeMixin, in line: if ($1.nodeType ==
LzDataElement.TEXT_NODE) {

Why  does it not let me reference the nodeType of my 'node'? What is a
"static type"?




--
Henry Minsky
Software Architect
[EMAIL PROTECTED]

Reply via email to