Code explanation about a magnifying glass effect

xiaoxiao2021-03-06  81

OnClipevent (LOAD) {// Video Clip Trigger Event _xscale = _root.sliderval * 100; // Define the zoom size of the X coordinate axis _yscale = _root.sliderval * 100; // Define the Zhardds shaft Size} OnClipEvent (Enterframe) {_root.big_mc._x = _xmouse * (1-_Root.SliderVal) _ root.first_mc._width / 2; // Define X coordinate _root.big_mc._y = _ymouse * (1-_root .sliderval) _ root.first_mc._height / 2; // Define the Y coordinate of the magnifying glass}

_xmouse * (1-_root.sliderval) _ root.first_mc._width / 2; // The X coordinate value of the mouse * (1-1.5) half the width of the first movie clip

转载请注明原文地址:https://www.9cbs.com/read-121963.html

New Post(0)