![]() |
|
||||||||||
|
|||||
|
Регистрация: Nov 2005
Сообщений: 3
|
Цитата:
Например: Главный SWF: var my_so:SharedObject = SharedObject.getLocal("superfoo", "/"); my_so.data.arx = new Array(); my_so.data.ary = new Array(); i = 0; ball.onPress = function() { startDrag(this); _root.drag = true; }; ball.onRelease = function() { stopDrag(); _root.drag = false; }; onEnterFrame = function () { if (_root.drag) { my_so.data.arx[i] = _root.ball._x; my_so.data.ary[i] = _root.ball._y; i++; my_so.flush(1000); } }; Дочерний SWF: var my_so:SharedObject = SharedObject.getLocal("superfoo", "/"); _root.moveTo(my_so.data.arx[0], my_so.data.ary[0]); for (var i = 1; i<my_so.data.arx.length; i++) { _root.lineStyle(0, 0xFF0000, 100); _root.lineTo(my_so.data.arx[i], my_so.data.ary[i]); } |
![]() |
![]() |
Часовой пояс GMT +4, время: 08:51. |
|
|
« Предыдущая тема | Следующая тема » |
| Опции темы | |
| Опции просмотра | |
|
|