It's great to find someone who is making Photoshop panels. I found this post while searching for help in troubleshooting a panel I'm working on. Most of my search results where about either web or PatchPanels.
I can tell you that at least on my system( WinXP 32 ) the PerlayerMetadata sample works. The panel I'm working on uses 8 charID events including "Opn " and 4 stringID events. That part of the panel works and the CSXSLibrary AIR Logger show the event handlers are being called without any crashes.
My only suggestion is to make sure you have the CSXSLibrary.swc from the latest SDK.
It's also dissappointing how little information there is on creating Photoshop panel using Flex.
USMParameterString = SliderUSMAmount.value.toString() + "," + SliderUSMRadius.value.toString() + "," +
SliderUSMThreshold.value.toString() + "," + ComboBlend.selectedIndex.toString() + "," +
StepperOpacity.value.toString() + "," + SharpeningBlendIf1Setting.toString() + "," +
SharpeningBlendIf2Setting.toString() + "," + SharpeningBlendIf3Setting.toString() + "," +
SharpeningBlendIf4Setting.toString() + "," + UnderlyingBlendIf1Setting.toString() + "," +
UnderlyingBlendIf2Setting.toString() + "," + UnderlyingBlendIf3Setting.toString() + "," +
var paramsTokens = params.split(",");
amount = parseInt(paramsTokens);
radius = parseFloat(paramsTokens);
threshold = parseInt(paramsTokens);
blend = parseInt(paramsTokens);
opacity = parseInt(paramsTokens);
sharpenBlendIf1 = parseInt(paramsTokens);
sharpenBlendIf2 = parseInt(paramsTokens);
sharpenBlendIf3 = parseInt(paramsTokens);
sharpenBlendIf4 = parseInt(paramsTokens);
underlyingBlendIf1 = parseInt(paramsTokens);
underlyingBlendIf2 = parseInt(paramsTokens);
underlyingBlendIf3 = parseInt(paramsTokens);
underlyingBlendIf4 = parseInt(paramsTokens);
if (app.activeDocument.activeLayer.name == "TLR Pro USM") updateUSMLayer(amount, radius, threshold);
else addUSMLayer(amount, radius, threshold);
setBlendIfs(sharpenBlendIf1, sharpenBlendIf2, sharpenBlendIf3, sharpenBlendIf4,
underlyingBlendIf1, underlyingBlendIf2, underlyingBlendIf3, underlyingBlendIf4);
I can find no documentation on CSXS Library. The link in the online documentation does not work. I'm beginning to believe it is flakey and unreliable.