 
   import flash.utils.ByteArray;
   import flash.external.ExternalInterface;
+
+  import mx.utils.StringUtil;
 
   public class SDP {
     private var version:int = -1;

      var success:Boolean = true;
      var currentMediaBlock:Object = null;

      /* Could end up with '\r' in the 'line' variable, just keep in mind when matching */
      for each (var line:String in content.toString().split("\n")) {
        line = line.replace(/\r/, '');
        if (0 === line.length) continue;

        switch (line.charAt(0)) {
        case 'v':

        return true;
      }

      var matches:Array; /* Used for some cases of below switch-case */
      var separator:int    = line.indexOf(':');
      var attribute:String = line.substr(0, (-1 === separator) ? 0x7FFFFFFF : separator); /* 0x7FF.. is default */

      switch (attribute) {
      case 'a=recvonly':
