Problema con focusrect en componentes.

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.

datagrid_chungo.gif

Para evitarlo:

En el .swf con el componente datagrid, escribimos el siguiente código:

Actionscript:
  1. myDataGrid.drawFocus = function() {
  2. };
  3. var myDP:Array =
  4. new Array({name:"Chris", price:"Priceless"}, {name:"Nigel", price:"Cheap"});
  5. myDataGrid.dataProvider = myDP;

Código de la película base del ejemplo:

Actionscript:
  1. loadDG = function ():Void {
  2.     if (this.activated) {
  3.         this.activated = false;
  4.         this._label.text = 'Cargar';
  5.         holder_mc.unloadMovie();
  6.     } else {
  7.         this.activated = true;
  8.         this._label.text = 'Descargar';
  9.         holder_mc.loadMovie('DG.swf');
  10.     }
  11. };
  12. // --
  13. var holder_mc:MovieClip =
  14. this.createEmptyMovieClip('holder_mc', this.getNextHighestDepth());
  15. // --
  16. my_button.onRelease = loadDG;
  17. my_button._label.text = 'Cargar';

Ejemplo

This movie requires Flash Player 8

Descarga Archivos.zip

Archivos.zip se ha descargado 272 veces.

 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 ...

0 Responses to “Problema con focusrect en componentes.”


  1. No Comments

Leave a Reply




Subscribe

Subscribe to my RSS Feeds