satheesh
New Member
- Messages
- 883
- Reaction score
- 0
- Points
- 0
Create a Shapes in Flash CS3:
This tutorial help you to Create a Shapes in Flash CS3 at run time.
Syntax:
var name:Shape=new Shape() //To create a variable.
name.graphics.beginFill(0); //Set Color to begin Fill
name.graphics.drawCircle(50,50,40); //Draw Circle
name.graphics.endFill(); //End Fill
addChild(sha); //Add this shape to Stage.
name means User Defined name.
You want to Draw Rect: drawRect(2,2,95,95);
You want to Draw RouRect: drawRoundRect(25,25,50,50,10);
Example:
To Draw Circle:http://svprm.x10hosting.com/shapes/index.php?s=c
To Draw Rect:http://svprm.x10hosting.com/shapes/index.php?s=r
To Draw RouRect:http://svprm.x10hosting.com/shapes/index.php?s=rr
If you this Tutorial help you means give some rep or Credits.
This tutorial help you to Create a Shapes in Flash CS3 at run time.
Syntax:
var name:Shape=new Shape() //To create a variable.
name.graphics.beginFill(0); //Set Color to begin Fill
name.graphics.drawCircle(50,50,40); //Draw Circle
name.graphics.endFill(); //End Fill
addChild(sha); //Add this shape to Stage.
name means User Defined name.
You want to Draw Rect: drawRect(2,2,95,95);
You want to Draw RouRect: drawRoundRect(25,25,50,50,10);
Example:
To Draw Circle:http://svprm.x10hosting.com/shapes/index.php?s=c
To Draw Rect:http://svprm.x10hosting.com/shapes/index.php?s=r
To Draw RouRect:http://svprm.x10hosting.com/shapes/index.php?s=rr
If you this Tutorial help you means give some rep or Credits.