|
|
|||||
Flash player 5 AC to Flash player 9
vsem privet!
Ya ha4u ispolzovat' kod katoriy nashol v nete kak Open source example, eto elasti4noe dvijeniye i uvili4eniye, no on opublikovan kak flash player 5, mne nado shtob on rabotal kogda ya bublikuyu kak flash player 9 pajalusta pomogite mne preobrazit' kod dlya 9 versii kod na timeline: MovieClip.prototype.elasticScale = function(targt, accel, friction) { this.speed += (targt - this._xscale) * accel; this.speed *= friction; this._xscale = this._yscale += this.speed; } MovieClip.prototype.elasticMove = function(targt, accel, friction) { this.speed += (targt - this._x) * accel; this.speed *= friction; this._x += this.speed; } kod na MC: onClipEvent(load) { targt = 150; } onClipEvent(mouseDown) { targt = _root._xmouse; } onClipEvent(enterFrame) { this.elasticMove(targt, .5, .6); } zaranee pasiba |
|
|||||
Et cetera
Регистрация: Sep 2002
Сообщений: 30,784
|
1. Код не оформлен тегами [code][/code];
2. Транслит запрещен на форуме, пользуйтесь сервисами типа translit.ru; |
Часовой пояс GMT +4, время: 22:51. |
|
« Предыдущая тема | Следующая тема » |
|
|