OnUnloadExternalResourceAsync
Syntax
Delphi
TFlashPlayerControlOnUnloadExternalResourceAsync = procedure(
ASender: TObject;
Stream: TStream) of object;
OnUnloadExternalResourceAsync: TFlashPlayerControlOnUnloadExternalResourceAsync;
C++Builder
typedef void __fastcall (__closure *TFlashPlayerControlOnUnloadExternalResourceAsync)(
System::TObject* ASender,
TStream* Stream);
Description
The OnUnloadExternalResourceAsync event is raised just before the TStream object, previously returned by the OnLoadExternalResourceAsync handler, is freed.
This allows you to perform cleanup or finalization tasks associated with the stream. Typical use cases include closing file handles, releasing memory, or logging the completion of asynchronous resource usage.