From Xojo Documentation

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

FolderItem.OpenAsMovie() As Movie

Supported for all project types and targets.

Opens the FolderItem to be read as a movie and returns its movie as a Movie object.


Nil is returned if the movie can’t be read.


This example displays an open-file dialog box that lets the user select a QuickTime movie. The QuickTime movie is then copied into the Movie property of a MoviePlayer control.

Dim f As FolderItem
f = GetOpenFolderItem("video/quicktime")
If f <> Nil Then
MoviePlayer1.Movie = f.OpenAsMovie
End If