Hi there,

in the last days i used as3compile for compiling some AS3 code from the
wild and noted the following problems and errors:

* swfupload

when compiling this small library as3compile gives an error:
ExternalCall.as:102:64: error: can't convert type Number to RegExp
Line 102 says
  var replacePattern:RegExp = /\\/g; //new RegExp("/\\/", "g");
changing it to
  var replacePattern:RegExp = /\\/g;
solves the error message and the swf gets generated.

* svgweb

first error:
org/svgweb/core/SVGNode.as:624:31: error: syntax error, unexpected case,
expecting '}'
The code is (line 624 is case 'both':)
    default:
      this.dbg("invalid <svg> clip mode: "+  clipMode);
    case 'both':
      canvasWidth = this.getWidth();
      canvasHeight = this.getHeight();
      break;
Changing it to
    case 'both':
      canvasWidth = this.getWidth();
      canvasHeight = this.getHeight();
      break;
    default:
      this.dbg("invalid <svg> clip mode: "+ clipMode);
      canvasWidth = this.getWidth();
      canvasHeight = this.getHeight();
      break;
compiles fine.

The other problem is this:
SVGPolygonNode.as:41:65: error: syntax error, unexpected '<' which is
generated because of
var path:GraphicsPath = new GraphicsPath(new Vector.<int>(), new
Vector.<Number>(), [...]
I do not know how to circumvent this one, but doesn't as3compile support
these new Vector.<type> thingies?

* swfobject

This one compiled just fine.



-- 
 MfG, Christian Welzel

  GPG-Key:     pub 4096R/5117E119 2011-09-19
  Fingerprint: 3688 337C 0D3E 3725 94EC  E401 8D52 CDE9 5117 E119

---------------
SWFTools-common is a self-managed list. To subscribe/unsubscribe, or amend an 
existing subscription, please kindly point your favourite web browser 
at:<http://lists.nongnu.org/mailman/listinfo/swftools-common>

Reply via email to