<div class="meta" robots="noindex">

</div>

Method

# FolderItem.OpenAsMovie

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

<div class="warning">

<div class="title">

Warning

</div>

This item was deprecated in version 2019r2. Please use `Movie.Open<movie.open>` as a replacement.

</div>

## Description

Opens the **FolderItem** to be read as a movie and returns its movie as a `Movie</api/user_interface/movie>` object.

## Notes

`Nil</api/language/nil>` is returned if the movie can't be read.

## Sample code

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.

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

## Compatibility

All project types on all supported operating systems.
