Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 07-03-2006, 11:35 AM   #1
Mortimer Jazz
Thing
 
Mortimer Jazz's Avatar
 
Join Date: Jun 2001
Location: UK
Posts: 2,418
Default XML XMLList and binding?

I'm hoping someone can clear up this problem for me...

When i run the Tree example from the Flex2 docs, in Debug mode, i get the following error: "warning: unable to bind to property 'label' on class 'XML' (class is not an IEventDispatcher)". The Flex docs do also say "NOTE You currently cannot use a node within an <mx:XML> data model as a binding source".
http://127.0.0.1:64068/help/nftopic/...49.html#157222
(http://livedocs.macromedia.com/flex/...rols/Tree.html)

Yet the example does seem to work, and the Tree is populated with the label values from the XMLList.

I have now just seen this in the docs:
"XML can be any of the following ... XML, XMLList, or XMLListCollection ... (These tags support data binding)
http://127.0.0.1:64068/help/nftopic/.../00000510.html

I'm a bit confused.
Can anyone help clear this up for me?
__________________
............................
FLEX/FLASH BLOG
Previous Flash Tutorials

............................

Last edited by Mortimer Jazz; 07-13-2006 at 10:16 AM.
Mortimer Jazz is offline   Reply With Quote
Old 07-13-2006, 10:04 AM   #2
hangalot
lala
 
hangalot's Avatar
 
Join Date: Feb 2002
Location: on the road
Posts: 2,858
Default

ok, that would most prob be a one way binbding that also would not replect any changes made to the xml obkject at runtime in the tree. from my experience with the tree in 1.5 (hopefully its been improved) you need to reset the dataprovider the whole time (phleegh!)
__________________
oi poloi
http://www.memorphic.com/news/
hangalot is offline   Reply With Quote
Old 07-13-2006, 10:09 AM   #3
Mortimer Jazz
Thing
 
Mortimer Jazz's Avatar
 
Join Date: Jun 2001
Location: UK
Posts: 2,418
Default

Cheers Hangalot

Doh, what a fool, I just realised I pasted the url to my local files, not the livedoc ones.
__________________
............................
FLEX/FLASH BLOG
Previous Flash Tutorials

............................
Mortimer Jazz is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:22 PM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.