[Flashcoders] TreeDataProvider - There is no method with the name 'addTreeNode'

2006-01-11 Thread Andreas Weber
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


Re: [Flashcoders] TreeDataProvider - There is no method with the name 'addTreeNode'

2006-01-11 Thread Devendran I
Hi
   
  use this code in your Class file
  import mx.controls.Tree;
   
   
  And then compile the Movie.
   
   
  Devendran.I
   
  

Andreas Weber [EMAIL PROTECTED] wrote:
  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
  



-
Yahoo! Photos
 Got holiday prints? See all the ways to get quality prints in your hands ASAP.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders