sivaramaiah  
 
  Record21 11/22/2017 3:29am (UTC)
   
 
Record21: Loading and ImageViewer class
(a)    ImageViewer.as            file

class ImageViewer
{
private var container_mc:MovieClip;
public function ImageViewer(target:MovieClip,depth:Number,x:Number,y:Number)
{
container_mc=target.createEmptyMovieClip("container_mc"+depth,depth);
container_mc._x=x;
container_mc._y=y;
}
public function loadImage(URL:String):Void
{
container_mc.loadMovie(URL);
}
}

------------------------------------------------------------------------------
(b)   ImageViewer.fla   file
-----------------------------------------------------------------------------
var viewer:ImageViewer=new ImageViewer(this,1,100,100);
viewer.loadImage("Sunset.jpg");
------------------------------------------------------------------------------

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