AS3SVGRenderer icon indicating copy to clipboard operation
AS3SVGRenderer copied to clipboard

Error when integrating it into a swf in Flash Pro

Open yuanyi opened this issue 11 years ago • 0 comments

I am a AS3 beginner and AS3SVGRenderer runs successfully when I test it separately (see below). q-good package { import flash.display.Sprite; import com.lorentz.SVG.display.SVGDocument; import com.lorentz.processing.ProcessExecutor; public class trySVG extends Sprite{ public function trySVG() { ProcessExecutor.instance.initialize(stage); var svg:SVGDocument = new SVGDocument();
svg.load("actors/200x160pxtry.svg");
addChild(svg);
} } } I come across a problem when integrating this package into my swf in Flash Professional CS5. The codes are the same and the error report says that it can't find specific types (see below). q1 q2 q3

D:\WEBSITE\work\try04\com\lorentz\SVG\parser\SVGParserCommon.as,19 行 1046: 找不到类型,或者它不是编译时常数: SVGPathCommand。 D:\WEBSITE\work\try04\com\lorentz\SVG\parser\SVGParserCommon.as,87 行 1046: 找不到类型,或者它不是编译时常数: String。

I believe the report is wrong and doesn't locate the real mistake. Is there a chance of possible conflict between AS3SVGRenderer and other library since my swf is constructed under a pureMVC framework. How could I find the mistake, any help? : (

yuanyi avatar Jul 19 '13 05:07 yuanyi