AmbientAttributes.moveTo
[The feature associated with this page, Windows Media Player SDK, is a legacy feature. It has been superseded by MediaPlayer. MediaPlayer has been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use MediaPlayer instead of Windows Media Player SDK, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]
The moveTo method moves the control to a new location at a linear speed.
elementID.moveTo(newLeft, newTop, time)
Parameters
-
newLeft
-
Number (long) specifying the new value for the left attribute of the control.
-
newTop
-
Number (long) specifying the new value for the top attribute of the control.
-
time
-
Number (long) specifying the time, in milliseconds, that it takes for the control to move to its new location.
Return Value
This method does not return a value.
Remarks
This method is useful for animated SUBVIEW elements (for example, if the user clicks a tray and the controls slide down).
This method creates a linear motion when moving the control. This differs from slideTo, which creates a non-linear motion.
Requirements
Requirement | Value |
---|---|
Version |
Windows Media Player version 7.0 or later |