sivaramaiah  
 
  Record13 01/18/2025 5:11am (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

 


-----------------------------
  Offline Messages
  Adds
  Visitors Information
Today, there have been 133355 visitors (304329 hits) on this page!
-------------------------------------------------- This website was created for free with Own-Free-Website.com. Would you also like to have your own website?
Sign up for free