troubleshooting Question

flash datagrid text not showing behind mask

Avatar of jstretch
jstretch asked on
Adobe Flash
1 Comment1 Solution638 ViewsLast Modified:
I have a datagrid behind a mask and the text is not showing. I embedded the fonts using styles and populated the datagrid using a hardcoded array. Why doesnt the text show?

// set global styels
_global.styles.ScrollSelectList.setStyle("backgroundColor", 0xFFFFFF);
_global.styles.ScrollSelectList.setStyle("rollOverColor", 0xCEE8BB);
_global.styles.ScrollSelectList.setStyle("selectionColor", 0x80CE43);
_global.styles.ScrollSelectList.setStyle("color", 0x163857);
_global.styles.ScrollSelectList.setStyle("embedFonts", true);
if (_global.styles.DataGrid == undefined) {
   _global.styles.DataGrid = new CSSStyleDeclaration();
_global.styles.DataGrid.setStyle("backgroundColor", 0xFFFFFF);
_global.styles.DataGrid.setStyle("headerColor", 0xFFFFFF);
_global.styles.DataGrid.setStyle("color", 0x163857);
_global.styles.DataGrid.setStyle("hGridLineColor", 0x88B7E1);
_global.styles.DataGrid.setStyle("embedFonts", true);

var source = _global.styles.ScrollSelectList;
var target = _global.styles.DataGrid;
for (var style in source) {
   target.setStyle(style, source.getStyle(style));

// populate datagrid dg
var tmp = new Array();
var obj1 = new Object();
obj1.item = "Repairs";
obj1.description = "description";
var obj2 = new Object();
obj2.item = "Repairs";
obj2.description = "description";
var obj3 = new Object();
obj3.item = "Repairs";
obj3.description = "description";

dg.dataProvider = tmp;
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 1 Comment.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 1 Comment.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros