OnPreProcessURL

Syntax

Delphi

TFlashPlayerControlOnGlobalPreProcessURL = procedure(
  var URL: WideString;
  out Continue: boolean) of object;
 
procedure SetGlobalPreProcessURLHandler(Handler: TFlashPlayerControlOnGlobalPreProcessURL);

C++Builder

typedef void __fastcall (__closure *TFlashPlayerControlOnGlobalPreProcessURL)(
  System::WideString &URL,
  /* out */ bool &Continue);
 
void __fastcall SetGlobalPreProcessURLHandler(TFlashPlayerControlOnGlobalPreProcessURL Handler);

Description

The OnPreProcessURL event is triggered whenever Flash attempts to load a resource by URL or when a user clicks a link inside a Flash movie.

Within the handler you can:

  • Modify the URL before it is processed.
  • Cancel the request by setting Continue to false.

This event is useful for redirecting resource requests, filtering unwanted links, or implementing security checks.