<?xml version="1.0" encoding="utf-8"?>
<!-- http://blog.flexexamples.com/2009/01/09/setting-the-joint-style-on-a-path-stroke-in-flex-gumbo/ -->
<Application name="Path_stroke_joints_test"
        xmlns="http://ns.adobe.com/mxml/2009"
        layout="vertical"
        verticalAlign="middle"
        backgroundColor="white">

    <Script>
        <![CDATA[
            import mx.events.ListEvent;

            private function comboBox_change(evt:ListEvent):void {
                pathStroke.joints = comboBox.selectedItem.toString();
            }
        ]]>
    </Script>

    <ApplicationControlBar dock="true">
        <Form styleName="plain">
            <FormItem label="joints:">
                <ComboBox id="comboBox"
                        selectedIndex="2"
                        change="comboBox_change(event);">
                    <dataProvider>
                        <Array>
                            <String>{JointStyle.BEVEL}</String>
                            <String>{JointStyle.MITER}</String>
                            <String>{JointStyle.ROUND}</String>
                        </Array>
                    </dataProvider>
                </ComboBox>
            </FormItem>
        </Form>
    </ApplicationControlBar>

    <Graphic>
        <Path id="path" data="M 0 0 L 200 0 L 0 80 Z">
            <stroke>
                <SolidColorStroke id="pathStroke"
                        color="red"
                        weight="40" />
            </stroke>
        </Path>
    </Graphic>
    
</Application>