Movie Masher

open source video editing tools for your site

HomeExamplesFAQDocumentationDownload

Ruler Control

Parent Tags: bar
Tag Attributes: align, angle, back, bind, border, bordercolor, color, grad, height, icon, overicon, reveal, ruleicon, ruleovericon, symbol, width

The ruler is a slider control variant specifically designed to act as a scrubber for the timeline. The positioning of its icon takes into consideration the zoom and hscroll properties of the timeline, so that it's in sync with its clips.

Using the default values for all attributes will produce a simple slider with the icon graphic positioned over the background graphic. The control will be bound to the player.location property. If the current location is not visible within the timeline view, the icon of the ruler is not displayed.

Typically the ruler control is placed directly above the timeline, with its left and right edges aligned to it. If a graphic URL is supplied for the rulericon attribute, this image will be centered over the icon and resized vertically to extend to the bottom of the timeline. The ruler's control tag must be after the timeline's for this image to overlap the timeline and its clips.

© Movie Masher 2006-2010