Author Archive for

La clase ContextMenu

La clase ContextMenuItem se utiliza para crear elementos de menú personalizados y visualizarlos en el menú contextual de Flash Player. Cada objeto ContextMenuItem tiene un título (texto) que se visualiza en el menú contextual y un controlador callback (función) que se invoca al seleccionar el elemento de menú.

2 Votes | Average: 5 out of 52 Votes | Average: 5 out of 52 Votes | Average: 5 out of 52 Votes | Average: 5 out of 52 Votes | Average: 5 out of 5 (2 votos, promedio: 5 sobre 5)
Loading ... Loading ...

Flash MX2004 - Clase styleSheet: Carga de archivos CSS externos.

Las hojas de estilos CSS están representadas en ActionScript mediante la clase TextField.StyleSheet.

 Votes | Average: 0 out of 5 Votes | Average: 0 out of 5 Votes | Average: 0 out of 5 Votes | Average: 0 out of 5 Votes | Average: 0 out of 5 (No hay votos todavia.)
Loading ... Loading ...

Stage.onResize - Menú escalable.

Este script genera un menú horizontal cuyos botones se ajustan el ancho del navegador.
Ver ejemplo
PLAIN TEXT
Actionscript:

Stage.scaleMode = 'noScale';

Stage.align = 'TL';

formato = new TextFormat();

formato.font = 'verdana';

formato.size = 10;

function makeBoton(tmp_mc, ancho, largo, p, col, label) {

    var tm_mc = tmp_mc.createEmptyMovieClip("tempo" + p, p);

    tm_mc.beginFill(col);

    tm_mc.lineTo(0, 0);

    tm_mc.lineTo(0 + ancho, 0);

    tm_mc.lineTo(0 + [...]

1 Votes | Average: 5 out of 51 Votes | Average: 5 out of 51 Votes | Average: 5 out of 51 Votes | Average: 5 out of 51 Votes | Average: 5 out of 5 (1 votos, promedio: 5 sobre 5)
Loading ... Loading ...