- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
鼠标跟随(Mouse follow)
鼠标跟随(Mouse follow)
fish
Element 1 head, connection name is: YT
Component 2, connection name: YS
Element 3 tail, connection name: YZ
Main scene first frames of code:
This.attachMovie (YT, xy0, 21);
For (i=1; i21; i++) {
If (I = = 13) {
This.attachMovie (YZ, XY, +i, I);
} else {
This.attachMovie (ys, XY, +i, I);
}
Cys = Eval (XY +i);
Cys._yscale = i*5;
Cys._xscale = i*5;
}
Second frames code:
YTX = _xmouse - xy0._x;
YTY = _ymouse - xy0._y;
YTZ = Math.atan2 (YTY, YTX) *180/Math.PI;
Xy0._rotation = ytz;
Xy0._x = ytx/10;
Xy0._y = yty/10;
N=21;
While (n0) {
HYS = Eval (XY +n);
QYs = Eval (XY + (n-1));
Ysx = qys._x - hys._x;
YSY = qys._y - hys._y;
YSZ = Math.atan2 (YSY, ysx) *180/Math.PI;
Hys._rotation = ysz;
Hys._x = qys._x;
Hys._y = qys._y;
N--;
}
Third frames code:
GotoAndPlay (2);
Main steps:
1, the production of a graphic element, can be 3 different sizes of small round, a few words, 3 butterflies, and so on;
2, make a video clip element, drag the graphic elements of the first step into the movie clip scene, open the property panel, change it to movie clip, and enter Tail_mc in the instance name;
3, go back to Scene 1, add layer 2, import a background image at layer 2, adjust the size and position, and drag layer 2 to layer 1;
4, select layer 1, first frames, drag the clip elements into the scene, align the scene, select the clip elements in the scene, click actions, and enter the following scripting language code in the script language column:
//======CODE======
OnClipEvent (load) {
Initialize a variable * / / *
StartSize = 20;
MaxStep = 20;
SizeIncrement = 15;
Copy / * * / tail sign
For (VaR = I = 1; i=MaxStep; i++) {
DuplicateMovieClip (Tail_mc, Tail, +i, I);
With (EVAL (Tail, +i)) {
_xscale = StartSize+ (i*SizeIncrement);
_yscale = StartSize+ (i*SizeIncrement);
_alpha = 100- (100/MaxStep) * (i-1);
}
}
Hide the original symbol * / / *
Tail_mc._visible = false;
}
OnClipEvent (enterFrame) {
Let * first sign with the mouse.
Tail1._x = _xmouse;
Tail1._y = _ymouse;
* le
您可能关注的文档
- 饮食忌讳(Dietary taboo).doc
- 饮食营养 蔬菜之茎菜类(Food, nutrition, vegetables, stems and vegetables).doc
- 饰面型防火涂料在应用中的安全环保问题初探(Discussion on safety and environmental protection of decorative fire retardant coating).doc
- 饲料学1(Feed science 1).doc
- 饲养龟(Feeding turtle).doc
- 饲料与营养(Feed and nutrition).doc
- 饲料添加剂品种目录(Catalogue of feed additives).doc
- 饲料生中控高理论试卷(Feed medium height control theory paper).doc
- 饲料能量(Feed energy).doc
- 饲料造粒机设计制造技术(Design and manufacture technology of feed granulator).doc
- 鼓膜修补术(Tympanic membrane repair).doc
- 鼠标(mouse).doc
- 黑膏药 好处(Black plaster benefits).doc
- 鼻内窥镜系统规格、性能、配置等要求(Nasal endoscope system specification, performance, configuration and so on).doc
- 鼻咽癌的中医疗法综述(Review of Chinese medicine treatment of nasopharyngeal carcinoma).doc
- 鼻子两侧有斑∮还你无斑肌肤(You have less spot on both sides of the nose without spot skin).doc
- 鼻子上的黑头\眼睛部位脂肪粒如何去除(Black, the eye fat granule on the nose how to remove).doc
- 鼻子两边长斑什么原因∮什么美白祛斑产品好(What is the reason for a long spot on both sides of the nose what whitening products).doc
- 鼻子两侧长斑∮,问题肌肤美白的方法(On both sides of the nose for long spot, skin whitening method).doc
- 鼻子肥大(Nasal hypertrophy).doc
文档评论(0)