1 Reply Latest reply on Nov 8, 2016 1:18 PM by arcsin298

    "In initializer for 'mxmlContent', type Object is not assignable to target Array element type..."

    WatHappensinVegasIsCoding

      Hi all,

       

      So I've have built an application on flash builder 4.5 using Christophe Coenraets' tutorial "Building an EmployeeDirectory" (http://www.adobe.com/devnet/flex/articles/employee-directory-android-flex.html#articlecont entAdobe_numberedheader).

       

      I'm getting this error message "In initializer for 'mxmlContent', type Object is not assignable to target Array element type mx.core.IVisualElement." and then the debugger highlights my code this line of my code "</s:List>" in my EmployeeDetails.mxml file. This started after I coded Part 5, Step 2 "Integrating with the Device Capabilities: Triggering the Actions".   The rest of the code debugged fine.

       

      I think it relates to Christophe's note "Note: Make sure you import spark.events.IndexChangeEvent (and not mx.events.IndexChangedEvent) for this code to compile.".  I don't know where to place this

      " import spark.events.IndexChangeEvent;" line of code. 

       

      Any help?  Tks in advance..

       

       

       

       

       

       

       

      Any help would be greatly appreciated.  Thanks