Flash básico 06: Botones
Dec 10, 07 by Juan Lebrijo about blog, Flash
Para interactuar con el usuario, flash tiene un símbolo básico que es el botón. La idea es la de un botón clásico como en toda aplicación, pero flash tiene una forma peculiar de tratarlo. También veremos como son las herramientas de texto.

Texto

Hay un cuadrado en menú de herramientas para hacer textos. Las propiedades que aparecen en la paleta cuando se trabaja con él son:
image043.png 40.2 KB
OJO: en la paleta de propiedades hay posibilidad de hacer un link.

Crear botones

Lo podemos crear, creando un símbolo a partir de un rectángulo por ejemplo:
  1. Arrastar una forma, rectángulo, a la biblioteca
  2. Seleccionamos que sea del tipo botón.
La línea de tiempos es diferente en un botón:
image045.png 2.11 KB
Los típicos eventos de puntero:
  • Reposo: boton recien dibujado.
  • Sobre: ratón encima
  • Presionado: ratón pulsando
  • Zona Activa: Delimita la zona que va a activar el puntero en la imagen.
Para añadir acción al botón es poniendote sobre el botón y marcando la acción (en actionscript):
image047.png 87.2 KB
Podemos ver un ejemplo de lo contado hasta ahora (fuente):

Eje de tiempos con botones

Navegar por el eje de tiempos cuando presionas un botón (relase – cuando se suelta), se hace llendo al frame 50 en la figura:
image049.png 54.8 KB
Un ejemplo de esto lo veremos en un ejemplo del próximo artículo de Flash.
Flash basics 06: Buttons
Dec 10, 07 by Juan Lebrijo about blog, Flash
To interact with the user, flash has a basic symbol: the button. It is the same as a classic button in all teh aplications you think, but flash have a distinctive treatment modus. We are going to see the Text tools too.

Text

There is a square in the tools menu to make texts. The properties are shown in the palette when you work with texts:
image043.png 40.2 KB
Warning: In the palette have the posibility to make a link.

Create buttons

It can be created,  with a symbol from a rectangle, for example:
  1. Drag a form, rectangle, to the library
  2. Select the symbol type Button.
The time axis is different in the buttons:
image045.png 2.11 KB
The usual pointer events:
  • Stand: Draw button.
  • Over: mouse over
  • Push: pshing mouse
  • Active zone: Limit the zone with activation of the pointer in the image.
To add an action is staying over the button and marking the action (in actionscript):
image047.png 87.2 KB
We can see an example with the las techiques explained (source):

Time axis with buttons

Na vigate from the time axis when you press a button (relase – when you take off the button), you can go to the 50 frame of the figure:
image049.png 54.8 KB
An example qe can see in the following Flash article.
Instalación de PHPLDAPAdmin
Dec 06, 07 by Juan Lebrijo about Administration, blog, LDAP
PHPLDAPAdmin es una aplicación para la administración de servidores de LDAP desarrollada en PHP. Una vez instalada en un servidor LAMP podremos administrar el servicio de directorio remotamente através de internet. Os dejo mi tabla de referencia como viene siendo habitual: Origen http://phpldapadmin.sourceforge.net/ Repositorio http://phpldapadmin.sourceforge.net/download.php Paquete phpldapadmin-1.1.0-alpha3.tar.gz Documentación (inglés) http://wiki.phpldapadmin.info/tiki-index.php?page=Documentation&bl&bl=y Instalación:
  • Descomprimimos, y movemos el directorio al raiz:
tar -zxvf phpldapadmin-1.1.0-alpha3.tar.gz
mv phpldapadmin-1.1.0-alpha3 /var/www/ldap
  • Copiamos el fichero de configuración por defecto:
cd /var/www/ldap
cp config/config.php.example config/config.php
Configuración:
  • Añadir el servidor 0 (podremos administrar por tanto tantos directorios como queramos):
$ldapservers->SetValue($i,'server','name','Nombre descriptivo para el servidor');
// En este caso el directorio esta en la misma máquina que PHPLDAPAdmin, si no
// fuera así pondriamos la IP que correspondiera.
$ldapservers->SetValue($i,'server','host','127.0.0.1');
// Puerto de escucha del servicio
$ldapservers->SetValue($i,'server','port','389');
// Dominio del directorio
$ldapservers->SetValue($i,'server','base',array('dc=lebrijo,dc=com'));
$ldapservers->SetValue($i,'server','auth_type','session');
$ldapservers->SetValue($i,'login','attr','cn');
$ldapservers->SetValue($i,'login','pass','');
  • Attr=cn, para poder entrar con el usuario admin del servidor LDAP para administrarlo.
  • OJO: habría que mejorar la seguridad encriptando con https.
En el /etc/php5/apache2/php.ini subimos el límite de memoria de 16 a 32 MB:
memory_limit = 32M
El acceso web sería: http://www.tudominio.com/ldap/