This content has been marked as final. Show 2 replies
if you're attaching rectangles created in the authoring environment, create them with a dotted border. if you're creating your rectangles with the drawing api (with rounded corners), i don't see an easy way to draw dotted rounded corners.
Yeah I agree, this is not an easy task. However senocular has a package that you can download that will get you pretty close to your goal. So if you download the zip here;
…and comment out and modify the code in the fla as the following;
// create ProgressiveDrawing instance to draw in _root
//var myDrawing:ProgressiveDrawing = new ProgressiveDrawing(_root);
// create DashedLine instance to draw in myDrawing (ProgressiveDrawing)
// use random dash sizes
var myDash:DashedLine = new DashedLine(this, 35, 35);
// reset linestyle to random size and color
myDash.lineStyle(5, 0xFF0000, 100);
// draw a circle in the myDash instance
circle(myDash, 150,150, 200,200, true);
// because all myDash drawings were added to myDrawing,
// myDrawing will draw a dashed circle when draw is called
…this will create a constant circle with a dashed line versus creating a random circle. You can obviously change the values on that frame which will change the color and spacing between the dashes (and a few other parameters will change others). If you notice the circle(), this is created also on the first frame but on a different layer. This is where you would want to change your shapes. Just create another layer that will contain a different shape. I hope this helps, regardless have a high regard for senocular and other developers that contributed to this package.