"missing intrinsic class issue" good guess. This happened to me upon upgrading to Flash 8. I had to downgrade each instance to an Object and the problem went away.





From: "Andreas Weber" <[EMAIL PROTECTED]>
Reply-To: Flashcoders mailing list <[email protected]>
To: "Flashcoders" <[email protected]>
Subject: [Flashcoders] TreeDataProvider - "There is no method with the name'addTreeNode'"
Date: Wed, 11 Jan 2006 16:13:26 +0100

With a Tree component on stage and this framecode

        var myTreeDP:XML = new XML();
        myTreeDP.addTreeNode("node", 0);

the TreeDataProvider API works fine.

However, the same code in a class

        class Test{
                function Test(){
                        var myTreeDP:XML = new XML();
                        myTreeDP.addTreeNode("node", 0);
                }
        }

instantiated from a .fla that has a Tree component on stage, throws a
compiler error:

        "There is no method with the name 'addTreeNode'"

Is this a missing intrinsic class issue? Workarounds? (don't have any luck
with avoiding the compiler error through Array access syntax: no error, but
no node is added).

Cheers!

--------------
Andreas Weber
motiondraw.com



_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to