![]() |
|
||||||||||
|
|||||
|
[++]
|
Народ подскажите, как variables из какого-нибудь файла поставить. Я всё перепробовал в этом Load Variables.
P.S. И ещё, как должен сам какой-нибудь файл написан? |
|
|||||
|
алкаголик и придурок
Регистрация: May 2001
Адрес: город-герой лондон
Сообщений: 2,103
|
если ты "всё" перепробовал, то это "всё" и опиши в вопросе (в чем проблема-то), а то "все" подумают ещё всякое-разное.
P.S. Поиск по loadVariables - во "всём" имел место? ![]() |
|
|||||
|
[++]
|
Да все методы не хрена, только новое окно открывается, если выбрать level
|
|
|||||
|
алкаголик и придурок
Регистрация: May 2001
Адрес: город-герой лондон
Сообщений: 2,103
|
раз у всех получается (ОК, у большинства), - значит ты что-то делаешь не так если нужна помощь (показать, что не так), - покажи код (не в доктор-доктор же здесь играют=))) P.S. "нЕ хрена" пишется через "И" да ещё и сотрут палачи не дай бог ![]() |
|
|||||
|
Регистрация: Sep 2000
Сообщений: 1,098
|
smotrja kak fajl vygljadit... gde nahoditsja etc...
kidaj fajl v tuzhe direktoriju gde i swf, k primeru fajl var.txt- a=234&b=23 vo flashe: this.loadVariables("var.txt"); cherez nekoe vremja (kogda prochitaet) trace("a="+a+" b="+b); |
|
|||||
|
[++]
|
Я кстати скачал здесь исходник... Тоже не работает!!!
|
|
|||||
|
Ветеран форума
|
1 - не в том разделе задан вопрос
2 - непонятна суть проблемы... я вот например могу заявить что у меня программа моделирующая ядерный взрыв в реальном времени не работает... не подскажешь в чём проблема? 3 - почитай документацию которая с флешем даётся... там всё ну очень доступно написано... вот например... - loadVariables Availability Flash Player 4. Usage loadVariables ("url" ,level/"target" [, variables]) Parameters url An absolute or relative URL where the variables are located. If you access the movie using a Web browser, the host for the URL must be in the same subdomain as the movie itself. level An integer specifying the level in the Flash Player to receive the variables. When you load variables into a level, the action in the Actions panel in normal mode becomes loadVariablesNum; in expert mode, you must specify loadVariablesNum or choose it from the Actions toolbox. target The target path to a movie clip that receives the loaded variables. You must specify either a target movie clip or a level (level) in the Flash Player; you can't specify both. variables An optional parameter specifying an HTTP method for sending variables. The parameter must be the string GET or POST. If there are no variables to be sent, omit this parameter. The GET method appends the variables to the end of the URL and is used for small numbers of variables. The POST method sends the variables in a separate HTTP header and is used for long strings of variables. Returns Nothing. Description Action; reads data from an external file, such as a text file or text generated by a CGI script, Active Server Pages (ASP), or PHP, or Perl script, and sets the values for variables in a Flash Player level or a target movie clip. This action can also be used to update variables in the active movie with new values. The text at the specified URL must be in the standard MIME format application/x-www-form-urlencoded (a standard format used by CGI scripts). The movie and the variables to be loaded must reside at the same subdomain. Any number of variables can be specified. For example, the phrase below defines several variables: company=Macromedia&address=600+Townsend&city=San+Francisco&zip=94103 The first movie to open in an instance of the Flash Player loads into the bottom level (identified in code as _level0). When you use the loadMovie or loadMovieNum action to load subsequent movies into the Flash Player, you must assign a level number in the Flash Player or a target movie clip into which each movie will load. When you use the loadVariables action, you must specify either a Flash Player level or a movie clip target into which the variables will load. Example This example loads information from a text file into text fields into the varTarget movie clip on the main Timeline. The variable names of the text fields must match the variable names in the data.txt file. on(release) { loadVariables("data.txt", "_root.varTarget"); } из этого описания ну всё понятно... даже больше чем достаточно... =) а вот будешь лениться не получится из тебя прилежного флешера! |
![]() |
Часовой пояс GMT +4, время: 14:54. |
|
|
« Предыдущая тема | Следующая тема » |
|
|