Tuesday, March 27, 2007

Here is a new example. It seems I'm combo man! Here is one with a List










Here is the ComboBox List Example and the Custom List Renderer source code for you to use.

Sunday, March 18, 2007

I worked up an example that uses a ComboBox to display a Tree control. I have seen some other postings on this. I have to admit I have not testing this fully so please test it and tell me what you think.










Here is the treeExample and the TreeComboBox source code for you to use. The treeExample is based on the Adobe doc examples.

The custom tag returns treeSelectedItem instead of selectedItem. The concept is to just pass the tree control's selectedItem back instead of trying to modify the ComboBox dataProvider to do the right thing. It's a little hacky but it seems to work ok for me.
This strange issue with IE and SSL has been bugging me. I found the time to do some testing on this. If you're using Pragma no-cache on your web server with SSL and Flash and are scratching your head trying to figure out why you can't see your data then continue reading.

Problem: I make a request from Flash to an XML file that's located on my web server with https (SSL). I can see the XML when I make the request from my IE however when I use the Flash Player with the load.xml method it fails to return results. To make matters worse things work just fine with FireFox, but not with IE. When using IE I don't see the XML results returned to Flash. When I use Charles to see what's going on... I can see that the XML is returned to the browser. Is this a Flash issue ? Or is this IE ?

Solution: Just modify the "Pragma" to use must-revalidate along with no-cache. If you make it look like the following below it should work just fine. You need to modify the headers on the server that is serving the XML document.

If you have this Pragma: no-cache
Change it to this Pragma: no-cache,must-revalidate

Why? It's my theory the response hand off from IE to the FlashPlayer is the cause. Should the response be considered stale by IE then the cache (XML data) will need to be revalidated with the server before Flash can get it. This seems to be an issue with the Pragma header and not the Cache-Control header and I'm not sure why.

Here is the rfc2616 w3c spec on cache control settings.

Tuesday, February 06, 2007

It's about time I started a blog. I work for Adobe as an Sr. Technical Support Engineer for the Flex product. I tend to get busy with work however, I'll try my best to update this blog when I can. I'm inspired by Kyle's new blog. This is just a first quick post to get me started.