cast it.

On 1/11/06, Andreas Weber <[EMAIL PROTECTED]> wrote:
>
> Thanks Devendran -
> This should do it and usually does do it...
>
> However in the context of my project I got the 'no method with the name
> 'addTreeNode' error, no matter in how many even remotely related classes
> I put the import statement.
> Now, after a lot of digging, cursing, ASO file deleting and hair pulling
> I found the culprit:
> I was publishing for Player 7. Published for Player 8 it compiles just
> fine. (Reproducable by publishing the simple test case for Player 7 / 8)
>
> Does not make any sense to me and at the moment I'd really still prefer
> to publish for 7...
>
> Cheers!
> --------------
> Andreas Weber
> motiondraw.com
>
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of
> Devendran I
> Sent: Mittwoch, 11. Januar 2006 17:24
> To: Flashcoders mailing list
> Subject: Re: [Flashcoders] TreeDataProvider - "There is no method with
> thename 'addTreeNode'"
>
>
> 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
>
> _______________________________________________
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>



--
j:pn
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to