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
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to