Hi guys
I’m using Lucas’s cool little menu tween FLA over at FFF (http://www.ffiles.com/view_listing.php?sid=151&cat=4). Everything works great, but I want to launch HTML files instead of SWF’s from the buttons. Below is the code he has included in the movie that control the buttons. Any ideas as to how I would adapt this launch HTML, rather than the SWF?
Much appreciated!!
#include "lmc_tween.as"
Stage.scaleMode = "noScale";
Stage.align = "TL";
//
//
voltar.enabled = false;
voltar.useHandCursor = false;
voltar._y = info._y=works._y=exp._y=links._y=mail._y=50;
//
info.tween("_y", 13, 1, "easeoutElastic", 0.1);
works.tween("_y", 13, 1, "easeoutElastic", 0.2);
exp.tween("_y", 13, 1, "easeoutElastic", 0.3);
links.tween("_y", 13, 1, "easeoutElastic", 0.4);
mail.tween("_y", 13, 1, "easeoutElastic", 0.5);
//
_global.itens = [info, works, exp, links, mail];
_global.swfs = ["info.swf", "works.swf", "exp.swf", "links.swf", "mail.swf"];
function fcn() {
for (var i = 0; i<itens.length; i++) {
if (i != selecionado) {
itens*.tween("_y", 13, 1, "easeoutElastic");
itens*.enabled = true;
itens*.useHandCursor = true;
}
}
}
for (var i = 0; i<itens.length; i++) {
itens*.i = i;
itens*.onRollOver = function() {
this.tween("_y", 3, 1, "easeoutElastic");
};
itens*.onRollOut = itens*.onReleaseOutside=function () {
this.tween("_y", 13, 1, "easeoutElastic");
};
itens*.onRelease = function() {
_global.selecionado = this.i;
trace(swfs[selecionado]);
this.tween("_y", 3, 1, "easeoutElastic");
this.enabled = false;
this.useHandCursor = false;
fcn();
//
this._parent.voltar.tween("_y", 13, 1, "easeoutElastic");
this._parent.voltar.enabled = true;
this._parent.voltar.useHandCursor = true;
};
}
voltar.onRollOver = function() {
this.tween("_y", 3, 1, "easeoutElastic");
};
voltar.onRollOut = function() {
this.tween("_y", 13, 1, "easeoutElastic");
};
voltar.onRelease = function() {
for (var i = 0; i<itens.length; i++) {
itens*.tween("_y", 13, 1, "easeoutElastic");
itens*.enabled = true;
itens*.useHandCursor = true;
this.tween("_y", 50, 1, "easeoutElastic");
this.enabled = false;
this.useHandCursor = false;
_root.alvo.loadMovie("home.swf");
}
};
this.createEmptyMovieClip("bt_para", 111);
bt_para.beginFill(0xffffff, 0);
bt_para.moveTo(-0, 0);
bt_para._x = 0;
bt_para._y = 0;
bt_para.lineTo(largura, 0);
bt_para.lineTo(largura, altura);
bt_para.lineTo(0, altura);
bt_para.lineTo(0, 0);
bt_para.useHandCursor = false;
bt_para.onRelease = function() {
trace("nothing");
};