Menu

Arc not possible to add to a Drawer?

Help
2007-05-29
2013-04-01
  • chaoskind84

    chaoskind84 - 2007-05-29

    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

     
    • Alex Uhlmann

      Alex Uhlmann - 2007-05-30

      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.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.