sivaramaiah  
 
  Record13 12/15/2017 12:14pm (UTC)
   
 
Record 13: Filling a shape with a Gradient

import flash.filters.GradientGlowFilter;
var shape:MovieClip=this.createEmptyMovieClip("shape",10);
with(shape)
{
beginFill(0xFF0000,100);
moveTo(0,0);
lineTo(100,0);
lineTo(100,100);
lineTo(0,100);
lineTo(0,0);
endFill();
}
shape._x=100;
shape._y=100;
var g:GradientGlowFilter=new GradientGlowFilter(0,45,[0x000000,0xFF0000],[0,1],
[0,255],10,10,2,3,"outer");
var mouseListener:Object=new Object();
mouseListener.onMouseDown=function():Void
{
g.strength++;
shape.filters=[g];
};
mouseListener.onMouseMove=function():Void
{
g.blurX=(_xmouse/Stage.width)*255;
g.blurY=(_ymouse/Stage.height)*255;
shape.filters=[g];
};
Mouse.addListener(mouseListener);
 
  Menu Items
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

  add
HOT TOPICS
MCA PROJECT DETAILS ------------------------------------- Jntu all Lab manuals ------------------------------------- Jntu Syllabus Books ------------------------------------- Paper presentations ------------------------------------- Seminars ------------------------------------- Campus Papers ------------------------------------- Competetive Exams GATE ------------------------------------- GRE ------------------------------------- TOEFL ------------------------------------- IELTS ------------------------------------- CAT ------------------------------------- GMAT ------------------------------------- Templates ------------------------------------- Students Resume Preparation tips ------------------------------------- Job zone(Interview questions) ------------------------------------- Google Adsence html code ------------------------------------- Web sites --------x--------------x-----------
  Advertisement
  Advertisement

 


-----------------------------
  Offline Messages
  Adds
  Visitors Information
Today, there have been 67778 visitors (191377 hits) on this page!
=> Do you also want a homepage for free? Then click here! <= --------------------------------------------------