keyWords flash8 components, dataGrid, drawFocus.
En flash 8, cuando cargas un componente en un clip contenedor (en algunas circunstancias), se visualiza un halo de color verdoso (dependiendo del theme) bastante molesto.

Para evitarlo:
En el .swf con el componente datagrid, escribimos el siguiente código:
Actionscript:
-
myDataGrid.drawFocus = function() {
-
};
-
var myDP:Array =
-
new Array({name:"Chris", price:"Priceless"}, {name:"Nigel", price:"Cheap"});
-
myDataGrid.dataProvider = myDP;
Código de la película base del ejemplo:
Actionscript:
-
loadDG = function ():Void {
-
if (this.activated) {
-
this.activated = false;
-
this._label.text = 'Cargar';
-
holder_mc.unloadMovie();
-
} else {
-
this.activated = true;
-
this._label.text = 'Descargar';
-
holder_mc.loadMovie('DG.swf');
-
}
-
};
-
// --
-
var holder_mc:MovieClip =
-
this.createEmptyMovieClip('holder_mc', this.getNextHighestDepth());
-
// --
-
my_button.onRelease = loadDG;
-
my_button._label.text = 'Cargar';
Ejemplo
This movie requires Flash Player 8
Descarga Archivos.zip
Archivos.zip se ha descargado 279 veces.

0 Responses to “Problema con focusrect en componentes.”