![]() |
|
||||||||||
|
|||||
|
Banned
|
Здравствуйте
У меня есть цикл for (j = 0; j < _root.music_length; j++) { this['player' + j].onPress = function() { _root.player.now_playing = j; _root.player.gotoAndStop(2); }; } Как это обойти? Спасибо!! Добавлено через 34 минуты Проблема решена: for (j = 0; j < _root.music_length; j++) { this['player' + j].onPress = function() { this._name.toString().charAt(7); _root.player.now_playing = this._name.toString().charAt(6); if (this._name.toString().charAt(7) != '') { _root.player.now_playing = _root.player.now_playing + this._name.toString().charAt(7); } if (this._name.toString().charAt(8) != '') { _root.player.now_playing = _root.player.now_playing + this._name.toString().charAt(8); } _root.player.now_playing = Number(_root.player.now_playing); _root.player.gotoAndStop(2); }; } ![]() ![]() ![]() ![]() ![]() ![]() Последний раз редактировалось KirAmp; 08.07.2010 в 00:21. |
![]() |
Часовой пояс GMT +4, время: 17:17. |
|
|
« Предыдущая тема | Следующая тема » |
|
|