BindingUtils is Flex only - CS3 doesn't have that (I tried along time ago, and I again verified in CS3 help/Flex2 help)
On 8/24/07, Samuel Agesilas <[EMAIL PROTECTED]> wrote: > > I know Flex has the bindable meta tag... but what about Flash CS3? I > kinda thought that the request was for Flash CS3 and not Flex. Maybe > I missed something. > > Matthias, > > I sure hope you don't have to rewrite the XML object if you do then > that binding mechanism is weak in Flex. I'll keep following this > thread and see if anybody has any other ideas. > > :D > > Cheers, > Sam > > On Aug 24, 2007, at 9:01 AM, Matthias Dittgen wrote: > > > Now I directly use XML instead of XMLList, which should be "Bindable". > > But the childnodes are not Bindable, therefore I get still the > > error/warning message. > > Do I seriously have to rewrite the XML into an Bindable ObjectProxy > > containing Bindable child ObjectProxies? > > > > Any help would be appreciated! > > Matthias > > > > <?xml version="1.0" encoding="utf-8"?> > > <mx:Box > > xmlns:mx="http://www.adobe.com/2006/mxml" > > xmlns:rlsk="com.relounge.smartkiosk.*"> > > > > <mx:Script> > > <![CDATA[ > > [Bindable] public var _xml:XML; > > ]]> > > </mx:Script> > > <mx:Tile width="800" height="800"> > > <mx:Repeater id="itemRepeater" > dataProvider="{_xml.element}" > > count="4"> > > <mx:VBox label="{itemRepeater.currentIndex}" > width="200" > > height="100"> > > <mx:Image source="'images/'+ > > [EMAIL PROTECTED]()}" > > /> > > <mx:Label text="{ > itemRepeater.currentItem.description}" > > textAlign="center" /> > > </mx:VBox> > > </mx:Repeater> > > </mx:Tile> > > </mx:Box> > > > > > > 2007/8/24, Matthias Dittgen <[EMAIL PROTECTED]>: > >> it seems I can't access the child elements of a bindable Object. > >> > >> 2007/8/24, Matthias Dittgen <[EMAIL PROTECTED]>: > >>> Hello Chris, > >>> > >>> i tried with Collection, but I don't get into this. > >>> > >>> this is in a seperate .mxml class called Template: > >>> <mx:Script> > >>> <![CDATA[ > >>> import mx.collections.XMLListCollection; > >>> [Bindable] public var _xml:XMLListCollection; > >>> ]]> > >>> </mx:Script> > >>> <mx:Tile width="1120" height="700"> > >>> <mx:Repeater id="itemRepeater" dataProvider="{_xml.list}" > >>> count="4"> > >>> <mx:Label text="{itemRepeater.currentItem.src}" /> > >>> </mx:Repeater> > >>> </mx:Tile> > >>> > >>> this way, I try to acces Template: > >>> var t:Template = new Template() > >>> t._xml = XMLCollection(myXmlList); > >>> addChild(t); > >>> > >>> The error in my console is still the same. :( > >>> Matthias > >>> > >>> 2007/8/24, Chris Velevitch <[EMAIL PROTECTED]>: > >>>> It's because XMLList is like Array, you'll use XMLListCollection > >>>> like > >>>> have to use ArrayCollection to fully utilise binding. > >>>> > >>>> > >>>> Chris > >>>> -- > >>>> Chris Velevitch > >>>> Manager - Sydney Flash Platform Developers Group > >>>> m: 0415 469 095 > >>>> www.flashdev.org.au > >>>> > >>>> _______________________________________________ > >>>> osflash mailing list > >>>> [email protected] > >>>> http://osflash.org/mailman/listinfo/osflash_osflash.org > >>>> > >>> > >> > > > > _______________________________________________ > > osflash mailing list > > [email protected] > > http://osflash.org/mailman/listinfo/osflash_osflash.org > > > _______________________________________________ > osflash mailing list > [email protected] > http://osflash.org/mailman/listinfo/osflash_osflash.org > -- [ JPG ]
_______________________________________________ osflash mailing list [email protected] http://osflash.org/mailman/listinfo/osflash_osflash.org
