[osflash] Flash CS3 Bindings class anyone?

Matthias Dittgen matthias at dittgen.org
Fri Aug 24 05:05:29 PDT 2007


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 <chris.velevitch at gmail.com>:
> 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
> osflash at osflash.org
> http://osflash.org/mailman/listinfo/osflash_osflash.org
>



More information about the osflash mailing list