Home | Help Forums | Web Design Tutorials | Free Swishmax Downloads | All Downloads

 

 

Company

Home

Nework Details

Tutorials

SWiSH 2

SWiSHMax

Flash MX

PHP & MySQL

HTML / JScript

Adobe Photoshop

Corel Draw

Gimp

Miscellaneous

Downloads

Templates

Plugins

Fonts

Wallpapers

Free Images

Scripts and Codes

Products

E-Books

SWiSH BB

SWiSH Templates

SWiSH-DB Newsletter
Subscribe to our newsletter : GO
  Partners / Affiliates

   Swish Templates
   SWiSH Climax
   GimpTalk
   Idea Designs
   Sposatoettore
   Try Acai Berry Diet
   Download Free Ringtones
   Swishzone

Manage your site with Flax Article Content Management System
MovieClip Object, Draw Methods
Category : SWiSHMax | Level : Intermediate | Language : English
Ask Question | Read Comments | Post tutorial | Previous | Next

Web www.swish-db.com

Hi:
We can create lines, fill shapes with solid colors, gradients...
The MovieClip object works with drawing methods, how?
a) Create Empty Movie clip
cool.gif 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


All rights reserved - swish-db.com