function _drawDownArrow (target:MovieClip, Color:Number, aWdith:Number, 
aHeight:Number) {
        var size:Number = Math.round((aWdith / 2) - 2);
        target.lineStyle(0, Color, 100);
        var startY = Math.round((aHeight / 2) - (size / 2));
        var startX = Math.round((aWdith / 2) - (size / 2));
        target.moveTo(startX, startY+1);
        target.beginFill(Color);
        target.lineTo(Math.round(startX + (size / 2)), (size + startY - 1));
        target.lineTo((size + startX), startY);
        target.lineTo(startX, startY);
        target.endFill();
}

var _testArrow = createEmptyMovieClip("_testArrow", getNextHighestDepth());
_drawDownArrow(_testArrow, 0x000000, 20, 20);

/*
just drop this into the actionscript for frame 1 on an empty movieclip and 
you'll see the arrow
it's a padded arrow - specifically padded for use in my button component - but 
should be easy to modify
*/
--
Jim Palmer ! Mammoth Web Operations

> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Rutul
> Patel
> Sent: Thursday, August 10, 2006 8:31 AM
> To: Flashcoders mailing list
> Subject: [Flashcoders] need help in drawing arrow
> 
> 
> Hi people,
> anybody know how to write AS of drawing arrow.
> if anybody has can anybody tell me how?.
> thanks
> Rutul Patel
> _______________________________________________
> [email protected]
> 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
> 
_______________________________________________
[email protected]
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