This bit of code used to work perfectly before I downloaded Flash Builder Beta 2:
<s:List allowMultipleSelection="true" includeIn="Portfolio" x="312" skinClass="components.DataList2" id="list1" selectionChanged="List_selectionChanged(event)">
<s:ArrayCollection>
<fx:String>@Embed('/assets/retribution-portfolio.jpg')</fx:String>
<fx:String>@Embed('/assets/heinz-portfolio.jpg')</fx:String>
<fx:String>@Embed('/assets/roughwinds-portfolio.jpg')</fx:String>
</s:ArrayCollection>
</s:List>
Now I'm getting this error:
Description Resource Path Location Type
Cannot resolve attribute 'selectionChanged' for component type spark.components.List. Main.mxml facetmedia-beta-live_1/src line 975 Flex Problem
OK when I replace "selectionChanged" with "change"... I get a new error:
Description Resource Path Location Type
1067: Implicit coercion of a value of type spark.events:IndexChangeEvent to an unrelated type mx.events:IndexChangedEvent. Main.mxml facetmedia-beta-live_1/src line 975 Flex Problem
I dont think the LineSegment and MoveSegment syntax is supported anymore. I believe you now need to set the "data" property.
And s:SimpleText was renamed to s:Label.
Also note that the beta 2 SDK is a few months old now and you may be better off downloading a nightly build of the Flex 4 SDK which will be a lot more recent (and closest to the "final" Flex 4.0 APIs).
Peter
North America
Europe, Middle East and Africa
Asia Pacific