Skip navigation
Currently Being Moderated

Cannot resolve attribute 'selectionChanged'

Feb 15, 2010 8:03 AM

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

I have imported:
import mx.events.IndexChangedEvent;
My flash version is 10.0.45.2
Any help would be appreciated.

 
Replies
  • Currently Being Moderated
    Feb 16, 2010 12:18 PM   in reply to trancepriest

    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

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points