[Laszlo-dev] why does the compiler give an error if I ask for the nodeType of a data node in as3

Donald Anderson dda at ddanderson.com
Sat Jul 19 07:31:19 PDT 2008


I think the problem is that 'LzDataNodeMixin' as a type becomes an  
interface,
and interfaces can have no data members.  When LzDataNodeMixin is  
mixed into
a class, you get the data elements, but none of them can be seen  
externally
(through the interface).

On Jul 19, 2008, at 9:20 AM, 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
> hminsky at laszlosystems.com


--

Don Anderson
Java/C/C++, Berkeley DB, systems consultant

voice: 617-547-7881
email: dda at ddanderson.com
www: http://www.ddanderson.com



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.openlaszlo.org/pipermail/laszlo-dev/attachments/20080719/8f696108/attachment.html


More information about the Laszlo-dev mailing list