In Flex, I am using
var canvasEdit:Canvas = new Canvas(); canvasEdit.setStyle(\"borderColor\", 0x0134FF); canvasEdit.setStyle(\"borderThickness\", 3);
Try adding the following line:
canvasEdit.setStyle("borderStyle","solid");
...for example, here is a full application file example: