在chart上加入一条指示线

在chart上加入一条指示线

原文 http://hi.baidu.com/fuwei_bj/item/7e576410e970683db831801a

           
           
           

as代码:

private function handleMouseMove(e:MouseEvent):void
    {

         linesCanvas.removeAllChildren();
         //creating the line
         var theLine:VRule = VRule(linesCanvas.addChild(new VRule()));
         theLine.styleName="LineOnChart";
         theLine.x = Math.round(hda[0].x)-50;
         theLine.y = 0;
         theLine.height = linesCanvas.height;

    }

private function handleMouseOut(e:MouseEvent):void
{
 linesCanvas.removeAllChildren(); 
}

posted on 2013-09-12 23:50 NET未来之路 阅读( ...) 评论( ...) 编辑 收藏

转载于:https://www.cnblogs.com/lonelyxmas/p/3318242.html

你可能感兴趣的:(在chart上加入一条指示线)