Got it, thank you so much for the pointers.... here is my sample code for
this one:

<code>
numberOfPoints = 25
xSpacing = Stage.width / numberOfPoints

this.lineStyle( 5, 0x000000, 100);
this.moveTo( 0,Stage.height / 2 );
points = [];

for ( var c = 0 ; c < numberOfPoints ; c ++ ) {
        
        yPosC = Math.floor(Math.random() * (Stage.height + 1)) + 1;
        xPosC = xSpacing * c;

        var pt = new Object();
        
        pt.x = xPosC
        pt.y = yPosC
        
        points.push( pt );

        if ( points.length > 2 ) {

                thisPoint = points[c - 1]
                nextPoint = points[(c )];
                
                endX = (thisPoint.x + nextPoint.x) / 2;
                endY = (thisPoint.y + nextPoint.y) / 2;
                        
                this.curveTo (thisPoint.x, thisPoint.y, endX, endY)
                
        }
        
}


stop();


</code>



_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to