sivaramaiah  
 
  Record14 03/29/2024 11:33am (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

 


-----------------------------
  Offline Messages
  Adds
  Visitors Information
Today, there have been 118790 visitors (279574 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