0 Replies Latest reply on Sep 6, 2012 12:24 AM by kolaval

    TextArea in SkinnablePopUpContainer error



      I am trying to add a TextArea to a SkinnablePopUpContainer but I get an error:


      <?xml version="1.0" encoding="utf-8"?>

      <s:SkinnablePopUpContainer xmlns:fx="http://ns.adobe.com/mxml/2009"

                                                                                                                                         xmlns:s="library://ns.adobe.com/flex/spark" width="244" height="150">



                          <s:VerticalLayout gap="10" horizontalAlign="center" paddingBottom="8" paddingLeft="8"

                                                                                                                    paddingRight="8" paddingTop="8"/>


                <s:TextArea width="98%" editable="false"

                                                                            text="The BusyIndicator"/>

                <s:BusyIndicator rotationInterval="150" />




      ArgumentError: Error #2025: The supplied DisplayObject must be a child of the caller.

                at flash.display::DisplayObjectContainer/getChildIndex()



      If I replace the TextArea with e.g. a label the error dissapears: