mode(s)


  [Bindable] private var _mode:Object = "0";
  private var has_cloud:uint = 0;
  private var has_oval:uint = 0;
  private var has_collide:uint = 0;
  private var has_bounce:uint = 0;
  private var has_ball:uint = 0;
  
  [Bindable] private var _art:Object = "0";
  
  private function art(event:Event):void {
  _art = event.target.text;
  //story.text = "art: " + event.target.text;
  if (_art == "O") {
  } else if (_art == "A") {
      glow();
  } else if (_art == "R") {
      color();
  } else if (_art == "T") {
      stop();
  } else { }
  
  }
  
  private function mode(event:Event):void {
  _mode = event.target.text;
  //story.text = "mode: " + event.target.text;
  if (_mode == "1") {
  } else if (_mode == "3") {
      stop();
  } else if (_mode == "4") {
      color();
  } else if (_mode == "5") {
      glow();
  } else if (_mode == "6") {
   if (has_collide == 1) {  has_collide = 0; }
   else { has_collide = 1;  }
  } else if (_mode == "7") {
   if (has_bounce == 1) { slist.removeChild(obounce); has_bounce = 0; }
   else { has_bounce = 1; slist.addChild(obounce); }
  } else if (_mode == "8") {
   if (has_oval == 1) { slist.removeChild(oval); has_oval = 0; }
   else { has_oval = 1; slist.addChild(oval); }
  } else if (_mode == "9") {
   if (has_cloud == 1) { slist.removeChild(cloud); has_cloud = 0; }
   else { has_cloud = 1; slist.addChild(cloud); }
  } else { _mode="0"; }
  
  }