TFlashStorage component
TFlashStorage is a storage of data necessary for playing flash movies.
Component from Flash Viewer Engine.
TFlashStorageGetURLEvent = procedure (sender: TfeFlashList; URL: string; var Data: TStream) of object; TFlashStorageCheckURLEvent = procedure (sender: TfeFlashList; URL: string; var Accept: boolean) of object; TFlashStorage = class(TfeFlashList) public function FindData(const AName: WideString): TStream; function CheckURL(const AName: WideString): boolean; published property Flashs: TfeFlashCollection; property OnGetUrl: TFlashStorageGetURLEvent; property OnCheckURL: TFlashStorageCheckURLEvent; end;
| Member | Description |
|---|---|
|
Flashs |
File collection needed for playing SWF. This can be file of any type - swf, flv, jpg, xml etc. |
|
FindData |
Returns pointer to data stream if the collection contains file with AName name |
|
CheckURL |
Returns 'true' or 'false' value if the collection contains file with AName name or not |
|
OnGetUrl |
Event that occurs when calling FindURL function. Use this event for individual composing of requested data |
|
OnCheckURL |
Event that occurs when calling CheckURL function. Use this event if you need to compose requested data yourself or want to analyze what files are requested by Flash Player |
In application, when component for playing flash is pointed to SWF, e.g.
FlashViewer.Movie := 'http://mysite.com/intro.swf';
then first intro.swf file will be searched in TFlashStorage component associated to TFlashViewer (or any other Flash Viewer). CheckURL and optionally OnGetUrl event will be called. If this method returnes 'false', then the file will be loaded from website. If the method returns 'true', then CheckGetUrl and OnGetUrl methods will be called.
See also samples of using Storage and YouTube Video