Usamos cookies para medir audiência e melhorar sua experiência. Você pode aceitar ou recusar a qualquer momento. Veja sobre o iMasters.
seguinte:
estou fazendo um testador de roupas online.
o q ele faz:
você escolhe uma referencia da peça nu site e ele abre uma swf com as opções de cores e estampas.
o problema é q dependendo da cor dos detalhes ou do pano, o codigo do produto muda...
o exemplo pode ser visto no site www.intimidadelingerie.com.br (eu q fiz)
só q o codigo tah gigante. e tenho q alterar muita coisa.
e ainda faltam muitos modelos.
sou meio inesperiente em action script e acho q existe uma solução melhor...
o código da referencia 500 é esse:
//Incluindo a Classe Tween no Codigo#include "lmc_tween.as"tx_corpeca = " "tx_cordebrum = " " :thumbsup:tx_estampa = " "tx_cod = " "import mx.transitions.Tween;import mx.transitions.easing.*;new Tween(ball_mc, "_alpha", Strong.easeIn, 0, 100, 1, true);/////////////////////////////////////////////////código botões peça////////////////////////////////////////////////////////////////////////////////////////////////botão verde água/////////////////////////////////////////////bt_pecaverde.onRelease = function() { //validando botões de estampa para eliminar erro bt_f04.onRelease = function() { tx_cod = "35" } mc_peca.colorTo(0xADCBBD, 2, "easeOutSine"); tx_corpeca = "verde água" mc_fundodebrum._x = 340.9 mc_fundodebrum._y = 116.5 bt_debrummarfim._x = 327.1 bt_debrummarfim._y = 120 //botoes que não serão uzados bt_debrumpapaia._x = 600 bt_debrumpapaia._y = 100 bt_debrumchiclete._x = 600 bt_debrumchiclete._y = 100 bt_debrumroxo._x = 600 bt_debrumroxo._y = 100 bt_debrumlilas._x = 600 bt_debrumlilas._y = 100 bt_debrumpink._x = 600 bt_debrumpink._y = 100 bt_debrumbranco._x = 600 bt_debrumbranco._y = 100 bt_debrumverde._x = 600 bt_debrumverde._y = 100 //trocando a cor do viéz ( somente um viéz) mc_debrum.colorTo(0xFFFFE7, 2, "easeOutSine"); tx_cordebrum = "marfim" //chamando a escrita de estampa mc_fundoestampa._x = 342.3 mc_fundoestampa._y = 157.7 //chamando botoes estampa bt_f04._x = 327 bt_f04._y = 160 bt_p04._x = 363 bt_p04._y = 160 //demais botoes bt_f03._x = 600 bt_f03._y = 100 bt_f08._x = 600 bt_f08._y = 100 //balai de gato bt_debrummarfim.onRelease = function(){ bt_f04._x = 327 bt_f04._y = 160 bt_p04._x = 363 bt_p04._y = 160 //eliminando demais botoes bt_f03._x = 600 bt_f03._y = 100 bt_f08._x = 600 bt_f08._y = 100 } //chamando estampa mc_f04._x = 134.4 mc_f04._y = 356.9 new Tween(mc_f04, "_alpha", Strong.easeIn, 0, 100, 1, true); //estampas a serem descartadas mc_p04._x = 600 mc_p04._y = 100 mc_f03._x = 600 mc_f03._y = 100 mc_f04papaia._x = 600 mc_f04papaia._y = 100 mc_f08._x = 600 mc_f08._y = 100 //Atribuição de nomes e código tx_estampa = "F04" tx_cod = "35" ///botão estampa bt_f04._x = 327 bt_f04._y = 160 bt_f04.onRelease = function() { tx_estampa = "F04" tx_cod = "35" mc_f04._x = 134.4 mc_f04._y = 356.9 new Tween(mc_f04, "_alpha", Strong.easeIn, 0, 100, 1, true); ///descartando demais estampas mc_p04._x = 100 mc_p04._y = 600 mc_f04papaia._x = 100 mc_f04papaia._y = 600 mc_f08._x = 100 mc_f08._y = 600 mc_f03._x = 100 mc_f03._y = 600 tx_estampa = "F04" tx_cod = "35" } bt_p04.onRelease = function() { tx_estampa = "P04" tx_cod = "53" mc_p04._x = 97.4 mc_p04._y = 286.6 new Tween(mc_p04, "_alpha", Strong.easeIn, 0, 100, 1, true); ///descartando demais estampas mc_f04._x = 100 mc_f04._y = 600 mc_f04papaia._x = 100 mc_f04papaia._y = 600 mc_f08._x = 100 mc_f08._y = 600 mc_f03._x = 100 mc_f03._y = 600 tx_estampa = "P04" tx_cod = "53" } };////////////////////////////////////////////////////////botão marfim////////////////////////////////////////////////bt_pecamarfim.onRelease = function() { mc_peca.colorTo(0xFFFFE7, 2, "easeOutSine"); tx_corpeca = "marfim" op = 2 //variavel op para controle de opções mc_fundodebrum._x = 340.9 mc_fundodebrum._y = 116.5 bt_debrumpapaia._x = 327.1 bt_debrumpapaia._y = 120 bt_debrumchiclete._x = 350 bt_debrumchiclete._y = 120 bt_debrumroxo._x = 374 bt_debrumroxo._y = 120 //botoes que não serão uzados bt_debrumlilas._x = 600 bt_debrumlilas._y = 100 bt_debrumpink._x = 600 bt_debrumpink._y = 100 bt_debrumbranco._x = 600 bt_debrumbranco._y = 100 bt_debrumverde._x = 600 bt_debrumverde._y = 100 //trocando a cor do viéz ( somente um viéz) viéz papaia mc_debrum.colorTo(0xEF8673, 2, "easeOutSine"); tx_cordebrum = "papaia" //chamando a escrita de estampa mc_fundoestampa._x = 342.3 mc_fundoestampa._y = 157.7 //chamando botoes estampa bt_f04._x = 327 bt_f04._y = 160 //descartando demais botões bt_f03._x = 600 bt_f03._y = 100 bt_p04._x = 600 bt_p04._y = 100 bt_f08._x = 600 bt_f08._y = 100 //Chamando estampa mc_f04papaia._x = 134.4 mc_f04papaia._y = 356.9 //descartando demais estampas mc_f04._x = 600 mc_f04._y = 100 mc_f03._x = 600 mc_f03._y = 100 mc_p04._x = 600 mc_p04._y = 100 mc_f08._x = 600 mc_f08._y = 100 new Tween(mc_f04papaia, "_alpha", Strong.easeIn, 0, 100, 1, true); //Atribuição de nomes tx_estampa = "F04" tx_cod = "36" //////////Botões de debrum //chiclete bt_debrumchiclete.onRelease = function() { //estrutura de controle de código tx_cod = "" mc_debrum.colorTo(0xF79ABD, 2, "easeOutSine"); tx_cordebrum = "chiclete" //chamando a escrita de estampa mc_fundoestampa._x = 342.3 mc_fundoestampa._y = 157.7 //atribuindo estampa inicial tx_estampa = "F03" tx_cod = "39" //atribuindo estampa inicial referente ao debrum mc_f03._x = 150.3 mc_f03._y = 317.8 new Tween(mc_f03, "_alpha", Strong.easeIn, 0, 100, 1, true); ///descartando demais estampas mc_p04._x = 100 mc_p04._y = 600 mc_f04papaia._x = 100 mc_f04papaia._y = 600 mc_f08._x = 100 mc_f08._y = 600 ///botão estampa bt_f03._x = 327 bt_f03._y = 160 bt_f03.onRelease = function() { //estrutura de controle de código tx_estampa = "F03" tx_cod = "39" mc_f04._x = 150.3 mc_f04._y = 317.8 new Tween(mc_f03, "_alpha", Strong.easeIn, 0, 100, 1, true); ///descartando demais estampas mc_p04._x = 100 mc_p04._y = 600 mc_f04papaia._x = 100 mc_f04papaia._y = 600 mc_f08._x = 100 mc_f08._y = 600 mc_f04._x = 100 mc_f04._y = 600 } bt_p04._x = 363 bt_p04._y = 160 bt_p04.onRelease = function() { tx_estampa = "P04" tx_cod = "52" mc_p04._x = 97.4 mc_p04._y = 286.6 new Tween(mc_p04, "_alpha", Strong.easeIn, 0, 100, 1, true); ///descartando demais estampas mc_f04._x = 100 mc_f04._y = 600 mc_f04papaia._x = 100 mc_f04papaia._y = 600 mc_f08._x = 100 mc_f08._y = 600 mc_f03._x = 100 mc_f03._y = 600 } ///botões a serem discartados bt_f04._x = 600 bt_f04._y = 100 bt_f08._x = 600 bt_f08._y = 100 } //roxo bt_debrumroxo.onRelease = function() { //estrutura de controle de código tx_cod = "" mc_debrum.colorTo(0x8C5594, 2, "easeOutSine"); tx_cordebrum = "roxo" //chamando a escrita de estampa mc_fundoestampa._x = 342.3 mc_fundoestampa._y = 157.7 //atribuindo nomes estampa inicial e codigo tx_estampa = "F08" tx_cod = "44" //atribuindo estampa inicial referente ao debrum mc_f08._x = 181.8 mc_f08._y = 325.1 new Tween(mc_f08, "_alpha", Strong.easeIn, 0, 100, 1, true); ///descartando demais estampas mc_p04._x = 100 mc_p04._y = 600 mc_f04papaia._x = 100 mc_f04papaia._y = 600 mc_f04._x = 100 mc_f04._y = 600 mc_f03._x = 100 mc_f03._y = 600 //botão estampa bt_f08._x = 327 bt_f08._y = 160 //estampas a serem descartadas bt_f03._x = 600 bt_f03._y = 100 bt_f04._x = 600 bt_f04._y = 100 bt_p04._x = 600 bt_p04._y = 100 } //papaia bt_debrumpapaia.onRelease = function() { mc_debrum.colorTo(0xEF8673, 2, "easeOutSine"); tx_cordebrum = "papaia" //chamando a escrita de estampa mc_fundoestampa._x = 342.3 mc_fundoestampa._y = 157.7 //chamando a escrita de estampa mc_fundoestampa._x = 342.3 mc_fundoestampa._y = 157.7 //botão estampa bt_f04._x = 327 bt_f04._y = 160 //atribuindo estampa inicial referente ao debrum mc_f04papaia._x = 134.4 mc_f04papaia._y = 356.9 new Tween(mc_f04papaia, "_alpha", Strong.easeIn, 0, 100, 1, true); ///descartando demais estampas mc_p04._x = 100 mc_p04._y = 600 mc_f04._x = 100 mc_f04._y = 600 mc_f08._x = 100 mc_f08._y = 600 mc_f03._x = 100 mc_f03._y = 600 //Atribuição de nomes tx_cod = "" tx_estampa = "F04" tx_cod = "36" //botoes estampas a serem descartadas bt_f03._x = 600 bt_f03._y = 100 bt_p04._x = 600 bt_p04._y = 100 bt_f08._x = 600 bt_f08._y = 100 } //validando botões de estampa para eliminar erro bt_f04.onRelease = function() { tx_cod = "36" } bt_f03.onRelease = function() { tx_cod = "39" } bt_p04.onRelease = function() { tx_cod = "52" } };/////////////////////////////////////////////////////////////////////////botão lilás//////////////////////////////////////////bt_pecalilas.onRelease = function() { mc_peca.colorTo(0xC6A6CE, 2, "easeOutSine"); tx_corpeca = "lilás" op = 3 //variavel op para controle de opções mc_fundodebrum._x = 340.9 mc_fundodebrum._y = 116.5 bt_debrummarfim._x = 327.1 bt_debrummarfim._y = 120 bt_debrumroxo._x = 350 bt_debrumroxo._y = 120 //botoes que não serão uzados bt_debrumpapaia._x = 600 bt_debrumpapaia._y = 100 bt_debrumchiclete._x = 600 bt_debrumchiclete._y = 100 bt_debrumlilas._x = 600 bt_debrumlilas._y = 100 bt_debrumpink._x = 600 bt_debrumpink._y = 100 bt_debrumbranco._x = 600 bt_debrumbranco._y = 100 bt_debrumverde._x = 600 bt_debrumverde._y = 100 //trocando a cor do viéz ( somente um viéz) mc_debrum.colorTo(0xFFFFE7, 2, "easeOutSine"); tx_cordebrum = "marfim" //chamando a escrita de estampa mc_fundoestampa._x = 342.3 mc_fundoestampa._y = 157.7 //chamando botões da estampa bt_p04._x = 327 bt_p04._y = 160 //descartando demais botões bt_f04._x = 600 bt_f04._y = 100 bt_f03._x = 600 bt_f03._y = 100 //chamando estampa inicial mc_p04._x = 97.4 mc_p04._y = 286.6 new Tween(mc_p04, "_alpha", Strong.easeIn, 0, 100, 1, true); //descartando demais estampas mc_f04._x = 600 mc_f04._y = 100 mc_f03._x = 600 mc_f03._y = 100 mc_f04papaia._x = 600 mc_f04papaia._y = 100 mc_f08._x = 600 mc_f08._y = 100 //Atribuição de nomes tx_estampa = "P04" tx_cod = "50" //////////Botões de debrum //roxo bt_debrumroxo.onRelease = function() { mc_debrum.colorTo(0x8C5594, 2, "easeOutSine"); tx_cordebrum = "roxo" //chamando a escrita de estampa mc_fundoestampa._x = 342.3 mc_fundoestampa._y = 157.7 //atribuindo estampa inicial tx_estampa = "F08" tx_cod = "45" //atribuindo estampa inicial referente ao debrum mc_f08._x = 181.8 mc_f08._y = 325.1 new Tween(mc_f08, "_alpha", Strong.easeIn, 0, 100, 1, true); //descarando demais estampas mc_f04._x = 600 mc_f04._y = 100 mc_f03._x = 600 mc_f03._y = 100 mc_f04papaia._x = 600 mc_f04papaia._y = 100 mc_p04._x = 600 mc_p04._y = 100 bt_f08._x = 327 bt_f08._y = 160 //descartando demais botões: bt_f04._x = 600 bt_f04._y = 100 bt_f03._x = 600 bt_f03._y = 100 bt_p04._x = 600 bt_p04._y = 100 } //marfim bt_debrummarfim.onRelease = function() { mc_debrum.colorTo(0xFFFFE7, 2, "easeOutSine"); tx_cordebrum = "marfim" //chamando a escrita de estampa mc_fundoestampa._x = 342.3 mc_fundoestampa._y = 157.7 //botão estampa bt_p04._x = 327 bt_p04._y = 160 //atribuindo estampa inicial referente ao debrum mc_p04._x = 97.4 mc_p04._y = 286.6 new Tween(mc_p04, "_alpha", Strong.easeIn, 0, 100, 1, true); //descartando demais estampas mc_f04._x = 600 mc_f04._y = 100 mc_f03._x = 600 mc_f03._y = 100 mc_f04papaia._x = 600 mc_f04papaia._y = 100 mc_f08._x = 600 mc_f08._y = 100 //Atribuição de nomes tx_estampa = "P04" tx_cod = "50" //botões de estampas a serem descartadas bt_f04._x = 600 bt_f04._y = 100 bt_f03._x = 600 bt_f03._y = 100 bt_f08._x = 600 bt_f08._y = 100 } bt_p04.onRelease = function(){ tx_cod = "50" } };/////////////////////////////////////////////////////////botão branco////////////////////////////////////////////bt_pecabranco.onRelease = function() { mc_peca.colorTo(0xFFFFFF, 2, "easeOutSine"); tx_corpeca = "branco",(branco); op = 4 //variavel op para controle de opções mc_fundodebrum._x = 340.9 mc_fundodebrum._y = 116.5 bt_debrumroxo._x = 327.1 bt_debrumroxo._y = 120 bt_debrumchiclete._x = 350 bt_debrumchiclete._y = 120 bt_debrumpink._x = 400 bt_debrumpink._y = 120 bt_debrumpapaia._x = 375 bt_debrumpapaia._y = 120 //botoes que não serão uzados bt_debrumlilas._x = 600 bt_debrumlilas._y = 100 bt_debrumbranco._x = 600 bt_debrumbranco._y = 100 bt_debrumverde._x = 600 bt_debrumverde._y = 100 bt_debrummarfim._x = 600 bt_debrummarfim._y = 100 //trocando a cor do viéz ( somente um viéz) mc_debrum.colorTo(0x8C5594, 2, "easeOutSine"); tx_cordebrum = "roxo" //chamando a escrita de estampa mc_fundoestampa._x = 342.3 mc_fundoestampa._y = 157.7 //chamando botões da estampa bt_f08._x = 327 bt_f08._y = 160 //descartando demais botoes bt_f04._x = 600 bt_f04._y = 100 bt_f03._x = 600 bt_f03._y = 100 bt_p04._x = 600 bt_p04._y = 100 //chamando estampa mc_f08._x = 181.8 mc_f08._y = 325.1 new Tween(mc_f08, "_alpha", Strong.easeIn, 0, 100, 1, true); //descarando demais estampas mc_f04._x = 600 mc_f04._y = 100 mc_f03._x = 600 mc_f03._y = 100 mc_f04papaia._x = 600 mc_f04papaia._y = 100 mc_p04._x = 600 mc_p04._y = 100 //atribuição de nomes tx_estampa = "F08" tx_cod = "43" //////////Botões de debrum //chiclete bt_debrumchiclete.onRelease = function() { mc_debrum.colorTo(0xF79ABD, 2, "easeOutSine"); tx_cordebrum = "chiclete" //chamando a escrita de estampa mc_fundoestampa._x = 342.3 mc_fundoestampa._y = 157.7 //atribuindo estampa inicial tx_estampa = "P04" tx_cod = "51" //ATRIBUINDO ESTAMPA INICIAL REFERENTE AO DEBRUM mc_p04._x = 97.4 mc_p04._y = 286.6 new Tween(mc_p04, "_alpha", Strong.easeIn, 0, 100, 1, true); //descarando demais estampas mc_f04._x = 600 mc_f04._y = 100 mc_f03._x = 600 mc_f03._y = 100 mc_f04papaia._x = 600 mc_f04papaia._y = 100 mc_f08._x = 600 mc_f08._y = 100 ///botão estampa bt_p04._x = 327 bt_p04._y = 160 //descartando demais botoes bt_f04._x = 600 bt_f04._y = 100 bt_f03._x = 600 bt_f03._y = 100 bt_f08._x = 600 bt_f08._y = 100 } //roxo bt_debrumroxo.onRelease = function() { mc_debrum.colorTo(0x8C5594, 2, "easeOutSine"); tx_cordebrum = "roxo" //chamando a escrita de estampa mc_fundoestampa._x = 342.3 mc_fundoestampa._y = 157.7 //atribuindo estampa inicial tx_estampa = "F08" tx_cod = "43" //ATRIBUINDO ESTAMPA INICIAL REFERENTE AO DEBRUM mc_f08._x = 181.8 mc_f08._y = 325.1 new Tween(mc_f08, "_alpha", Strong.easeIn, 0, 100, 1, true); //descarando demais estampas mc_f04._x = 600 mc_f04._y = 100 mc_f03._x = 600 mc_f03._y = 100 mc_f04papaia._x = 600 mc_f04papaia._y = 100 mc_p04._x = 600 mc_p04._y = 100 ///botão estampa bt_f08._x = 327 bt_f08._y = 160 //descartando demais botoes bt_f04._x = 600 bt_f04._y = 100 bt_f03._x = 600 bt_f03._y = 100 bt_p04._x = 600 bt_p04._y = 100 } //papaia bt_debrumpapaia.onRelease = function() { mc_debrum.colorTo(0xEF8673, 2, "easeOutSine"); tx_cordebrum = "papaia" //chamando a escrita de estampa mc_fundoestampa._x = 342.3 mc_fundoestampa._y = 157.7 //atribuindo estampa inicial tx_estampa = "f04" tx_cod = "36" //ATRIBUINDO ESTAMPA INICIAL REFERENTE AO DEBRUM mc_f04papaia._x = 134.4 mc_f04papaia._y = 356.9 new Tween(mc_f04papaia, "_alpha", Strong.easeIn, 0, 100, 1, true); //descarando demais estampas mc_f04._x = 600 mc_f04._y = 100 mc_f03._x = 600 mc_f03._y = 100 mc_f08._x = 600 mc_f08._y = 100 mc_p04._x = 600 mc_p04._y = 100 ///botão estampa bt_f04._x = 327 bt_f04._y = 160 //descartando demais botoes bt_f08._x = 600 bt_f08._y = 100 bt_f03._x = 600 bt_f03._y = 100 bt_p04._x = 600 bt_p04._y = 100 } //pink bt_debrumpink.onRelease = function() { mc_debrum.colorTo(0xDE107B, 2, "easeOutSine"); tx_cordebrum = "pink" //chamando a escrita de estampa mc_fundoestampa._x = 342.3 mc_fundoestampa._y = 157.7 //atribuindo estampa inicial tx_estampa = "F03" tx_cod = "42" //ATRIBUINDO ESTAMPA INICIAL REFERENTE AO DEBRUM mc_f03._x = 150.3 mc_f03._y = 317.8 new Tween(mc_f03, "_alpha", Strong.easeIn, 0, 100, 1, true); //descarando demais estampas mc_f04._x = 600 mc_f04._y = 100 mc_f04papaia._x = 600 mc_f04papaia._y = 100 mc_f08._x = 600 mc_f08._y = 100 mc_p04._x = 600 mc_p04._y = 100 ///botão estampa bt_f03._x = 327 bt_f03._y = 160 //descartando demais botoes bt_f08._x = 600 bt_f08._y = 100 bt_f04._x = 600 bt_f04._y = 100 bt_p04._x = 600 bt_p04._y = 100 } };/////////////////////////////////////////////////////////botão Chiclete//////////////////////////////////////////////bt_pecachiclete.onRelease = function() { mc_peca.colorTo(0xF79ABD, 2, "easeOutSine"); tx_corpeca = "chiclete" op = 5 //variavel op para controle de opções mc_fundodebrum._x = 340.9 mc_fundodebrum._y = 116.5 bt_debrummarfim._x = 327.1 bt_debrummarfim._y = 120 //botoes que não serão uzados bt_debrumpapaia._x = 600 bt_debrumpapaia._y = 100 bt_debrumchiclete._x = 600 bt_debrumchiclete._y = 100 bt_debrumroxo._x = 600 bt_debrumroxo._y = 100 bt_debrumlilas._x = 600 bt_debrumlilas._y = 100 bt_debrumpink._x = 600 bt_debrumpink._y = 100 bt_debrumbranco._x = 600 bt_debrumbranco._y = 100 bt_debrumverde._x = 600 bt_debrumverde._y = 100 //trocando a cor do viéz ( somente um viéz) mc_debrum.colorTo(0xFFFFE7, 2, "easeOutSine"); tx_cordebrum = "marfim" //chamando a escrita de estampa mc_fundoestampa._x = 342.3 mc_fundoestampa._y = 157.7 //chamando botões de estampa bt_p04._x = 327 bt_p04._y = 160 //descartando demais botoes bt_f08._x = 600 bt_f08._y = 100 bt_f04._x = 600 bt_f04._y = 100 bt_f03._x = 600 bt_f03._y = 100 //chamando estampa mc_p04._x = 97.4 mc_p04._y = 286.6 //descartando demais estampas mc_f08._x = 600 mc_f08._y = 100 mc_f04._x = 600 mc_f04._y = 100 mc_f03._x = 600 mc_f03._y = 100 mc_f04papaia._x = 600 mc_f04papaia._y = 100 new Tween(mc_p04, "_alpha", Strong.easeIn, 0, 100, 1, true); //atribuição de nomes tx_estampa = "P04" tx_cod = "49" /////////Botões de debrum //chiclete bt_debrumchiclete.onRelease = function() { mc_debrum.colorTo(0xF79ABD, 2, "easeOutSine"); tx_cordebrum = "chiclete" //chamando a escrita de estampa mc_fundoestampa._x = 342.3 mc_fundoestampa._y = 157.7 } //roxo bt_debrumroxo.onRelease = function() { mc_debrum.colorTo(0x8C5594, 2, "easeOutSine"); tx_cordebrum = "roxo" //chamando a escrita de estampa mc_fundoestampa._x = 342.3 mc_fundoestampa._y = 157.7 } //papaia bt_debrumpapaia.onRelease = function() { mc_debrum.colorTo(0xEF8673, 2, "easeOutSine"); tx_cordebrum = "papaia" //chamando a escrita de estampa mc_fundoestampa._x = 342.3 mc_fundoestampa._y = 157.7 } //Branco bt_debrumbranco.onRelease = function() { mc_debrum.colorTo(0xFFFFFF, 2, "easeOutSine"); tx_cordebrum = "branco" //chamando a escrita de estampa mc_fundoestampa._x = 342.3 mc_fundoestampa._y = 157.7 } //pink bt_debrumpink.onRelease = function() { mc_debrum.colorTo(0xDE107B, 2, "easeOutSine"); tx_cordebrum = "pink" //chamando a escrita de estampa mc_fundoestampa._x = 342.3 mc_fundoestampa._y = 157.7 } //verde água bt_debrumverde.onRelease = function() { mc_debrum.colorTo(0xADCBBD, 2, "easeOutSine"); tx_cordebrum = "verde água" //chamando a escrita de estampa mc_fundoestampa._x = 342.3 mc_fundoestampa._y = 157.7 } //marfim bt_debrummarfim.onRelease = function() { mc_debrum.colorTo(0xFFFFE7, 2, "easeOutSine"); tx_cordebrum = "marfim" //chamando a escrita de estampa mc_fundoestampa._x = 342.3 mc_fundoestampa._y = 157.7 };bt_p04.onRelease = function() { tx_cod = "49" }/////////////////////////////////////////////////código botões peça///////////////////////////////////////////////botão debrum brancobt_debrumbranco.onRelease = function() { mc_debrum.colorTo(0xFFFFFF, 2, "easeOutSine"); tx_debrum = "branco"}//botão debrum chicletebt_debrumchiclete.onRelease = function() { mc_debrum.colorTo(0xF79ABD, 2, "easeOutSine"); tx_cordebrum = "chiclete"}}
o código e taum grande que nem sei se coube ele todo.
enfim, acho q se eu trabalhasse com funçoes, ou reaproveitamento de código,
mais naum faço nem ideia de como se faz isso.
se alguem tiver tempo e paciencia pra ler ai e indicar us erros,
meu sonho é que esse codigo diminua consideravelmente!
Obrigado aê galera! http://forum.imasters.com.br/public/style_emoticons/default/thumbsup.gif
Carregando comentários...