
22.05.2006, 17:47
|
|
Регистрация: May 2006
Сообщений: 7
|
Вот отрывок из книги
We refer to variables attached to timelines as timeline variables or movie clip variables. Now let's create a global variable that is directly accessible to all the scripts in a movie (any timeline). We'll put the following code on frame 1 of the square timeline, even though the code would have the same effect from any movie clip:
_global.day = "Monday";
Now we place this code on frame 1 of the main movie:
trace(day);
Because the day variable is global, Flash can find it from the main timeline, even though it was created in square, and the Output window displays:
Monday
Почему же это не работает? Помогите!!!
Проверял на Маке и Писи - flash mx, flash mx 2004.
Последний раз редактировалось Diablo_K; 22.05.2006 в 17:50.
|