From Xojo Documentation

Revision as of 19:05, 3 September 2020 by THill (talk | contribs) (Text replacement - "{{Deprecated" to "{{DeprecatedItem")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

FolderItem.OpenResourceMovie(ResID as Integer) As Movie

Supported for all project types and targets.

Opens the movie specified by ResID as a movie (Macintosh only).


Used only if the movie is stored as a MooV resource. Use OpenAsMovie for QT 4.0 (and greater) files.


The following code accesses the resource movie numbered 1. The video/mp4 file type has been added to the project by the File Types Editor.

Dim f As FolderItem
Dim m As Movie
f = GetOpenFolderItem("video/mp4")
If f <> Nil Then
m = f.OpenResourceMovie(1)
MsgBox("Open failed.")
End If