Форум Flasher.ru
Ближайшие курсы в Школе RealTime
Список интенсивных курсов: [см.]  
  
Специальные предложения: [см.]  
  
 
Блоги Правила Справка Пользователи Календарь Сообщения за день
 

Вернуться   Форум Flasher.ru > Архив Flasher.ru > Flash > ActionScript

Версия для печати  Отправить по электронной почте    « Предыдущая тема | Следующая тема »  
Опции темы Опции просмотра
 
Создать новую тему  
Старый 26.10.2004, 18:43
silin вне форума Посмотреть профиль Посетить домашнюю страницу silin Найти все сообщения от silin
  № 1  
silin
 
Аватар для silin

блогер
Регистрация: Mar 2003
Адрес: Моск. обл.
Сообщений: 5,269
Записей в блоге: 6
да мне никакого, собственно, не надо..
у тебя в аттаче мувик с кнопкой, по которой грузится свф, который в свою очередь должен что-то там делать в зависимости от переданных параметров
и все : как ты думаешь много ли найдется охотников ковырятся в свф(без исходника) чтобы приладить чужой файл к твоим условиям (которые ты даже сформулировать толком не удосужился) да еще с тестированием на сервере..

когда ты спрашивал конкретные вещи тебе и отвечали вразумительно, а здесь извини..

Старый 26.10.2004, 20:49
Invisor вне форума Посмотреть профиль Отправить личное сообщение для Invisor Найти все сообщения от Invisor
  № 2  
Invisor

Регистрация: Oct 2004
Сообщений: 13
Свфка это мувик с таким кодом:
// [Action in Frame 1]
function LoadLib(lib_name, target_mc, func1, func2, loading_progressbar, dp)
{
if (!lib_name)
{
return(false);
} // end if
if (target_mc[lib_name] == undefined)
{
if (dp == undefined)
{
var _l6 = target_mc.getNextHighestDepth();
} // end if
var _l5 = target_mc.createEmptyMovieClip(lib_name, _l6);
error_loading_cnt[_l5] = 0;
func_loading[_l5] = {f1: func1, f2: func2, prgs: loading_progressbar};
my_mcl.loadClip(_global.LocalStart + "lib/" + lib_name + ".swf" + GetVers(lib_name), _l5);
}
else
{
var _l4 = my_mcl.getProgress(target_mc[lib_name]);
if (_l4.bytesTotal > 0 && _l4.bytesLoaded >= _l4.bytesTotal)
{
return(false);
}
else
{
func_loading[target_mc[lib_name]] = {f1: func1, f2: func2, prgs: loading_progressbar};
} // end if
} // end if
return(true);
} // End of the function
function ShowItem(txt)
{
_root.tkitem = txt;
if (!LoadLib(_root.tkcategory, _root, DisplayItem))
{
DisplayItem();
} // end if
} // End of the function
function GetList(base)
{
_root[_root.tkcategory].item.removeMovieClip();
_root.tkitem = "";
_root.tkcategory = base;
if (!LoadLib(_root.tkcategory, _root, CreateListItems))
{
CreateListItems();
} // end if
} // End of the function
function CreateListItems()
{
var _l5 = new Array();
var _l4 = 97;
while (_l4 <= 122)
{
var _l2 = 1;
while (_l2 <= 99)
{
var _l3 = _root[_root.tkcategory].attachMovie(String.fromCharCode(_l4) + _l2, "tmp", 3);
if (_l3 == undefined)
{
if (_l2 > 1)
{
_l5.push(String.fromCharCode(_l4) + ":" + (_l2 - 1));
} // end if
_l2 = 100;
}
else
{
_l3.removeMovieClip();
} // end if
_l2++;
} // end while
_l4++;
} // end while
getURL("javascript:SetList(\'" + _l5.join(",") + "\')", "");
} // End of the function
function DisplayItem()
{
_root[_root.tkcategory].item.removeMovieClip();
var _l2 = _root[_root.tkcategory].attachMovie(_root.tkitem, "item", 1);
_l2._x = (150 - _l2._width) / 2;
_l2._y = (135 - _l2._height) / 2;
var _l3 = _l2.getBounds();
_l2._x = _l2._x - _l3.xMin;
_l2._y = _l2._y - _l3.yMin;
} // End of the function
function GetVers(s)
{
return("");
} // End of the function
var error_loading_cnt = new Object();
var func_loading = new Object();
var my_mcl = new MovieClipLoader();
var my_mcl_Listener = new Object();
my_mcl_Listener.onLoadInit = function (target_mc)
{
if (target_mc._totalframes <= 0)
{
_root["v_" + target_mc._name] = Number(_root["v_" + target_mc._name] || 0) + Math.random();
this.onLoadError(target_mc);
return(undefined);
} // end if
delete error_loading_cnt[target_mc];
var f1 = func_loading[target_mc].f1;
var f2 = func_loading[target_mc].f2;
if (f1 != undefined)
{
if (typeof(f1) != "function")
{
var calledObject = f1;
if (typeof(calledObject) == "string")
{
calledObject = calledObject;
} // end if
var calledFunction = calledObject[f2];
if (typeof(calledFunction) == "function")
{
calledFunction.apply(calledObject, [target_mc]);
}
else
{
calledObject[f2] = target_mc;
} // end if
}
else
{
f1.apply(null, [target_mc]);
} // end if
} // end if
delete func_loading[target_mc];
};
my_mcl_Listener.onLoadError = function (target_mc, errorCode)
{
error_loading_cnt[target_mc]++;
if (error_loading_cnt[target_mc] >= 3)
{
_global.ERROR("Error opening library: \"" + target_mc._name + "\". Error code: " + errorCode);
}
else
{
my_mcl.loadClip(_global.LocalStart + "lib/" + target_mc._name + ".swf" + GetVers(target_mc._name), target_mc);
} // end if
};
my_mcl_Listener.onLoadProgress = function (target_mc, loadedBytes, totalBytes)
{
if (totalBytes > 0 && func_loading[target_mc].prgs)
{
func_loading[target_mc].prgs.percent(loadedBytes / totalBytes);
} // end if
};
my_mcl.addListener(my_mcl_Listener);
if (!_root.bg)
{
_root.attachMovie("bg", "bg", 0);
} // end if
_global.LocalStart = _root._url.indexOf("file://") == 0 ? ("") : ("/");
_root.watchUserInfo = new Object();
_root.watchUserInfo.login = "";
_root.watchUserInfo.base = "";
_root.watchUserInfo.watch("login", function (id, oldval, newval)
{
_root.ShowItem(newval);
});
_root.watchUserInfo.watch("base", function (id, oldval, newval)
{
_root.GetList(newval);
});
_global.ERROR = function (txt)
{
};
if (_root.sh.length > 0)
{
var tmp = _root.sh.split("-");
_root.tkcategory = tmp[0];
_root.ShowItem(tmp[1]);
} // end if


Спасибо что помогли с координатами

Создать новую тему   Часовой пояс GMT +4, время: 17:50.
Быстрый переход
  « Предыдущая тема | Следующая тема »  

Ваши права в разделе
Вы не можете создавать новые темы
Вы не можете отвечать в темах
Вы не можете прикреплять вложения
Вы не можете редактировать свои сообщения

BB коды Вкл.
Смайлы Вкл.
[IMG] код Вкл.
HTML код Выкл.


 


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


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