Hi,
I have made a swf in Action Script 2.0, Flash Lite 3.0 with a Datagrid inside reading an XML file. So, I execute in my PC and all it is ok.
On the other hand, I have installed it in my Nokia 5800 with the xml file.
The Datagrid loads perfectly but I have some trouble with the 'Selected Item Rectangle':
First at all, the rectangle always remains visible when I select the first visible item in the list. For other selected items, the rectangle dissapears and only change the color of the text.
Later, I have declared the _alpha property to 25 with the object to get more design and the behavior is worst than before: the rectangle of the first item in the list, if selected, remains visible in every moment, and the other items of the list, if selected, shows a rectangle like a simple line, and other strange things...
I have tried to redraw, use drawFocus, setStyle, ... unsuccesfully.
Anybody knows what is it due? Are they bugs? Could I try a solution for this?
I thank for your answers in advance.
(You could find the code below:)
System.useCodepage = true;
DataGridModels.rowHeight = 40;
DataGridModels.headerHeight = 40;
DataGridModels.selectable = true;
DataGridModels.setStyle("fontSize", "32");
DataGridModels.setStyle("backgroundColor", "haloBlue");
DataGridModels.setStyle("fontFamily", "_sans");
DataGridModels.setStyle("fontWeight", "bold");
DataGridModels.setStyle("color", "black");
//DataGridModels._alpha = 25
// [LOAD OF THE XML ITEMS SUCCESFULLY]
DataGridModels.setSize(Number(asd),250); //WHERE asd IS THE MAX TEXT LENGTH OF THE LONGER ITEM * 30
DataGridModels._x = 245-(Number(asd)/2);
DataGridModels._y = 70;
var Escoltador:Object = new Object();
Escoltador.cellPress = function(evt_obj:Object) {
[...]
}
DataGridModels.addEventListener("cellPress", Escoltador);
The As2 range of components were not built for flash lite. Though using them means no harm, but better yet develop own component or look for flashlite specific ones.