I have an SWF created with Flex 2 embedded in a delphi app. I would like to somehow be able to send a call to the wrapper app and have it return some binary data (not specifically an image or swf, but just some binary chunk).
Is there some way to do this without having to encode it as text and use OnFlashCall? I've tried using the OnLoadExternalResourceEx but am unsure if this is what I would want to do. I'm also unclear on the ActionScript code to write for that. Ideally, the flash app would pass a string to the Delphi wrapper, which would read that string and figure out the binary data to pass back. Ideally, this could be done in a blocking fashion so that the flash code doesn't continue until it received that data (to avoid having to write a lot of UI lockout and polling code).