3/31/2011 3:53:11 PM
Title:
flex 4: arraycollections
i just installed flex4 and i 'm getting this problem:
if i use : xmlns:mx="library://ns.adobe.com/flex/halo" - then i can create an arraycollection without any code errors - like [Bindable]private var myArrayCollection:ArrayCollection;
- but i cant create an <mx: datagrid /> mxml tag because it's looking for me to use xmlns:mx="library://ns.adobe.com/flex/mx".
and the opposite is obviously the case : if i use xmlns:mx="library://ns.adobe.com/flex/mx" i cant create arraycollections but can create datagrid mxml tags.
what's going on? pulling my hair out.
mark
4/1/2011 12:01:29 AM
I used following in my application and did not get any such conflict
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/halo" minWidth="1024" minHeight="768">
<fx:Declarations>
<!-- Place non-visual elements (e.g., services, value objects) here -->
</fx:Declarations>
<mx:DataGrid>
</mx:DataGrid>
</s:Application>