Comunidad de diseño web y desarrollo en internet online

Problema con variables

Citar            
MensajeEscrito el 28 Jul 2009 12:36 am
hola, nesesito hacer un catalogo... ya esta todo hecho pero el problema es que nesesito que una variable que se declara en un boton afecte otro boton que use esa variable. el codigo es asi=

Boton 1
on (press) {
direcciontienda = www.nodaptation.com;
}



Boton 2
on (press) {
var direcciontienda = www.nodaptation.com;
getURL("http://" + direcciontienda, blank);

}

no se por que no jala... mmm... bueno muchas gracias de antemano

Por Jezzini

16 de clabLevel



 

firefox
Citar            
MensajeEscrito el 28 Jul 2009 01:36 am
solo te faltaron las comillas ^^

Código ActionScript :

on (press) {
var direcciontienda = "www.nodaptation.com";
getURL("http://" + direcciontienda, blank);
}

Por tribak

Claber

2448 de clabLevel

6 tutoriales

Genero:Masculino   Héroes

Fotógrafo o algo

firefox
Citar            
MensajeEscrito el 28 Jul 2009 01:44 am

tribak escribió:

solo te faltaron las comillas ^^

Código ActionScript :

on (press) {
var direcciontienda = "www.nodaptation.com";
getURL("http://" + direcciontienda, blank);
}


gracias jajajaj si ese es uno de los problemas... me equivoque en publicar el codigo

Boton 1

on (press) {

_global.direcciontienda = "noadaptation";
}

Boton 2

on (press) {
getURL("http://" + direcciontienda, blank);
}

Por Jezzini

16 de clabLevel



 

firefox
Citar            
MensajeEscrito el 28 Jul 2009 02:26 am
?
si funciona U_U

Por tribak

Claber

2448 de clabLevel

6 tutoriales

Genero:Masculino   Héroes

Fotógrafo o algo

firefox
Citar            
MensajeEscrito el 28 Jul 2009 05:00 am
ahhh ya encontre la solucion... era facil solo que no sabia la instruccion si declaras tu variable asi funciona para ootros mc o incluso para botones

_global.variable = "valor";

Por Jezzini

16 de clabLevel



 

firefox

 

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