sivaramaiah  
 
  Record14 08/15/2018 12:49am (UTC)
   
 

Record 14: Scripting Mask

var m:Object=new Object();
m.onLoadInit=function(target_mc:MovieClip)
{
 target_mc._visible=false;
 target_mc._x=(Stage.width-target_mc._width)/2;
 target_mc._y=(Stage.height-target_mc._height)/2;
 var mask:MovieClip=target_mc.createEmptyMovieClip("mask_mc",20);
 with(mask)
 {
  beginFill(0xFF00FF,100);
  moveTo(0,0);
  lineTo(target_mc._width,0);
  lineTo(target_mc._width,target_mc._height);
  lineTo(0,target_mc._height);
  lineTo(0,0);
  endFill();
 }
 target_mc.setMask(mask);
 target_mc._visible=true;
}
 var mask_tween:Object=new Tween(mask,"_ysacle",0,100,2,true);
 this.createEmptyMovieClip("img_mc",10);
 var i:MovieClipLoader=new MovieClipLoader();
 i.addListener(m);
 i.loadClip("Sunset.jpg",img_mc);

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