Working with link styles

Link drawing is controlled using a LinkStyle object. It allows setting link rendering properties such as the color and rendering policy. It allows also the setting of the shape of link extremities. Visualizer allows to set this property using: The following code is an example of a linkStyleFunction:
private function myLinkStyleFunction(data:Object):LinkStyle  
    var myLinkStyle:LinkStyle = new LinkStyle();  
        myLinkStyle.renderingPolicy = LinkStyle.LINK_RENDERING_SOLID;  
    else if(data['type']=='dash')  
        myLinkStyle.renderingPolicy = LinkStyle.LINK_RENDERING_DASH;