<?xml version="1.0" encoding="utf-8"?>
<mx:Application    xmlns:mx="http://www.adobe.com/2006/mxml"
                layout="absolute"
                backgroundGradientColors="[#333333, #222222]"
                xmlns:degrafa="com.degrafa.*"
                xmlns:paint="com.degrafa.paint.*"
                xmlns:geometry="com.degrafa.geometry.*" viewSourceURL="srcview/index.html" xmlns:degrafa1="http://www.degrafa.com/2007">

    <mx:Script>
        <![CDATA[
            
            private function randCord():int
            {
                var num:int = Math.random()* 256;
                return num * ((num % 2 == 0) ? -1 : 1);
            }
        ]]>
    </mx:Script>
                
    <degrafa:Surface     verticalCenter="0"
                        horizontalCenter="0">
    
        <!-- Creating Strokes. -->
        <degrafa:strokes>
            <paint:SolidStroke    id="blue"
                                color="#62ABCD"
                                alpha="1"
                                weight="3"/>

            <paint:SolidStroke    id="white"
                                color="#FFFFFF"
                                alpha="1"
                                weight="3"/>                                
        </degrafa:strokes>
        
        <!-- Creating a Geometry Group. -->
        <degrafa:GeometryGroup>
        
            <!-- Creating a Line. -->
            <geometry:DashedLine    stroke="{blue}"
                                    dash="5"
                                    x="-200"
                                    x1="100"
                                    y="-120"
                                    y1="-120"/>

            <geometry:DashedLine    stroke="{white}"
                                    dash="{(Math.random() * 10) + 5}"
                                    gap="{(Math.random() * 10) + 5}"
                                    x="{randCord()}"
                                    x1="{randCord()}"
                                    y="{randCord()}"
                                    y1="{randCord()}"/>  

            <geometry:DashedLine    stroke="{blue}"
                                    dash="{(Math.random() * 10) + 5}"
                                    gap="{(Math.random() * 10) + 5}"
                                    x="{randCord()}"
                                    x1="{randCord()}"
                                    y="{randCord()}"
                                    y1="{randCord()}"/>                                    

            <geometry:DashedPolyline stroke="{white}" dash="8">
                <geometry:data>0,0 0,40 40,40 40,80 80,80 80,120 -20,120 -40,40 0,0</geometry:data>
            </geometry:DashedPolyline>
            
        </degrafa:GeometryGroup> 
        
    </degrafa:Surface>
    
</mx:Application>