var part1:Arc = new Arc(275,100,50,0,180); //my Arc
var part2:Line = new Line(225,100,275,200); //this Lines were show without problems
var part3:Line = new Line(325,100,275,200);
myDrawer.addChild(part1); //here the compiler show following message:
ype error de.alex_uhlmann.animationpackage.drawing.Arc should be de.alex_uhlmann.animationpackage.drawing.IOutline
Nope, that's not possible because Drawer can only work with object of type IOutline. Like the error message says. Checkout the readme.htm. There you'll see an overview of types in AnimationPackage.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello, I have a problem.
I want to add an Arc and two Lines to a Drawer and show it as MovieClip.
This is the Code:
import de.alex_uhlmann.animationpackage.drawing.*;
...
var myDrawer:Drawer = new Drawer(tria_mc);
var part1:Arc = new Arc(275,100,50,0,180); //my Arc
var part2:Line = new Line(225,100,275,200); //this Lines were show without problems
var part3:Line = new Line(325,100,275,200);
myDrawer.addChild(part1); //here the compiler show following message:
ype error de.alex_uhlmann.animationpackage.drawing.Arc should be de.alex_uhlmann.animationpackage.drawing.IOutline
myDrawer.addChild(part2);
myDrawer.addChild(part3);
It is perhaps not possible to add an Arc to a Drawer?
mfg
chaoskind
Nope, that's not possible because Drawer can only work with object of type IOutline. Like the error message says. Checkout the readme.htm. There you'll see an overview of types in AnimationPackage.