Giving a border to Canvas
问题 In Flex, I am using var canvasEdit:Canvas = new Canvas(); canvasEdit.setStyle("borderColor", 0x0134FF); canvasEdit.setStyle("borderThickness", 3); But I am not able to put border on the sides of the Canvas. 回答1: Try adding the following line: canvasEdit.setStyle("borderStyle","solid"); ...for example, here is a full application file example: <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="init()"> <mx:Script>