acerbook
26.02.2009, 08:43
Доброго времени суток всем.
В общем такая беда. Я во флеше плохо разбираюсь.
Скачал флеш шаблон сайта.
Там анимация меню квадраты.
Наименование этих кнопок-меню в скрипте. Когда меняю их на русский язык, то в мульте не отображается.
И сразу попутно второй вопрос, мне надо будет потом эти же кнопки на китайском языке сделать. Прочел много статей по поводу кириллице в коде, но толком ничего не получилось.
Можете помочь кто-нибудь?
Заранее благодарю.
Если нужен код, то вот он:
Заменить на русский надо ("Introduction", "Portfolio", "Services", "Clients","Testimonials", "Support", "About Us", "Contact")
и
("Short text goes here for page description", "a list of flashmo templates", "Duis vitae velit sed dui malesuada", "Donec mollis aliquet ligula",
"Pellentesque vitae magna", "Suspendisse a nibh tristique justo rhoncus",
"Cum sociis natoque penatibus", "Office locations and email form");
stop();
import mx.transitions.Tween;
import mx.transitions.easing.*;
flashmo_logo._visible = false;
flashmo_logo._y = 100;
menu_item_group.menu_item._visible = false;
var menu_label:Array = new Array("Introduction", "Portfolio", "Services", "Clients","Testimonials", "Support", "About Us", "Contact");
var menu_desc:Array = new Array("Short text goes here for page description", "a list of flashmo templates",
"Duis vitae velit sed dui malesuada", "Donec mollis aliquet ligula",
"Pellentesque vitae magna", "Suspendisse a nibh tristique justo rhoncus",
"Cum sociis natoque penatibus", "Office locations and email form");
// *** both 'menu label' array length and 'menu desc' array must be equal to number of
// *** total frames inside "menu button bg" Movie Clip in the library.
var total:Number = menu_label.length;
var tween_duration:Number = 1.2;// in seconds
var i:Number = 0;
function create_menu():Void
{
position_x = i % 4 * 120 - 180;
position_y = Math.floor(i / 4) * 120 - 60;
var fm = menu_item_group.menu_item.duplicateMovieClip("menu_item" + i, i);
fm.stop();
fm.bg.gotoAndStop(i + 1);
fm.over = true;
fm.item_label = menu_label[i];
fm.item_desc = menu_desc[i];
fm.item_no = i;
fm.flashmo_button._visible = false;
fm.over = true;
fm.flashmo_button.onRollOver = function()
{
this._parent.over = false;
};
fm.flashmo_button.onRollOut = fm.flashmo_button.onDragOut = function ()
{
this._parent.over = true;
};
fm.flashmo_button.onRelease = function()
{
_root.page = this._parent.item_no + 1;
_root.play();
};
fm.onEnterFrame = function()
{
if (this.over == true)
{
this.prevFrame();
}
else
{
this.nextFrame();
}
};
new Tween(fm, "_alpha", Strong.easeOut, 0, 100, tween_duration, true);
new Tween(fm, "_rotation", Strong.easeOut, 180, 0, tween_duration, true);
new Tween(fm, "_x", Strong.easeOut, position_x + 50, position_x, tween_duration, true);
fm_tween = new Tween(fm, "_y", Strong.easeOut, position_y + 100, position_y, tween_duration, true);
fm_tween.onMotionFinished = function()
{
fm.flashmo_button._visible = true;
}
if (i == total - 1)
{
fm_tween.onMotionFinished = function()
{
fm.flashmo_button._visible = true;
flashmo_logo._visible = true;
new Tween(flashmo_logo, "_alpha", Strong.easeOut, 0, 100, tween_duration, true);
}
clearInterval(interval_id);
}
i++;
}
var interval_id = setInterval(create_menu, 140);
В общем такая беда. Я во флеше плохо разбираюсь.
Скачал флеш шаблон сайта.
Там анимация меню квадраты.
Наименование этих кнопок-меню в скрипте. Когда меняю их на русский язык, то в мульте не отображается.
И сразу попутно второй вопрос, мне надо будет потом эти же кнопки на китайском языке сделать. Прочел много статей по поводу кириллице в коде, но толком ничего не получилось.
Можете помочь кто-нибудь?
Заранее благодарю.
Если нужен код, то вот он:
Заменить на русский надо ("Introduction", "Portfolio", "Services", "Clients","Testimonials", "Support", "About Us", "Contact")
и
("Short text goes here for page description", "a list of flashmo templates", "Duis vitae velit sed dui malesuada", "Donec mollis aliquet ligula",
"Pellentesque vitae magna", "Suspendisse a nibh tristique justo rhoncus",
"Cum sociis natoque penatibus", "Office locations and email form");
stop();
import mx.transitions.Tween;
import mx.transitions.easing.*;
flashmo_logo._visible = false;
flashmo_logo._y = 100;
menu_item_group.menu_item._visible = false;
var menu_label:Array = new Array("Introduction", "Portfolio", "Services", "Clients","Testimonials", "Support", "About Us", "Contact");
var menu_desc:Array = new Array("Short text goes here for page description", "a list of flashmo templates",
"Duis vitae velit sed dui malesuada", "Donec mollis aliquet ligula",
"Pellentesque vitae magna", "Suspendisse a nibh tristique justo rhoncus",
"Cum sociis natoque penatibus", "Office locations and email form");
// *** both 'menu label' array length and 'menu desc' array must be equal to number of
// *** total frames inside "menu button bg" Movie Clip in the library.
var total:Number = menu_label.length;
var tween_duration:Number = 1.2;// in seconds
var i:Number = 0;
function create_menu():Void
{
position_x = i % 4 * 120 - 180;
position_y = Math.floor(i / 4) * 120 - 60;
var fm = menu_item_group.menu_item.duplicateMovieClip("menu_item" + i, i);
fm.stop();
fm.bg.gotoAndStop(i + 1);
fm.over = true;
fm.item_label = menu_label[i];
fm.item_desc = menu_desc[i];
fm.item_no = i;
fm.flashmo_button._visible = false;
fm.over = true;
fm.flashmo_button.onRollOver = function()
{
this._parent.over = false;
};
fm.flashmo_button.onRollOut = fm.flashmo_button.onDragOut = function ()
{
this._parent.over = true;
};
fm.flashmo_button.onRelease = function()
{
_root.page = this._parent.item_no + 1;
_root.play();
};
fm.onEnterFrame = function()
{
if (this.over == true)
{
this.prevFrame();
}
else
{
this.nextFrame();
}
};
new Tween(fm, "_alpha", Strong.easeOut, 0, 100, tween_duration, true);
new Tween(fm, "_rotation", Strong.easeOut, 180, 0, tween_duration, true);
new Tween(fm, "_x", Strong.easeOut, position_x + 50, position_x, tween_duration, true);
fm_tween = new Tween(fm, "_y", Strong.easeOut, position_y + 100, position_y, tween_duration, true);
fm_tween.onMotionFinished = function()
{
fm.flashmo_button._visible = true;
}
if (i == total - 1)
{
fm_tween.onMotionFinished = function()
{
fm.flashmo_button._visible = true;
flashmo_logo._visible = true;
new Tween(flashmo_logo, "_alpha", Strong.easeOut, 0, 100, tween_duration, true);
}
clearInterval(interval_id);
}
i++;
}
var interval_id = setInterval(create_menu, 140);