trace(s)


     public var count:Number = 0;
     public function trace(m:String) : void {
                     count++;
                     status.text += "[" + count + "] " + m ;
                     if (count % 5 == 0) status.text += "\n";
                     }
  

start -- send


     public function send() : void { 
         trace("tracing");
         player.trace = trace;
         player.config = "explore-ximpel-config.xml";
         player.send();
         }
         
  

resize -- must be in display


     public function resize(fx:Number = 1.0, fy:Number = -1.0): Number {
     if (fy == -1.0) fy = fx;
     var x:Number = this.width / player.width;
     var y:Number = this.height / player.height;
     var s:Number = 1.0;
     if (x > y) s = y; else s = x;
     player.scaleX = s * fx; player.scaleY = s * fy;
     return s;
     } 
  
  

init -- empty


     private function init():void {
     trace("app");
     }
     
     
  

finalize -- when initialized


     private function finalize():void {
     trace("finished");
     player.image = "assets/@logo.jpg";
     resize(1.0,0.8);
     player.ximpel.start();
     player.index=2;
     }
  ]]>
  </mx:Script>
  
  

display -- with debug


  <mx:VBox>
  <ae:explore_ximpel_net_ximpel_player_Display id="player" />
  <mx:TextArea width="100%" height="50%" id="status"  text=" starting ... "  />
  </mx:VBox>
  </mx:Application>