API « Actionscript Programming « Flash Tutorials

Home
Flash Tutorials
1.Actionscript Programming
2.Animals
3.Animation
4.Colors
5.Design
6.Effects
7.Game Cartoon
8.Humans
9.Models
10.Nature
11.Operations
12.Shapes
Photoshop Tutorials
Maya Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
Flash Tutorials » Actionscript Programming » API 
drawing API, createEmptyMovieClip, beginFill, lineStyle, draw line, draw curve, draw circle, MovieClip.prototype, registration point, draw shape with cutout, reverse direction to make mask with cutout

Com essa solução posso pegar no sistema as coordenadas do imóvel e posicioná-lo aonde eu quero hehe…

2. Draw a ball of size 10×10.

//here we setup a few variables that define the look of the line var lineThickness:Number = 4; var lineColor:int = 0xff00ff;

Even-odd is the standard fill rule and is the rule used by all of the original drawing APIs. This is also the default for drawPath. The alternate rule is the non-zero rule.

Flash MX comes with a wide range of new features. On of these new features if the "API Drawing" ability. This means you can start off with a completly blank stage and have your script do the drawing at runtime. In this tutorial I will teach you how to make the above drawing application using API. I expect you to be able to use and have a strong knowledge in actionscripting.

The MovieClipLoader API (Applications Programming Interface) takes away much of the necessary work involved in loading images and swfs in to our Flash movies, and allows us to be notified about the various stages of loading, ultimately giving us more control over our movie, and helping us cut down on the amount of code we need to write.

The drawing API resembles a simple pen-like drawing mechanism that lets you move your pointer, or pencil, from one point to the next to draw lines as you connect these points. ActionScript lets you draw directly onto any movie clip by using simple methods to move the pencil, draw using it, and fill the area you surround by the lines you create.

When we are drawing an object that we want to fill with a color we call the function beginFill() before moving the "pencil" and after the last lineTo() we call endFill().

w_ww.j__a___v___a2_s.c_o__m_ | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.