- var * = root.createEmptyMovieClip("*",1);
- *._x=256;
- *._y=256;
- *.beginFill(0xFF0000);
- *.moveTo(-256,-256);
- *.lineTo(256,-256);
- *.lineTo(256,256);
- *.lineTo(-256,256);
- *.endFill();
- *.onEnterFrame = function() {
- *._rotation+=10;
- new Color(*).setRGB(Math.floor(Math.random()*0xffffff));
- }
- //该片段来自于http://www.codesnippet.cn/detail/040320132287.html
来源: http://www.codesnippet.cn/detail/040320132287.html