Symmetri Developer Blog

May 11, 2009

ArrayCollection refresh bug

Flash/Flex - By Shourov Bhattacharya

This is a funky bug. I have an ArrayCollection as the dataProvider for a ColumnChart; when I change the data values within the ArrayCollection, the chart fails to update to display the new values. The workaround is easy enough: call ArrayCollection.refresh();. It’s a pretty basic bug though; Adobe really should get it fixed.

See https://bugs.adobe.com/jira/browse/SDK-13247

View MHTML in Flex?

General, Flash/Flex, .NET/C# - By Shourov Bhattacharya

Everything you need for a webpage in one file, including external links to images, Flash files etc? Sounds like a good idea I guess; it would mean that you could easily email a single webpage to someone for offline viewing, for example. This was, I presume, the idea behind the MHTML format, which MIME-encodes a HTML webpage and associated resources into one long binary file. However, the problem is that very few browsers support the display of MHTML files natively. Internet Explorer does, but not Firefox, Safari or Google Chrome.

In my particular case, I have a bunch of reports generated by a third-party which are saved as MHTML files which need to be displayed within a Flex iFrame component (which is basically a floating browser container). I could display directly in the browser frame, in which case only users on IE will see the display. I could get the client to use a MHTML to HTML converter software. Or I could write my own server-side code to do the conversion on-the-fly, maybe using this code as a starting point.

Get free blog up and running in minutes with Blogsome
Theme designed by Janis Joseph