Форум Flasher.ru

Форум Flasher.ru (http://www.flasher.ru/forum/index.php)
-   ActionScript (http://www.flasher.ru/forum/forumdisplay.php?f=5)
-   -   dead button (http://www.flasher.ru/forum/showthread.php?t=23768)

sts 29.11.2001 18:07

dead button
 
что за ужасы происходят???

на кийфрэйме работает:
displayCountry("South Africa",africaNode);

а на кнопке вложенной в клип - нет:
on (release) {
_root.displayCountry("South Africa",africaNode);
}
----------------------------------------------
ААААА!!!!!!!!!!!!!!!!!!!!!!!!!!
display = "<b>" + thecountry + "</b>"; работает!!!!!!!!!!!!!
дальше - нет
----------------------------------------------

function displayCountry (thecountry,thecont) {
display = "";
display = "<b>" + thecountry + "</b>";
for (var c1 = 0; c1 <= thecont.childNodes.length; c1++) {
if (thecont.childNodes[c1].nodeName != null) {
list = thecont.childNodes[c1];
for (var c1a = 0; c1a<=list.childNodes.length; c1a++) {
if (list.childNodes[c1a].attributes.country == thecountry){
и т.д.

APM 29.11.2001 18:41

try
_root.africaNode

sts 29.11.2001 18:49

Спасибо, работает!
 
ЗЫ
не бейте только, вторая в моей жизни функция :eek:


Часовой пояс GMT +4, время: 10:28.

Copyright © 1999-2008 Flasher.ru. All rights reserved.
Работает на vBulletin®. Copyright ©2000 - 2026, Jelsoft Enterprises Ltd. Перевод: zCarot
Администрация сайта не несёт ответственности за любую предоставленную посетителями информацию. Подробнее см. Правила.