![]() |
|
||||||||||
|
|||||
|
Регистрация: Sep 2006
Сообщений: 12
|
Добрый день!
Подскажите пожалуйста способ, как можно связать два круга (mc и mc1) между собой. Два круга mc и mc1 имеют эластичный твин. Хочу чтобы когда менялся размер круга, нитка между придерживалась края круга и имела динамику. Скрин: [IMG]http://i079.***********/1202/68/bf4676f13978.jpg[/IMG] Код: stop(); import mx.transitions.Tween; import mx.transitions.easing.*; mc.onRollOver = mcOver; mc.onRollOut = mc.onDragOut = mcOut; mc1.onRollOver = mcOver; mc1.onRollOut = mc.onDragOut = mcOut; function mcOver() { mc.twX.stop(); mc.twX = new Tween(this, '_xscale', Elastic.easeOut, this._xscale, 120, 0.8, true); mc.twY.stop(); mc.twY = new Tween(this, '_yscale', Elastic.easeOut, this._yscale, 120, 0.8, true); } function mcOut() { mc.twX.stop(); mc.twX = new Tween(this, '_xscale', Elastic.easeOut, this._xscale, 100, 0.8, true); mc.twY.stop(); mc.twY = new Tween(this, '_yscale', Elastic.easeOut, this._yscale, 100, 0.8, true); } Исходник: Последний раз редактировалось zzxxzz; 28.02.2012 в 14:09. |
![]() |
Часовой пояс GMT +4, время: 02:07. |
|
|
« Предыдущая тема | Следующая тема » |
| Теги |
| Elastic Связи Зависимость |
|
|