Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 08-09-2007, 08:46 PM   #1
Registered User
Join Date: Aug 2007
Posts: 32
Default How do i use BindingUtils.bindProperty with XML variables?

this is essentially what im trying to figure out:

var tree:Tree = new Tree();
[Bindable] var my_xml:XML = 
        <node id=1/>
        <node id=2/>

BindingUtils.bindProperty(tree, "dataProvider", this, "my_xml");
This does not work. is it not possible to bind to "dataProvider"? If i wasnt binding, i would have to do this everytime my_xml changed. which is what im trying to avoid
tree.dataProvider = my_xml;

Last edited by magquatre; 08-09-2007 at 09:01 PM.
magquatre is offline   Reply With Quote
Old 08-09-2007, 09:07 PM   #2
Registered User
Join Date: Aug 2007
Posts: 32

Im sorry, i just tested the code below again and it seemed to have worked perfectly fine!

magquatre is offline   Reply With Quote
Old 08-09-2007, 09:23 PM   #3
Assertnfailure's Avatar
Join Date: Dec 2005
Location: LA, California
Posts: 837

This won't save you from having to reassign every time the xml changes. Only ICollectionView objects will work with data binding as a data provider.
Assertnfailure is offline   Reply With Quote

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
xml gallery question tenderfoot ActionScript 2.0 2 01-02-2008 04:24 AM
help loading an xml news entry without clicking first Z0R0 ActionScript 2.0 0 08-09-2007 03:13 AM
using flash to mimic XML vdimercurio ActionScript 2.0 0 08-08-2007 01:49 PM
XML or urlencoded ? fido_glc ActionScript 2.0 0 07-27-2007 12:52 AM
sending xml to asp from flex Daedalus Server-Side Scripting 0 05-03-2007 04:16 PM

All times are GMT. The time now is 06:30 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.