I recently learned of a fantastic young, visionary, little-know politician named Barack Obama. He's dedicated to a myriad of virtuous causes that match my political leanings in every way and I'm sure that with his charisma and energy he'll go far one day. Please donate to his cause using the widget below!
Wednesday, February 25, 2009
Thursday, February 5, 2009
Flex try...catch...finally bug?
Yikes. The following ActionScript code caused an "unbalanced stack" error when the containing function was called. My intention was to break out of the for loop if the finally clause was hit. Took a while to realize it wasn't even hitting the for loop.
for() {
try {
}
catch() {
}
finally {
break;
}
}
Customizing the Windows Save As dialog
Not Flex related but it's something I've been meaning to get to for a long time: Most of the time when I need to save a file using the standard Windows "Save As" dialog I want it to go in the "Program Files" directory, which means digging through a few layers of directories in the dialog. To save all that digging effort I've added "c:\Program Files" to the list of icons on the left side of the dialog. See this for full details.
The short story is that you have to create a registry key named HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\ComDlg32\PlacesBar and add some string values to it for each item you want in the list. The values must be named "Place0", "Place1", etc. each of which contains either a path to the desired directory or a shortcut to it, like "ProgramFiles".
Hey, it'll save me a few seconds here and there...
The short story is that you have to create a registry key named HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\ComDlg32\PlacesBar and add some string values to it for each item you want in the list. The values must be named "Place0", "Place1", etc. each of which contains either a path to the desired directory or a shortcut to it, like "ProgramFiles".
Hey, it'll save me a few seconds here and there...
Tuesday, February 3, 2009
Security.allowDomains & wildcards
Got bit by this today: The Flex function Security.allowDomain() can handle "*" as its parameter but not "*.site.com". It would be handy if it did since we don't know ahead of time exactly which domain names our partners will have (especially for dev work) but it makes sense since site.com may not own all domains that end in "site.com". Live and learn...
Subscribe to:
Comments (Atom)