I think I got them all.  In case this message is truncated, note the START
and END delimiters of my email.


********************START****************************

// English translation by Steven Erat
// USEFUL TRANSLATIONS
// cargar = to load / cargando = loading
// contenido = content
// ventana = window
// archivo = stylesheet or other page loaded separately
// mostrar = to show
// altura = height
// boton = button
// ocultar  = to hide
// comentarios = comments
// detalles = details
// campo de texto = text area
// menús inferiores = submenu
// enlace = link
// avance y retroceso = next and previous, as in buttons
//


stop();
//loadMovie("chat.swf",1000);
// para mostrar texto con carácteres especiales (acentos, etc..)
// to show the text with special characters (accents, etc)
System.useCodepage = true;
//
// **********************************************************************
//     RESIZE ALTURA CONTENIDO
//     RESIZE CONTENT HEIGHT
// **********************************************************************


allowResize = "true";
Stage.scaleMode = "noScale";
// Alinear el Stage al centro
// Align the Stage in the center
Stage.align = "T";


function resize() {
if (allowResize == "true") {
h1 = Math.ceil(contenido._y + contenido._height + bottom._height)+10;
h2 = ventanas_varias._y + ventanas_varias._height + 10;
v1_medio._height = contenido._height - 10;
bottom._y = contenido._y + contenido._height -10;
if (h1>h2) {
h = h1;
getURL("_javascript_:setFlashHeight('mother',"+h+");");
} else {
h = h2;
getURL("_javascript_:setFlashHeight('mother',"+h+");");
}
}
};


// **********************************************************************
//     AMPLIAR EL CAMPO DE TEXTO AL CONTENIDO
//     ADJUST CONTENT TEXT AREA
// **********************************************************************


contenido.autoSize = "Left";


// **********************************************************************
//                           CARGA DEL ARCHIVO CSS
//        LOAD CSS STYLESHEET
// **********************************************************************


var styleObj = new TextField.StyleSheet();
styleObj.load("style.css");
styleObj. {
if (success) {
contenido.styleSheet = styleObj;
comentarios_mc.textArea_mc.styleSheet = styleObj;
}
};


// **********************************************************************
//                 REPRESENTACION DEL MENU DE LAS CATEGORIAS
//       RENDER MENU OF CATEGORIES
// **********************************************************************


//load Category function
cargaCat();
botonMas._visible = false;
botonMenos._visible = false;
function cargaCat() {
// distancia entre botones, el ALTO (_height) del clip a duplicar.
distancia = categorias_mc._height;
// coordenada inicial del primer botón, en la posición del escenario.
yinicial = categorias_mc._y;
// Crear el objeto LoadVars y cargar el archivo
// Create the object LoadVars and load from an included page
Categorias = new LoadVars();
Categorias.load("php/categorias.php");
Categorias. {
if (suceso) {
for (var i = 1; i<=this.cantidad; i++) {
duplicateMovieClip("categorias_mc", "categorias_mc"+i, i);
setProperty("categorias_mc"+i, _y, yinicial);
// mandamos las variables a los botones
set("categorias_mc"+i+".titulo.htmlText", this["categoria"+i]);
set("categorias_mc"+i+".id", this["id"+i]);
yinicial = yinicial + distancia;
}
} else {
// si no carga el archivo, realizar la siguiente acción:
// if the included page didn't load, take the following action:
// getURL("_javascript_:alert('ERROR: No se ha cargado correctamente la
página')");
getURL("_javascript_:alert('ERROR: The page has not loaded correctly)");
}
coord_y = categorias_sup._y ;
altura = categorias_sup._height;
menu_inf._y = coord_y + altura + (distancia * this.cantidad);
// posición menús inferiores al de Categorias
// position the submenu with respect to the Categories
ventanas_varias._y = menu_inf._y + menu_inf._height - 25;
// ocultar el clip original
// hide the original clip
categorias_mc._visible = false;
// comprueba altura navegador
// confirm the navigator height
resize();
// envia variable URL y llama a la función 'ListCat'
// send the URL variable and call the function 'ListCat'
tmp = new Date();
URL1 = "php/indexArticulos1.php?fecha=" +tmp.getTime();
ListCat();
}
};
// *******************************************************************
//               FUNCION CARGAR CONTENIDO INICIAL
//      FUNCTION TO LOAD INTIAL CONTENT
// *******************************************************************


// función para cargar el contenido
// function to load the content
function ListCat() {
// para subir el scroll arriba
// to scroll up
getURL("_javascript_:window.scroll(0,0)");
// Para cargar en blanco.
// Show a "loading content" message while screen is still blank
contenido.text = "Cargando contenido...";
// Carga de texto
// load the text
noticias1 = new LoadVars();
noticias1.load(URL1);
noticias1. {
if (cargo) {
contenido.htmlText = this.articulos;
texto_cat.htmlText = this.texto_cat;
resize();
// variables para realizar la paginación de resultados.
// variables to make the pagination of the results
cantidadTotal.htmlText = this["cantidadTotal"];
paginaActual = this["actual"];
totalPaginas = this["totalpages"];
paginas.htmlText = "Páginas "+paginaActual+"/"+totalPaginas +" total";
// botones avance y retroceso
// Next and Previous Buttons
pageNum_rsListadoCat = this["pageNum_rsListadoCat"];
totalRows_rsListadoCat = this["totalRows_rsListadoCat"];
retroceso = Number(pageNum_rsListadoCat)-Number(2);
cat_id = this["cat_id"];
direccion = this["direccion"];
titulo = this["titulo"];
cat_id.htmlText = this["cat_id"];
botonAvance =
direccion+"?pageNum_rsListadoCat="+pageNum_rsListadoCat+"&totalRows_rsListad
oCat="+totalRows_rsListadoCat+"&cat_id="+cat_id+"&titulo="+titulo;
botonRetroceso =
direccion+"?pageNum_rsListadoCat="+retroceso+"&totalRows_rsListadoCat="+tota
lRows_rsListadoCat+"&cat_id="+cat_id+"&titulo="+titulo;
// condiciones para ocultar botones avance y retroceso.
// conditions to hide the Next and Previous buttons
botonMas._visible = true;
botonMenos._visible = true;
if (totalPaginas == paginaActual) {
botonMas._visible = false;
}
if (pageNum_rsListadoCat == "1") {
botonMenos._visible = false;
}
if (totalPaginas<"1") {
botonMas._visible = false;
contenido.htmlText ="No se han encontrado resultados";
}
} else {
contenido.htmlText = "Error: No se ha podido conectar con el
servidor.<br>Inténtelo más tarde.";
}
}
};


// Botón subir arriba
// Button to go up
bottom.subir. {
getURL("_javascript_:window.scroll(0,0)");
};


// ***********************************************
// REPRESENTACION COMENTARIOS
// RENDER COMMENTS
// ***********************************************


// Ocultar ventana comentarios
// Hide the comments window
comentarios_mc._visible = false;
// Subir de nivel para una correcta visualización
// Go up to the level for a correct visualization
comentarios_mc.swapDepths(1000);


function verDetalles(id){
tmp = new Date();
comentarios_mc._visible = true;
URL3 = "php/leer_comentarios.php?articulo_id=" + id + "&fecha=" +
tmp.getTime();
detallesComent();
getURL("_javascript_:window.scroll(0,0)");
}
function detallesComent() {
tmp = new Date();
// borrar contenido anterior (si lo hay, claro)
// erase the previous content (if there is any, of course)
// comentarios_mc.textArea_mc.htmlText = "...cargando contenido...";
comentarios_mc.textArea_mc.htmlText = "...loading content...";
comentarios_mc.total.htmlText = "";
//
detalle = new LoadVars();
detalle.load(URL3); // URL es la dirección del archivo
'php/detalleArticulos.php'- The URL is the path to the page
detalle. {
if (succes) {
// enviar contenido nuevo
// send new content
comentarios_mc.textArea_mc.htmlText = this["comentario"];
comentarios_mc.total.htmlText = this["total"];
comentarios_mc.articulo_id = this["articulo_id"];
} else {
// si no carga el archivo, mostrar el siguiente texto:
// if the include didn't load, show the following text:
// comentarios_mc.textArea_mc.htmlText = "Error al cargar los comentarios.
Inténtelo más tarde.";
comentarios_mc.textArea_mc.htmlText = "Error loading comments.  Please try
again later";
}
}
}


// ***********************************************
// REPRESENTACION ENLACES FAVORITOS
// RENDER FAVORITE LINKS
// ***********************************************


favoritos();


// Función para cargar el combo box de datos manualmente
// Function to load the dates combo box manually
function favoritos() {
var favor:Array = [   
{label:'after-hours.org', data:"http://www.after-hours.org
<http://www.after-hours.org> "},
{label:'Robotua.com', data:"http://www.robotua.com <http://www.robotua.com>
"},
{label:'Xtranet.es', data:"http://www.xtranet.es <http://www.xtranet.es> "},
{label:'carlosrovira.com', data:"http://www.carlosrovira.com
<http://www.carlosrovira.com> "},
{label:'design-nation.net', data:"http://www.design-nation.net/es
<http://www.design-nation.net/es> "},
{label:'toto-multimedia.com', data:"http://www.toto-multimedia.com/
<http://www.toto-multimedia.com/> "},
{label:'startdrag.com', data:"http://www.startdrag.com
<http://www.startdrag.com> "}];
//introducir los datos en el combo box
//initialize the dates into the combo box
ventanas_varias.box1.dataProvider = favor;
}
// acciones del botón de Ir al ENLACES FAVORITOS.
// actions for the button to 'Go to FAVORITE LINKS'
ventanas_varias.enlace.> getURL(ventanas_varias.box1.getSelectedItem().data, "_blank");
}


// *************************************************************
//             ACCIONES APARTADO BUSQUEDA
//         ACTIONS FOR SEARCH SECTION
// *************************************************************


ventanas_varias.submit.> if( ventanas_varias.texto1 != null ){
URL1 = "php/busquedaArticulos.php?titulo=" + ventanas_varias.texto1;
ListCat();
page = "php/busquedaArticulos.php?titulo=" + ventanas_varias.texto1;
// borrar campo de texto
// erase the text area
ventanas_varias.texto1 = "";
// ACCIONES BOTON BACK
// BACK BUTTON ACTIONS
URL2= "php/3.php?dato=" + URL1;
getURL(URL2 , "datos");
}
else {
//getURL("_javascript_:alert('ERROR: Introduce un campo de búsqueda.')");
getURL("_javascript_:alert('ERROR: Show a search area')");
}
};


// **************************************************************
//     FUNCIONES PARA CARGAR LOS DETALLES DESDE EL CONTENIDO
//    FUNCTIONS TO LOAD DETAILS AFTER THE CONTENT
// **************************************************************


function detalles(id){
URL1 = "php/detalleArticulos.php?articulo_id=" + id;
ListCat();
// ACCIONES BOTON BACK
// BACK BUTTON ACTIONS
URL2= "php/3.php?dato=" + URL1;
getURL(URL2 , "datos");
page = URL1;
};


// **************************************************************
//     FUNCION PARA LISTAR POR CATEGORIAS DESDE EL CONTENIDO
//    FUNCTION TO LIST CATEGORIES AFTER THE CONTENT
// **************************************************************


function categorias(id){
URL1 = "php/listadoArticulos.php?cat_id=" + id;
ListCat();
// ACCIONES BOTON BACK
// BACK BUTTON ACTIONS
URL2= "php/1.php?cat_id=" + id;
getURL(URL2 , "datos");
page = URL1;
}
//******************************


// enlaces a Activas.net y motion4graphics.com
// links to Activas.net and motion4graphics.com
bottom.hosting. () {
  getURL("http://www.activas.net <http://www.activas.net> ", _blank);


};
bottom.motion. () {
  getURL("http://www.motion4graphics.com <http://www.motion4graphics.com> ",
_blank);


};  


********************END****************************
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to