In case Flash no longer exists; a copy of this site is included in the Flashpoint archive's "ultimate" collection.

Dead Code Preservation :: Archived AS3 works from wonderfl.net

Accordion 1

Copied from here: http://www.bit-101.com/blog/?p=2313
/**
 * Copyright Albert ( http://wonderfl.net/user/Albert )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/njsw
 */

//Copied from here: http://www.bit-101.com/blog/?p=2313
      package
      {
          import com.bit101.components.Component;
          import com.bit101.components.HBox;
          import com.bit101.components.PushButton;
          import com.bit101.components.VBox;
          import com.bit101.components.Window;
         
          import flash.display.Sprite;
       
          [SWF(BackgroundColor=0xdddddd)]
          public class Playground extends Sprite
          {
              private var vbox:VBox;
             
              public function Playground()
              {
                  //Component.initStage(stage);
                  var window1:Window = new Window(this, 200, 100, "test ");
                   var button1: PushButton = new PushButton(window1, 0, 50, "button ");
                  vbox = new VBox(this, 50, 50);
                  vbox.spacing = 0;
                  for(var i:int = 0; i <4; i++)
                  {
                      var window:Window = new Window(vbox, 0, 0, "Accordion " + (i + 1));
                      window.hasMinimizeButton = true;
                      window.draggable = false;
                      if(i != 0) window.minimized = true;
                  }
                 
                  var hbox:HBox = new HBox(this, 50, 20);
                  for(i = 0; i <5; i++)
                  {
                      var button: PushButton = new PushButton(hbox, 0, 0, "button " + i);
                      button.width = 50;
                  }
              }
          }
      }