Recently I built a .swf file which contained a DataGrid. The data was provided via xml, and everything appeared to be working as intended. However, when I loaded the swf into the parent swf, the content of the datagrid was no longer visible.
My first attempt was to try to immbed the font, however that didn't solve my problem either. After a considerable amount of time checking into this, I found that there was a simple solution to the problem.
The UILoader I was using to load the external swf was under mask in the Flash timeline. As you might know, there is often problems with viewing dynamic content under a mask. However, the solution ended up being one simple line of code. I simply set the datagrid to datagrid.cacheAsBitmap = true. Now all of the content appeared without a problem.
A simple solution to a simple problem.
Wednesday, July 1, 2009
Subscribe to:
Comments (Atom)