this is a code for Creating a Gradient Rectangle in flash ActionScript 3.0
Code:
/****************************
Import Classes
****************************/
import flash.display.*;
import flash.geom.*;
/****************************
Define Variables
****************************/
//Type of Gradient we will be using
var fType:String = GradientType.LINEAR;
//Colors of our gradient in the form of an array
var colors:Array = [ 0xF1F1F1, 0x666666 ];
//Store the Alpha Values in the form of an array
var alphas:Array = [ 1, 1 ];
//Array of color distribution ratios.
//The value defines percentage of the width where the color is sampled at 100%
var ratios:Array = [ 0, 255 ];
//Create a Matrix instance and assign the Gradient Box
var matr:Matrix = new Matrix();
matr.createGradientBox( 200, 20, 0, 0, 0 );
//SpreadMethod will define how the gradient is spread. Note!!! Flash uses CONSTANTS to represent String literals
var sprMethod:String = SpreadMethod.PAD;
//Start the Gradietn and pass our variables to it
var sprite:Sprite = new Sprite();
//Save typing + increase performance through local reference to a Graphics object
var g:Graphics = sprite.graphics;
g.beginGradientFill( fType, colors, alphas, ratios, matr, sprMethod );
g.drawRect( 0, 0, 400, 200 );
addChild( sprite );
Forex Video Tutorial : Place a Trade
Learn how to enter and exit the market quickly and efficiently with automated click and deal trading. This video tutorial will also show FOREXTrader's advanced position management capabilities.
Length: 1:02 minutes
Forex Video Tutorial : Associated Orders
Learn how to attach an associated limit and stop loss order to an open position.
Length: 1:48 minutes
Forex Video Tutorial : Point & Shoot
The Point & Shoot tool enables you to drill down into a position to view and close any individual trade that is part of your overall position in any currency pair. Learn more about the Point & Shoot feature by watching this tutorial.
Length: 00:57 seconds
Forex Video Tutorial : Forex Insider
Learn how to quickly access FOREXInsider, live market commentary written by our senior traders and members of our research team.
Length: 00:45 seconds
Forex Video Turorial : Customize Layouts
FOREXTrader is fully customizable. Learn how to create your own layout or select from our predefined layouts, geared specifically to popular trading styles.
Length: 1:08 minutes
Forex Video Tutorial : FOREXTrader Platform Tour
Designed for active traders looking for an edge, this Windows-based platform offers a rich user interface in a highly customizable trading environment for maximum performance. Watch the demonstration of all the tools and resources available on the trading platform.