|
|
 |
|
|
|
|
|
Hi: We can create lines, fill shapes with solid colors, gradients... The MovieClip object works with drawing methods, how? a) Create Empty Movie clip
Define the style of the lines: thickness, color and transparency c) Decide if we want fill the shapes.c1) If we want fill , choose between gradients or solid colors. c2)Choose gradient colors and his transparency. d)Choose the start point. e) Create straight lines or curved lines from start point to end point. These are basically the steps to follow. Here we have some examples: 1) http://www.myswish.org/smax/objects/moviec...clip/draw1.html 2) http://www.myswish.org/smax/objects/moviec...clip/draw2.html 3) http://www.myswish.org/smax/objects/moviec...clip/draw3.html 4) http://www.myswish.org/smax/objects/moviec...clip/draw4.html 5) http://www.myswish.org/smax/objects/moviec...clip/draw5.html For example the code of draw1 is:
onFrame (1) { _root.createEmptyMovieClip("lines",1); with(lines){ lineStyle(0,0xFFffff,85); } _root.onMouseDown=function(){ lines.lineTo(_root._xmouse,_root._ymouse); }
}
As you see we have created: 1) EmptyMovieClip named lines 2)We have defined lineStyle with thickness, color and transparency (0,0xFFFFFF,85) 3) We have created a mouseDown function with xmouse properties.
Download all examples at: 1) http://www.myswish.org/smax/objects/moviec...eclip/draw1.swi 2) http://www.myswish.org/smax/objects/moviec...eclip/draw2.swi 3) http://www.myswish.org/smax/objects/moviec...eclip/draw3.swi 4) http://www.myswish.org/smax/objects/moviec...eclip/draw4.swi 5) http://www.myswish.org/smax/objects/moviec...eclip/draw5.swi
Regards
|
|
|
|