Actionscript learning examples: a simple magnifier effect

Related Tags:

  Results are as follows: 



pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash'


type='application/x-shockwave-flash' width=400 height=300>

  Code (all written in the frame): 

  Fscommand ( "allowscale", "false") 
  _root.picture.setMask (_root.big_glass.pian); 
  _root.shuru.onChanged = Function () ( 
  _root.picture._xscale * N = 100; 
  _root.picture._yscale * N = 100; 
  ) 
  _root.big_glass.onPress = Function () ( 
  This.startDrag (); 
  Drag = true; 
  ) 
  _root.big_glass.onRelease = Function () ( 
  StopDrag (); 
  Drag = false; 
  ) 
  _root.big_glass.onEnterFrame = Function () ( 
  If (drag = true) ( 
  _root.picture._x-_root.big_glass._x = * (_root.n-1); 
  _root.picture._y-_root.big_glass._y = * (_root.n-1); 
  ) 
  ) 
  _root.big_glass.onMouseMove = Function () ( 
  UpdateAfterEvent (); 
  ) 

Related articles:

Firworks wires produced by the tutorial
  1, the first choice of file> New or CNTL N, a new 300 x300 pixel fireworks document.    Resolution settings of 100, and background color is white.    2, choose pen tool in the top left click on canvas wires determine the starting point.    At the starting poi...
Dreamweaver plug Manager
  With the rise of an upsurge of creating web pages, Dreamweaver breeding also is spreading everywhere.    Dreamweaver compact and powerful features that make it many Web producers dumping.    However, the real Gebozhichu Dreamweaver is that he has a strong unlimited scalabi...
Fireworks MX 2004 glamorous text effects
  Fireworks MX2004 in the filter to enhance the effects of the fuzzy function, in addition to the previous vague and Gaussian blur effects, has also increased the dynamism of (Motion Blur), radial Fuzzy (radial fuzzy filters), to enlarge Fuzzy (Zoom Blur ) three results.    Below we ...
Real use Dreamweaver to achieve integration with the Web
  When you click on a Realplayer in IE connection, the system will automatically activate the Realplayer software, not only takes up system memory, but also in online Realplayer prone to error.    The best solution to this problem is to be embedded Realplayer page document, but the so...
Website opened the mysterious veil
  ■ wrote in the front of one, this column is intended to bring you as deep and shallow understanding of the entire process of creating web pages;    2, "page production guide" focuses on the production of technology-based web site, the site planning, maintenance, and prom...