title: how to convert standard time HH:MM:SS to traditional time in ActionScript 3.0
body: <p>i have to convert standard time to traditional time in actionscript. this is what i got so far. i would really appreciate your help.</p>
  
  <pre><code>// This line makes the button, btnConvert wait for a mouse click
  
  // When the button is clicked, the convertTime function is called
  
  btnConvert.addEventListener(MouseEvent.CLICK, convertTime);
  
  // This line makes the textinput wait for a mouse click
  
  // When this component is clicked, the clearLabels function is called
  
  txtinStandard.addEventListener(MouseEvent.CLICK, clearLabels);
  
  // Declare Global Variables
  
  var traditionalTime:String;    // traditional time
  
  // This is the convertTime function
  
  // e:MouseEvent is the click event experienced by the button
  
  // void indicates that the function does not return a value
  
  function convertTime(e:MouseEvent):void
  { 
  
  // declare the variables
      var standardTime:String;    // standard time entered by user
  
      standardTime = txtinStandard.text;     // get standard time from user
      convertToTraditional(standardTime);    // call the convertToTraditional function
  
      // output an appropriate message in the label
      lblOutput.text = standardTime + " is equivalent to " + traditionalTime;
  }
  
  // This is function convertToTraditional
  
  // s – is the standard time
  
  // It determines the traditional time based on the value of s
  
  function convertToTraditional(s:String){
  
  }
  
  // This is the clearLabels function
  
  // e:MouseEvent is the click event experienced by the textInput
  
  // void indicates that the function does not return a value
  
  function clearLabels(e:MouseEvent):void
  
  {
  
       lblOutput.text = "";
  
       txtinStandard.text = "";
  }
  </code></pre>