home *** CD-ROM | disk | FTP | other *** search
- increment = 4;
- level = 30;
- _root.angle = level;
- panKnob.onPress = function()
- {
- autoPan = false;
- start = _root._xmouse;
- newStart = panKnob._rotation;
- dragging = true;
- };
- panKnob.onRelease = function()
- {
- dragging = false;
- };
- panKnob.onReleaseOutside = function()
- {
- dragging = false;
- };
- this.onEnterFrame = function()
- {
- if(dragging)
- {
- pivot = (_root._xmouse - start) * 2 + newStart;
- panKnob._rotation = pivot;
- if(pivot < -135)
- {
- panKnob._rotation = -135;
- }
- if(pivot > 135)
- {
- panKnob._rotation = 135;
- }
- }
- level = (panKnob._rotation + 135) * 100 / 270;
- _root.angle = int(level / 2);
- };
-