// header
FileVersion 1

FrameArea {
  width 4000
  height 4000
}

FrameRate 10.0

BackgroundColour 800000

// define the shapes
DefineShape {
  id 1
  bbox {
    -40 -40 2040 2040
  }
  fillstyle {     // fillstyle #1
    solid 800000ff // RGBA (AABBGGRR)
  }
  selectfillstyle0 1
  moveby { 0 1000 }
  curveby { 0 1000 1000 0 }
  curveby { 1000 0 0 -1000 }
  curveby { 0 -1000 -1000 0 }
  curveby { -1000 0 0 1000 }
}
DefineShape {
  id 2
  bbox {
    -40 -40 2040 2040
  }
  fillstyle {     // fillstyle #1
    solid ffffffff // RGBA (AABBGGRR)
  }
  selectfillstyle0 1
  moveby { 0 1000 }
  curveby { 0 1000 1000 0 }
  curveby { 1000 0 0 -1000 }
  curveby { 0 -1000 -1000 0 }
  curveby { -1000 0 0 1000 }
}

Button {
  id 3
  up    { id 1  depth 1 }
  over  { id 2  depth 1 }
  actions { geturl {
              url "http://localhost/"
              target "__new"
            }
           }
}

// place the shape on the screen
PlaceObject {
  depth 1
  id 3
  matrix {
    65536 65536     // scale
    0 0             // rotate
    0 500           // translate
  }
}
DoAction {
  stop
}
ShowFrame { }       // frame #0
