This flash tutorila will show you how to create a circle transformation, using the Action Script.
onClipEvent (load) {setProperty(this, _xscale, (300 - _root._xmouse) * 2);setProperty(this, _yscale, (300 - _root._ymouse) * 2);setProperty(this, _alpha, 100);}onClipEvent (enterFrame) {setProperty(this, _xscale, _xscale - 10);setProperty(this, _yscale, _yscale - 10);if (_alpha > 4) {setProperty(this, _alpha, _alpha - 5);}}Step 6Afte that, while your new made Movie Clip ("circle") is still selected, open the Properties Panel (Ctrl+F3), and under type: circleStep 7Insert a new layer and name it Action. Click on frame 1, open the Action Script Panel (F9), and paste this script:i = 0;setProperty("circle", _visible, false);Step 8Click on frame 2, press F6 (keyframe), and in Action Script Panel, paste this scritp:
duplicateMovieClip("circle", "circle" + i, i);removeMovieClip("circle" + (i-15));if (i > 14) {i = 0;}i++;Step 9Click on frame 3, press F6, and paste this script:
gotoAndPlay(_currentframe - 1);Step 10Click on frame 3 of layers circle and background and press F5 key.Test your Movie (Ctrl+Enter)
We're done!
Post a Comment
No comments:
Post a Comment