Mega Code Archive
Search
.Net
ASP .Net
ASP .Net Tutorial
C#
C# Book
C# by API
C# Tutorial
VB.Net
VB.Net by API
VB.Net Tutorial
Visual C++ .Net
VisualBasic Script
Java
Java
Java Book
Java by API
Java Tutorial
Script
Flash ActionScript
Flex
JavaScript DHTML
JavaScript Reference
JavaScript Tutorial
Database
MSSQL
MSSQL Tutorial
MySQL
MySQL Tutorial
Oracle PLSQL
Oracle PLSQL Tutorial
PostgreSQL
Languages
Android
C
C Tutorial
C++
C++ Tutorial
Delphi
Perl
PHP
Python
Python Tutorial
Ruby
Silverlight
Office
MSOfficeExcel 2007 Tutorial
MSOfficePowerPoint 2007 Tutorial
MSOfficeWord 2007 Tutorial
Data
XML
XML Tutorial
Flash ActionScript
Graphics 124 codes
Home
Flash ActionScript
Graphics
1 A rectangle in a Sprite is nested within another Sprite Both Sprite instances are rotated 45 degrees
2 A shape with evenly rounded corners
3 A simple Ellipse class
4 Add Bitmap to Sprite
5 Adding a Bitmap Fill
6 Adding a Simple One-Color Fill
7 Adding Noise
8 Adding Perlin Noise
9 An image-based color picker
10 Apply a 3 pixel-thick blue stroke
11 Apply filter to bitmap
12 Applying Color Transformations
13 Applying Flood Fills
14 Applying Gradient Fills
15 Applying Gradients to Lines
16 Applying Grayscale
17 Applying Rectangular Fills
18 Assign a pixel value using a number that specifies an Alpha channel of CC
19 Assigning the Color of a Region of Pixels
20 Change line style
21 Change line style while drawing
22 Change scaleX
23 Circle Clicker
24 ColorMatrixFilter Demo
25 ConvolutionFilter Demo
26 Copying Images
27 Copying Pixels
28 Create a Ball by using the Gradient
29 Create a circle shape
30 Create animation by setting the bitmap pixel
31 Create bitmap and set pixel
32 Create Gradient box
33 Create Rectangle and Circle
34 Creates the triangle
35 Creating a BitmapData Object
36 Creating a Flood Fill
37 Creating a New Bitmap Image from ImageData
38 Creating an Item Renderer
39 Creating Custom Visual Classes
40 Creating Fills
41 Curve control point
42 Custom Graphical Classes
43 Detecting Areas by Color
44 Display objects composited into a bitmap
45 Displaying BitmapData Images
46 Dissolve
47 Dissolving Between Two Bitmaps
48 Draw a rectangle
49 Draw Colored Rectangle
50 Draw four shapes
51 Draw lines
52 Draw Round Rectangle Complex
53 Draw the PlayPause graphic
54 Draw three shapes
55 Drawing a Curve
56 Drawing a Straight Line
57 Drawing Circles
58 Drawing Curves
59 Drawing Curves in a Graphics Object
60 Drawing Lines
61 Drawing Lines in a Graphics Object
62 Drawing Rounded Rectangles
63 Draws a red triangle with a five pixel-thick black outline Notice that the default start point (0, 0) matches the endpoint
64 DropShadowFilter Demo
65 Embedding a bitmap at compile time
66 Examining a Bitmap
67 File BitmapData with Rectangle
68 Fill a circle
69 Fill a rectangle
70 Filling a Shape with a Gradient
71 Filling a Shape with a Solid or Translucent Color
72 Filling Shapes
73 Filter Test
74 Get pixel data from BitmapData
75 GetPixel32() Versus getPixel( )
76 How draw( ) handles Alpha channel values
77 Image Smoothing
78 Introducing the Graphics Object
79 Line Gradient Test
80 LineGradientStyle(linear, [0xFFFF00, 0x00FFFF], [100, 100], [0x00, 0xFF], mxBox, reflect, linearRGB)
81 LineGradientStyle(radial, [0xFFFF00, 0x00FFFF], [100, 100], [0x00, 0xFF], mxBox, pad, linearRGB)
82 LineGradientStyle(radial, [0xFFFF00, 0x00FFFF], [100, 100], [0x00, 0xFF], mxBox, pad, linearRGB, 1)
83 Modifying a BitmapData
84 MouseEvent MOUSE_MOVE
85 Moving the Pen without Drawing
86 Panel Control
87 PerlinNoise animation
88 Pixel Snapping
89 Produces a number that is the effective result of inserting the hex value AA into an existing color value
90 Registers mouseMoveListener( ) to be executed whenever the mouse moves while the mouse pointer is over the Sprite object referenc
91 Removing Event Listeners
92 Retrieve a pixel with Alpha set to 255, from a transparent image
93 Retrieving the Color of a Region of Pixels
94 RotateChildren( ), applies the generalized code from Example 20-4 It randomly rotates all the descendants of a specified containe
95 Rotating Objects with Filters
96 Rotating Rectangles
97 Runtime Bitmap
98 Set Caps style to Round
99 Set line gradient style with Matrix
100 Set Shape position
101 Set the line style to 1 pixel-thick, solid green
102 Set the line style to 2 pixels thick, 50% transparent green
103 Shape Demo
104 Square
105 Stroked Circle
106 Supported Asset Types
107 The alpha value of pixels can be set in transparent bitmaps only (i e , bitmaps created with the value true passed to the transpa
108 The following code makes a BitmapData object with Perlin noise, and then uses that object as a bitmap fill Because the stitch par
109 The following code sets the line style to 1 pixel-thick, solid black
110 The randomSeed parameter is responsible for the randomness of the noise
111 To move the drawing pen without drawing any line at all, use moveTo( )
112 To remove all vector drawings in an object, we use the Graphics classs instance method clear( )
113 To retrieve the value of a single channel from a 32-bit color value, we can use the right shift and bitwise AND operators togethe
114 To set the rendering style for corners, we use lineStyle( )s joints parameter
115 To turn the stroke off completely, set thickness to undefined or call lineStyle( ) with no parameters
116 Transforming Colors
117 Updates the octaves parameter
118 Use GlowFilter
119 Use perlinNoise
120 Use the graphics
121 Uses drawRect( ) to draw a blue rectangle with a black one-pixel outline
122 Using BitmapData lock( ) to improve performance
123 Using loaded fonts
124 Volume Control