MovieFrame is one of the least well-known frame subtypes. To date, it has been used in only one well-known mod, which was an April Fools' Day joke, HighRoller. If you're curious what this mod did, it's still available for download; read the description or try and run it (but keep in mind it's a prank.) It runs the contents of an .avi file, for there are some fairly stringent requirements on the file format supplied.
Defined Methods
- MovieFrame:EnableSubtitles(enable) - Enables or disables subtitles for movies played in the frame
- enabled = MovieFrame:StartMovie("filename", volume) - Plays a specified movie in the frame
- MovieFrame:StopMovie() - Stops the movie currently playing in the frame
Inherited Methods
- MovieFrame:AllowAttributeChanges() - Temporarily allows insecure code to modify the frame's attributes during combat
- enabled = MovieFrame:CanChangeAttribute() - Returns whether secure frame attributes can currently be changed
- canChange = MovieFrame:CanChangeProtectedState() - Returns whether protected properties of the region can be changed by non-secure scripts
- MovieFrame:ClearAllPoints() - Removes all anchor points from the region
- animationGroup = MovieFrame:CreateAnimationGroup(["name" [, "inheritsFrom"]]) - Creates a new AnimationGroup as a child of the region
- fontstring = MovieFrame:CreateFontString(["name" [, "layer" [, "inherits"]]]) - Creates a new [[docs/widgets/FontString|`FontString`]] as a child of the frame
- texture = MovieFrame:CreateTexture(["name" [, "layer" [, "inherits" [, sublevel]]]]) - Creates a new [[docs/widgets/Texture|`Texture`]] as a child of the frame
- region = MovieFrame:CreateTitleRegion() - Creates a title region for dragging the frame
- MovieFrame:DisableDrawLayer("layer") - Prevents display of all child objects of the frame on a specified graphics layer
- MovieFrame:EnableDrawLayer("layer") - Allows display of all child objects of the frame on a specified graphics layer
- MovieFrame:EnableJoystick(enable) - Enables or disables joystick interactivity
- MovieFrame:EnableKeyboard(enable) - Enables or disables keyboard interactivity for the frame
- MovieFrame:EnableMouse(enable) - Enables or disables mouse interactivity for the frame
- MovieFrame:EnableMouseWheel(enable) - Enables or disables mouse wheel interactivity for the frame
- alpha = MovieFrame:GetAlpha() - Returns the opacity of the region relative to its parent
- ... = MovieFrame:GetAnimationGroups() - Returns a list of animation groups belonging to the region
- value = MovieFrame:GetAttribute("name") - Returns the value of a secure frame attribute
- backdrop = MovieFrame:GetBackdrop() - Returns information about the frame's backdrop graphic
- red, green, blue, alpha = MovieFrame:GetBackdropBorderColor() - Returns the shading color for the frame's border graphic
- red, green, blue, alpha = MovieFrame:GetBackdropColor() - Returns the shading color for the frame's background graphic
- bottom = MovieFrame:GetBottom() - Returns the distance from the bottom of the screen to the bottom of the region
- left, bottom, width, height = MovieFrame:GetBoundsRect() - Returns the position and dimension of the smallest area enclosing the frame and its children
- x, y = MovieFrame:GetCenter() - Returns the screen coordinates of the region's center
- ... = MovieFrame:GetChildren() - Returns a list of child frames of the frame
- left, right, top, bottom = MovieFrame:GetClampRectInsets() - Returns offsets from the frame's edges used when limiting user movement or resizing of the frame
- depth = MovieFrame:GetDepth() - Returns the 3D depth of the frame (for stereoscopic 3D setups)
- MovieFrame:GetDontSavePosition() - This function is not yet documented
- alpha = MovieFrame:GetEffectiveAlpha() - Returns the overall opacity of the frame
- depth = MovieFrame:GetEffectiveDepth() - Returns the overall 3D depth of the frame (for stereoscopic 3D configurations)
- scale = MovieFrame:GetEffectiveScale() - Returns the overall scale factor of the frame
- level = MovieFrame:GetFrameLevel() - Sets the level at which the frame is layered relative to others in its strata
- strata = MovieFrame:GetFrameStrata() - Returns the general layering strata of the frame
- height = MovieFrame:GetHeight() - Returns the height of the region
- left, right, top, bottom = MovieFrame:GetHitRectInsets() - Returns the insets from the frame's edges which determine its mouse-interactable area
- id = MovieFrame:GetID() - Returns the frame's numeric identifier
- left = MovieFrame:GetLeft() - Returns the distance from the left edge of the screen to the left edge of the region
- maxWidth, maxHeight = MovieFrame:GetMaxResize() - Returns the maximum size of the frame for user resizing
- minWidth, minHeight = MovieFrame:GetMinResize() - Returns the minimum size of the frame for user resizing
- name = MovieFrame:GetName() - Returns the widget object's name
- numChildren = MovieFrame:GetNumChildren() - Returns the number of child frames belonging to the frame
- numPoints = MovieFrame:GetNumPoints() - Returns the number of anchor points defined for the region
- numRegions = MovieFrame:GetNumRegions() - Returns the number of non-Frame child regions belonging to the frame
- type = MovieFrame:GetObjectType() - Returns the object's widget type
- parent = MovieFrame:GetParent() - Returns the object's parent object
- point, relativeTo, relativePoint, xOffset, yOffset = MovieFrame:GetPoint(index) - Returns information about one of the region's anchor points
- MovieFrame:GetPropagateKeyboardInput() - This function is not yet documented
- left, bottom, width, height = MovieFrame:GetRect() - Returns the position and dimensions of the region
- ... = MovieFrame:GetRegions() - Returns a list of non-Frame child regions belonging to the frame
- right = MovieFrame:GetRight() - Returns the distance from the left edge of the screen to the right edge of the region
- scale = MovieFrame:GetScale() - Returns the frame's scale factor
- handler = MovieFrame:GetScript("scriptType") - Returns the widget's handler function for a script
- width, height = MovieFrame:GetSize() - Returns the width and height of the region
- region = MovieFrame:GetTitleRegion() - Returns the frame's TitleRegion object
- top = MovieFrame:GetTop() - Returns the distance from the bottom of the screen to the top of the region
- width = MovieFrame:GetWidth() - Returns the width of the region
- hasScript = MovieFrame:HasScript("scriptType") - Returns whether the widget supports a script handler
- MovieFrame:Hide() - Hides the region
- MovieFrame:HookScript("scriptType", handler) - Securely hooks a script handler
- MovieFrame:IgnoreDepth(enable) - Sets whether the frame's depth property is ignored (for stereoscopic 3D setups)
- enabled = MovieFrame:IsClampedToScreen() - Returns whether the frame's boundaries are limited to those of the screen
- isDragging = MovieFrame:IsDragging() - Returns whether the region is currently being dragged
- registered = MovieFrame:IsEventRegistered("event") - Returns whether the frame is registered for a given [[docs/events|event]]
- enabled = MovieFrame:IsIgnoringDepth() - Returns whether the frame's depth property is ignored (for stereoscopic 3D setups)
- enabled = MovieFrame:IsJoystickEnabled() - Returns whether joystick interactivity is enabled for the frame
- enabled = MovieFrame:IsKeyboardEnabled() - Returns whether keyboard interactivity is enabled for the frame
- enabled = MovieFrame:IsMouseEnabled() - Returns whether mouse interactivity is enabled for the frame
- isOver = MovieFrame:IsMouseOver([topOffset [, leftOffset [, bottomOffset [, rightOffset]]]]) - Returns whether the mouse cursor is over the given region
- enabled = MovieFrame:IsMouseWheelEnabled() - Returns whether mouse wheel interactivity is enabled for the frame
- movable = MovieFrame:IsMovable() - Returns whether the frame can be moved by the user
- isType = MovieFrame:IsObjectType("type") - Returns whether the object belongs to a given widget type
- isProtected, explicit = MovieFrame:IsProtected() - Returns whether the region is protected
- enabled = MovieFrame:IsResizable() - Returns whether the frame can be resized by the user
- shown = MovieFrame:IsShown() - Returns whether the region is shown
- enabled = MovieFrame:IsToplevel() - Returns whether the frame is automatically raised to the front when clicked
- enabled = MovieFrame:IsUserPlaced() - Returns whether the frame is flagged for automatic saving and restoration of position and dimensions
- visible = MovieFrame:IsVisible() - Returns whether the region is visible
- MovieFrame:Lower() - Reduces the frame's frame level below all other frames in its strata
- MovieFrame:Raise() - Increases the frame's frame level above all other frames in its strata
- MovieFrame:RegisterAllEvents() - Registers the frame for all events
- MovieFrame:RegisterEvent("event") - Registers the frame for an [[docs/events|event]]
- MovieFrame:RegisterForDrag(...) - Registers the frame for dragging
- MovieFrame:RegisterUnitEvent() - This function is not yet documented
- MovieFrame:SetAllPoints([region]) or MovieFrame:SetAllPoints(["name"]) - Sets all anchor points of the region to match those of another region
- MovieFrame:SetAlpha(alpha) - Sets the opacity of the region relative to its parent
- MovieFrame:SetAttribute("name", value) - Sets a secure frame attribute
- MovieFrame:SetBackdrop(backdrop) - Sets a backdrop graphic for the frame
- MovieFrame:SetBackdropBorderColor(red, green, blue [, alpha]) - Sets a shading color for the frame's border graphic
- MovieFrame:SetBackdropColor(red, green, blue [, alpha]) - Sets a shading color for the frame's background graphic
- MovieFrame:SetClampRectInsets(left, right, top, bottom) - Sets offsets from the frame's edges used when limiting user movement or resizing of the frame
- MovieFrame:SetClampedToScreen(enable) - Sets whether the frame's boundaries should be limited to those of the screen
- MovieFrame:SetDepth(depth) - Sets the 3D depth of the frame (for stereoscopic 3D configurations)
- MovieFrame:SetDontSavePosition() - This function is not yet documented
- MovieFrame:SetFrameLevel(level) - Sets the level at which the frame is layered relative to others in its strata
- MovieFrame:SetFrameStrata("strata") - Sets the general layering strata of the frame
- MovieFrame:SetHeight(height) - Sets the region's height
- MovieFrame:SetHitRectInsets(left, right, top, bottom) - Sets the insets from the frame's edges which determine its mouse-interactable area
- MovieFrame:SetID(id) - Sets a numeric identifier for the frame
- MovieFrame:SetMaxResize(maxWidth, maxHeight) - Sets the maximum size of the frame for user resizing
- MovieFrame:SetMinResize(minWidth, minHeight) - Sets the minimum size of the frame for user resizing
- MovieFrame:SetMovable(enable) - Sets whether the frame can be moved by the user
- MovieFrame:SetParent(frame) or MovieFrame:SetParent("name") - Makes another frame the parent of this region
- MovieFrame:SetPoint("point" [, relativeTo [, "relativePoint" [, xOffset [, yOffset]]]]) - Sets an anchor point for the region
- MovieFrame:SetPropagateKeyboardInput() - This function is not yet documented
- MovieFrame:SetResizable(enable) - Sets whether the frame can be resized by the user
- MovieFrame:SetScale(scale) - Sets the frame's scale factor
- MovieFrame:SetScript("scriptType", handler) - Sets the widget's handler function for a script
- MovieFrame:SetShown() - This function is not yet documented
- MovieFrame:SetSize(width, height) - Sets the size of the region to the specified values
- MovieFrame:SetToplevel(enable) - Sets whether the frame should automatically come to the front when clicked
- MovieFrame:SetUserPlaced(enable) - Flags the frame for automatic saving and restoration of position and dimensions
- MovieFrame:SetWidth(width) - Sets the region's width
- MovieFrame:Show() - Shows the region
- MovieFrame:StartMoving() - Begins repositioning the frame via mouse movement
- MovieFrame:StartSizing() - Begins resizing the frame via mouse movement
- MovieFrame:StopAnimating() - Stops any active animations involving the region or its children
- MovieFrame:StopMovingOrSizing() - Ends movement or resizing of the frame initiated with [[docs/widgets/Frame/StartMoving|`:StartMoving()`]] or [[docs/widgets/Frame/StartSizing|`:StartSizing()`]]
- MovieFrame:UnregisterAllEvents() - Unregisters the frame from any [[docs/events|events]] for which it is registered
- MovieFrame:UnregisterEvent("event") - Unregisters the frame for an event
Script Handlers
- OnAttributeChanged(self, "name", value) - Run when a frame attribute is changed
- OnChar(self, "text") - Run for each text character typed in the frame
- OnDisable(self) - Run when the frame is disabled
- OnDragStart(self, "button") - Run when the mouse is dragged starting in the frame
- OnDragStop(self) - Run when the mouse button is released after a drag started in the frame
- OnEnable(self) - Run when the frame is enabled
- OnEnter(self, motion) - Run when the mouse cursor enters the frame's interactive area
- OnEvent(self, "event", ...) - Run whenever an [[docs/events|event]] fires for which the frame is registered
- OnHide(self) - Run when the frame's visbility changes to hidden
- OnKeyDown(self, "key") - Run when a keyboard key is pressed if the frame is keyboard enabled
- OnKeyUp(self, "key") - Run when a keyboard key is released if the frame is keyboard enabled
- OnLeave(self, motion) - Run when the mouse cursor leaves the frame's interactive area
- OnLoad(self) - Run when the frame is created
- OnMouseDown(self, "button") - Run when a mouse button is pressed while the cursor is over the frame
- OnMouseUp(self, "button") - Run when the mouse button is released following a mouse down action in the frame
- OnMouseWheel(self, delta) - Run when the frame receives a mouse wheel scrolling action
- OnMovieFinished(self) - Run when a movie frame's movie ends
- OnMovieHideSubtitle(self) - Runs when the movie's most recently displayed subtitle should be hidden
- OnMovieShowSubtitle(self, "text") - Runs when a subtitle for the playing movie should be displayed
- OnReceiveDrag(self) - Run when the mouse button is released after dragging into the frame
- OnShow(self) - Run when the frame becomes visible
- OnSizeChanged(self, width, height) - Run when a frame's size changes
- OnUpdate(self, elapsed) - Run each time the screen is drawn by the game engine