2 Replies Latest reply on Oct 31, 2011 5:55 AM by nikos101

    How do you allow the popup to be moved about when inside a <s:SkinnablePopUpContainer>

    nikos101 Level 2

      How do you allow the popup to be moved about when you open it like this

       

      <?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/mx">

       

          <fx:Declarations>

              <fx:Component className="MyAlert">

                  <s:SkinnablePopUpContainer>

                      <s:TitleWindow title="Launching World Domination..." close="close()">

                          <s:VGroup horizontalAlign="center" width="100%">

                              <s:Label text="World Domination failed. Sorry!"/>

                              <s:Button label="OK, nevermind" click="close()"/>

                          </s:VGroup>

                      </s:TitleWindow>

                  </s:SkinnablePopUpContainer>

              </fx:Component>

          </fx:Declarations>

       

          <s:Button label="Launch World Domination" click="(new MyAlert()).open(this, false)"/>

       

      </s:Application>