Ir para conteúdo

POWERED BY:

Arquivado

Este tópico foi arquivado e está fechado para novas respostas.

Marcos.Rossetto

Cade a janela ?????

Recommended Posts

seguite galera

 

to fazendo uma galeria de fotos e preciso que abra o componente window (quando clicar em um botão x) para acessar as fotos

mas ele naum esta abrindo, ou naum esta aparecendo

 

FLA : http://www.coopersuigrao.com.br/arquivos/modelos.fla

 

CODIGO DOS BOTÕES:

Title1 = "Nicoly";

Title2 = "Não disponível";

Title3 = "Não disponível";

Title4 = "Não disponível";

Title5 = "Não disponível";

Title6 = "Não disponível";

Title7 = "Não disponível";

Title8 = "Não disponível";

Title9 = "Não disponível";

 

function bubblereset() {

tooltip.stopDrag();

setProperty("tooltip", _x, "-20");

setProperty("tooltip", _y, "-20");

}

// Triggers the tooltip to appear by the curspr

function toolstart() {

_root.tooltip.gotoAndPlay("toolplay");

startDrag("tooltip", true);

}

 

function setsite() {

webname = webURL.substr(7, 50);

}

web.onRelease = function() {

getURL(webURL, "_blank");

};

button1.onRollOver = function() {

toolstart();

_root.tooltip.bubble = Title1;

};

button1.onRollOut = function() {

bubblereset();

};

button2.onRollOver = function() {

toolstart();

_root.tooltip.bubble = Title2;

};

button2.onRollOut = function() {

bubblereset();

};

button3.onRollOver = function() {

toolstart();

_root.tooltip.bubble = Title3;

};

button3.onRollOut = function() {

bubblereset();

};

button4.onRollOver = function() {

toolstart();

_root.tooltip.bubble = Title4;

};

button4.onRollOut = function() {

bubblereset();

};

button5.onRollOver = function() {

toolstart();

_root.tooltip.bubble = Title5;

};

button5.onRollOut = function() {

bubblereset();

};

button6.onRollOver = function() {

toolstart();

_root.tooltip.bubble = Title6;

};

button6.onRollOut = function() {

bubblereset();

};

button7.onRollOver = function() {

toolstart();

_root.tooltip.bubble = Title7;

};

button7.onRollOut = function() {

bubblereset();

};

button8.onRollOver = function() {

toolstart();

_root.tooltip.bubble = Title8;

};

button8.onRollOut = function() {

bubblereset();

};

button9.onRollOver = function() {

toolstart();

_root.tooltip.bubble = Title9;

};

button9.onRollOut = function() {

bubblereset();

};

button10.onRollOver = function() {

toolstart();

_root.tooltip.bubble = Title10;

};

button10.onRollOut = function() {

bubblereset();

};

button11.onRollOver = function() {

toolstart();

_root.tooltip.bubble = Title11;

};

button11.onRollOut = function() {

bubblereset();

};

button12.onRollOver = function() {

toolstart();

_root.tooltip.bubble = Title12;

};

button12.onRollOut = function() {

bubblereset();

};

 

CODIGO DO COMPONENTE WINDOW:

import mx.containers.Window;

import mx.managers.PopUpManager;

button1.onRelease = function() {

//Criando o Window com o botão fechar

var win = PopUpManager.createPopUp(_root, Window, true, {closeButton:true, title:"Teste", contentPath:"conteudo_win.swf"});

var winListener:Object = new Object();

winListener.click = function() {

win.deletePopUp();

};

win.addEventListener("click", winListener);

//Ajeitando o tamanho e posição

win.move(100, 100);

win.setSize(250, 150);

};

Compartilhar este post


Link para o post
Compartilhar em outros sites

×

Informação importante

Ao usar o fórum, você concorda com nossos Termos e condições.