function mvstore(figNumber,movieData)
%MVSTORE This is a function that is used with the function XPMOVIE.
%   MVSTORE(figNumber,movieData) stores the movie in the variable 
%   movieData in the UserData of the figure figNumber for later 
%   use.

%   Ned Gulley, 6-21-93
%   Copyright 1984-2000 The MathWorks, Inc. 
%   $Revision: 5.5 $  $Date: 2000/06/01 03:16:24 $

% On PCs with less than 16 colors movies will break.
if get(0,'ScreenDepth')<=4,
    computerType=computer;
    if strcmp(computerType(1:2),'PC'),
        disp(' Sorry, MATLAB require more than 16 colors for movies.');
        return
    end
end

if figNumber==0,
    movie(movieData,5);
else
    hndlList=get(figNumber,'UserData');
    movieAxHndl=hndlList(8);
    set(movieAxHndl,'UserData',movieData);
end
