Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when integrating it into a swf in Flash Pro #26

Open
yuanyi opened this issue Jul 19, 2013 · 0 comments
Open

Error when integrating it into a swf in Flash Pro #26

yuanyi opened this issue Jul 19, 2013 · 0 comments

Comments

@yuanyi
Copy link

yuanyi commented Jul 19, 2013

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? : (

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant