views:

194

answers:

1

Hi,

from video on AdobeTV I tied to play with example empWeb (LiveCycle Data Services). In Flex Builder 3 (FB3) all works fine. When I tried this on Flash Builder Beta (FB4) it don't work. When I replaced original xmlns declarations (2009, spark, halo) by declarations from FB3 (2006) it works. Could you explain why ?

Thanks

juro2

A: 

Which SDK are you using for the respective environments? Differences there may cause issues.

Jeff Pinkston
Im using default SDK (Flex 3.2 for FB3 and Flex 4.0 for FB4). I investigate this (please see 3 source code examples)source #1 works OK in FB3 and FB4source #2 give on FB4 compilation error message:In initializer for 'mxmlContentFactory', type flex.samples.crm.employee.Employee is not assignable to target Array element type mx.core.IVisualElementsource #3 compilation OK in browser is white screen (no table no data)Note: you could find source codes in following commnets (no space)
source#1<?xml version="1.0" encoding="utf-8"?><mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" styleName="plain" applicationComplete="ds.fill(employees)" xmlns:employee="flex.samples.crm.employee.*"> <employee:Employee/> <mx:ArrayCollection id="employees"/> <mx:DataService id="ds" destination="crm-employee"/> <mx:DataGrid dataProvider="{employees}" width="100%" height="100%" editable="true"/> </mx:Application>
source#2<?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" xmlns:employee="flex.samples.crm.employee.*"> <employee:Employee/> <mx:ArrayCollection id="employees"/> <mx:DataService id="ds" destination="crm-employee"/> <mx:DataGrid dataProvider="{employees}" width="100%" height="100%" editable="true"/> </s:Application>
source#3<?xml version="1.0" encoding="utf-8"?><s:Application xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="http://www.adobe.com/2006/mxml" minWidth="1024" minHeight="768" xmlns:employee="flex.samples.crm.employee.*"> <employee:Employee/> <mx:ArrayCollection id="employees"/> <mx:DataService id="ds" destination="crm-employee"/> <mx:DataGrid dataProvider="{employees}" width="100%" height="100%" editable="true"/> </s:Application>