sivaramaiah  
 
  Record9 11/20/2018 5:35pm (UTC)
   
 

Record 9:   Tinting a Movie Clip’s Color

this.createEmptyMovieClip("mc1",1);
this.createEmptyMovieClip("mc2",2);
this.blendMode="Layer";
this.createTextField("blendLabel",3,50,150,100,100);
fillClip(mc1,0x00AA00,0x22FFFF,100,100);
fillClip(mc2,0xFF0000,0x2211FF,100,50);
mc2._x=33;
mc2._y=33;
var blendModeIndex=0;
setInterval(changeBlendMode,1000);
function changeBlendMode()
{
 mc2.blendMode=blendModeIndex%14+1;
 blendLabel.text=(blendModeIndex%14+1)+":"+mc2.blendMode;
 blendModeIndex++;
}
function fillClip(mc:MovieClip,color1:Number,color2:Number,alpha1:Number,alpha2:Number)
{
 matrix={a:100,b:0,c:0,d:0,e:100,f:0,g:50,h:20,i:1};
 mc.beginGradientFill("linear",[color1,color2],[alpha1,alpha2],[0,0xFF],matrix);
 mc.lineStyle(8,0x888888,100);
 mc.moveTo(0,0);
 mc.lineTo(0,100);
 mc.lineTo(100,100);
 mc.lineTo(100,0);
 mc.lineTo(0,0);
 mc.endFill();
}

 
  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 71135 visitors (201777 hits) on this page!
=> Do you also want a homepage for free? Then click here! <= --------------------------------------------------