0 Replies Latest reply on Dec 24, 2009 8:51 PM by tylershep123

    make this application roll up

    tylershep123

      So i am trying to make this application roll back up to the button after you roll off of it. As you can see when you mouse over the application scrolls down. The help would be much appreciated. Happy Holidays!

       

      heres the code:

      <?xml version="1.0" encoding="utf-8"?>
      <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
            verticalGap="0" borderSides="0" backgroundDisabledColor="#9933CC" borderThickness="0" width="208" height="284" backgroundColor="#9933CC" backgroundAlpha="0">
          <mx:AnimateProperty id="dropBox"
               target="{dropDownBox}" property="height"
               toValue="100" duration="500"
               />
              
          <mx:Button
               label="Drop down Button"
               width="154"
               rollOver="dropBox.play();"
                color="#9933CC" enabled="true" textRollOverColor="#ffffff" borderColor="#FFFFFF" themeColor="#9933CC" fillAlphas="[1.0, 1.0]" fillColors="[#FFFFFF, #FFFFFF, #9933CC, #9933CC]" verticalGap="0"/>
         
          <mx:VBox id="dropDownBox"
               verticalScrollPolicy="off"
               horizontalAlign="left" verticalAlign="bottom"
               backgroundColor="white"
               width="152" height="0"
                color="#9933CC" themeColor="#9933CC" rollOverEffect="#9933cc" alpha="1.0" verticalGap="0" borderSides="0">
               <mx:LinkButton label="Button 1"    color="#9933CC" themeColor="#9933CC" rollOverEffect="#9933cc" alpha="1.0"     verticalGap="0"/>
               <mx:LinkButton label="Button 2"      verticalGap="0"/>
          </mx:VBox>
      </mx:Application>