Comunidad de diseño web y desarrollo en internet online

Flash player 6

Citar            
MensajeEscrito el 30 Mar 2010 05:23 pm
Buenas.

tengo este codigo de action 2 en flash player 6, y lo necesito en flash player 8..Alguien me puede ayudar?? es un Menu desplegablablw que me conecta con swf:

function cont_vars(name_var) {
cont = 1;
while (eval(name_var.concat(cont)) != undefined and eval(name_var.concat(cont)) != "") {
cont = 1 + cont;
}
return cont - 1;
}
function bt_reaccion(numero, nombre1, nombre2, nombre3) {
function nombre1() {
eval("bt".concat(numero)).box_col = mcol5;
eval("titulo".concat(numero)).objcol = mcol1;
eval("nomenclatura".concat(numero)).objcol = mcol3;
}
function nombre2() {
eval("bt".concat(numero)).box_col = mcol4;
eval("titulo".concat(numero)).objcol = mcol0;
eval("nomenclatura".concat(numero)).objcol = mcol2;
}
function nombre3() {
eval(mfun)(numero);
}
set("bt".concat(numero, ".onRollOver"), nombre1);
set("bt".concat(numero, ".onRollOut"), nombre2);
set("bt".concat(numero, ".onReleaseOutside"), nombre2);
set("bt".concat(numero, ".onRelease"), nombre3);
}
function add_box(nombre, x, y, w, h, col) {
num_boxes = 1 + num_boxes;
this.attachMovie("gn_box2", nombre, num_boxes + 200, {gbenlazado:true, gbcol: col, gbx:x, gby:y, gbw:w, gbh:h, gbr:0, gbalpha:100, gbv:true});
}
function add_sep(nombre, x, y) {
num_separa = 1 + num_separa;
this.attachMovie("menu_separador", nombre, num_separa + 300);
setProperty(nombre, _x, x);
setProperty(nombre, _y, y);
}
function add_txfield(nombre, x, y, col, texto, ancho, al) {
num_fields = 1 + num_fields;
this.attachMovie("campo_texto", nombre, num_fields + 500, {objcolor: col, tx:texto, txw:ancho, txalineacion:al, txfn_comp:mfn_comp, txfont:mfuente});
setProperty(nombre, _x, x);
setProperty(nombre, _y, y);
eval(nombre).alto = 12;
lasth = eval(nombre)._height;
lasty = eval(nombre)._y;
}
function gen_men() {
tamx = this._width;
this._xscale = 100;
this._yscale = 100;
tit_cant = cont_vars(mtit);
if (mtit != "") {
lasth = 0;
cont = 0;
for (i=1; i < tit_cant + 1; i++) {
add_txfield("titulo".concat(i), mnomw + mnoms+15, lasty + lasth + mtits, mcol0, eval(mtit.concat(i)), tamx - mnomw - mnoms, "left");
}
}
if (mnom != "") {
for (i=1; i < tit_cant + 1; i++) {
txnomen = String(eval(mnom + i));
if (txnomen.substr(0,1) == "_") {
if (txnomen.substr(txnomen.length-1, 1) == "0") {
txnomen = txnomen.substr(1);
trace(txnomen + "cierto");
}
}
add_txfield("nomenclatura".concat(i), 0, eval("titulo".concat(i))._y, mcol2, txnomen, mnomw+15, "right");
add_box("bt".concat(i), 0, eval("nomenclatura".concat(i))._y, tamx, eval("titulo".concat(i))._height, mcol4);
if (int(txnomen.substr(0,1))< 1) {
eval("nomenclatura".concat(i))._visible = 0;
}
if (mbuttons == true) {
bt_reaccion(i, "bt_over".concat(i), "bt_out".concat(i), "bt_rel".concat(i));
}
}
}
}
gen_men();

Por jd25

1 de clabLevel



 

msie7
Citar            
MensajeEscrito el 08 Abr 2010 03:55 pm
especificamente en que necesitas ayudar???
Ademas de poner todo el codigo, cuales son tus dudas?

saludos

Por bubudrc

Claber

591 de clabLevel

1 tutorial

 

mayo 2006

msie8

 

Cristalab BabyBlue v4 + V4 © 2011 Cristalab
Powered by ClabEngines v4, HTML5, love and ponies.