[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Swftools-common] as3compile
From: |
Christian Welzel |
Subject: |
[Swftools-common] as3compile |
Date: |
Fri, 25 May 2012 17:01:22 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:10.0.3) Gecko/20120329 Icedove/10.0.3 |
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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Swftools-common] as3compile,
Christian Welzel <=