Frame 1
SnagItWidth = 1002;
SnagItHeight = 6921;
HotspotXML = "<movie width=\"1002\" height=\"6921\"></movie>";
function onResize() {
scrollPane.setSize(Stage.width, Stage.height);
}
_quality = "BEST";
var si_xml = new XML(this.HotSpotXML);
si_xml.ignoreWhite = true;
var hsArr = new Array();
var l = si_xml.firstChild.childNodes.length;
var i = 0;
while (i < l) {
var item = si_xml.firstChild.childNodes[i].attributes;
var ll = si_xml.firstChild.childNodes[i].childNodes.length;
var pointsArr;
if (ll > 0) {
pointsArr = new Array();
}
var j = 0;
while (j < ll) {
pointsArr[j] = si_xml.firstChild.childNodes[i].childNodes[j].attributes;
j++;
}
item.points = pointsArr;
hsArr[i] = item;
i++;
}
var scrollPane = this.attachMovie("ts_scrollPane", "scrollPane", 1);
scrollPane.init(hsArr);
Stage.addListener(this);
Stage.showMenu = false;
Stage.scaleMode = "noScale";
Stage.align = "TL";
scrollPane.setSize(Stage.width, Stage.height);
delete hsArr;
delete si_xml;
delete this.HotspotXML;
Symbol 4 MovieClip [ts_scrollThumb] Frame 1
#initclip 18
Object.registerClass("ts_scrollThumb", com.techsmith.widgets.TSScrollThumb);
#endinitclip
Symbol 11 MovieClip [ts_scrollBL] Frame 1
#initclip 12
Object.registerClass("ts_scrollBL", com.techsmith.widgets.TSScrollButton);
#endinitclip
stop();
Symbol 12 MovieClip Frame 1
#initclip 13
Object.registerClass("imageClip", com.techsmith.widgets.TSContentPane);
#endinitclip
Symbol 19 MovieClip [ts_scrollTR] Frame 1
#initclip 14
Object.registerClass("ts_scrollTR", com.techsmith.widgets.TSScrollButton);
#endinitclip
stop();
Symbol 21 MovieClip [ts_scrollTrack] Frame 1
#initclip 15
Object.registerClass("ts_scrollTrack", com.techsmith.widgets.TSScrollTrack);
#endinitclip
Symbol 22 MovieClip [ts_scrollBar] Frame 1
#initclip 16
Object.registerClass("ts_scrollBar", com.techsmith.widgets.TSScrollBar);
#endinitclip
Symbol 23 MovieClip [ts_scrollPane] Frame 1
#initclip 17
Object.registerClass("ts_scrollPane", com.techsmith.widgets.TSScrollPane);
#endinitclip
Symbol 24 MovieClip [__Packages.com.techsmith.widgets.TSScrollPane] Frame 0
class com.techsmith.widgets.TSScrollPane extends MovieClip
{
function TSScrollPane () {
super();
load("imageClip");
Mouse.addListener(this);
}
function init(hsItems) {
var hs = (new com.techsmith.snagit.HotSpot(m_content, hsItems));
}
function load(movie) {
var _local1 = this;
_local1.m_content = _local1.attachMovie(movie, "m_content", 1);
_local1.m_fullWidth = _local1.m_content._width;
_local1.m_fullHeight = _local1.m_content._height;
_local1.m_contentMask = _local1.createEmptyMovieClip("m_contentMask", 2);
com.techsmith.utils.shapes.Rectangle.draw(_local1.m_contentMask, 14215862, _local1.m_fullWidth + 2, _local1.m_fullHeight + 2, 100);
_local1.m_content.setMask(_local1.m_contentMask);
_local1.m_content.move(0, 0);
_local1.size();
}
function setSize(w, h) {
var _local1 = this;
_local1.m_width = w;
_local1.m_height = h;
_local1.size();
}
function size() {
var _local1 = this;
var _local2 = ((com.techsmith.widgets.TSScrollBar.BUTTONHEIGHT * 2) + com.techsmith.widgets.TSScrollBar.THUMBHEIGHT) + 2;
if ((_local1.m_vScrollBar != null) && (_local1.m_hScrollBar != null)) {
_local2 = _local2 + com.techsmith.widgets.TSScrollBar.BUTTONHEIGHT;
}
if (_local1.m_height <= _local2) {
_local1.removeScroller(_local1.m_vScrollBar);
_local1.m_vScrollBar = null;
}
if (_local1.m_width <= _local2) {
_local1.removeScroller(_local1.m_hScrollBar);
_local1.m_hScrollBar = null;
}
if ((_local1.m_width < _local1.m_fullWidth) && (_local1.m_height < _local1.m_fullHeight)) {
var cw = _local1.CONTROLWIDTH;
_local1.m_contentMask._width = (_local1.m_width - cw) + 2;
_local1.m_contentMask._height = (_local1.m_height - cw) + 2;
if ((_local1.m_vScrollBar == null) && (_local1.m_height > _local2)) {
_local1.m_vScrollBar = _local1.attachMovie("ts_scrollBar", "m_vScrollBar", 3);
_local1.m_vScrollBar.addEventListener("scrollEvent", _local1);
}
if ((_local1.m_hScrollBar == null) && (_local1.m_width > _local2)) {
_local1.m_hScrollBar = _local1.attachMovie("ts_scrollBar", "m_hScrollBar", 4);
_local1.m_hScrollBar.addEventListener("scrollEvent", _local1);
_local1.m_hScrollBar.setHorizontal(true);
}
_local1.m_vScrollBar.setSize(cw, _local1.m_height - cw);
_local1.m_vScrollBar.move(_local1.m_width - cw, 0);
_local1.m_hScrollBar.setSize(cw, _local1.m_width - cw);
_local1.m_hScrollBar.move(0, _local1.m_height - cw);
} else if ((_local1.m_height < _local1.m_fullHeight) && (_local1.m_width >= _local1.m_fullWidth)) {
var cw = _local1.CONTROLWIDTH;
_local1.m_contentMask._width = (_local1.m_width - cw) + 2;
_local1.m_contentMask._height = _local1.m_height + 2;
if ((_local1.m_vScrollBar == null) && (_local1.m_height > _local2)) {
_local1.m_vScrollBar = _local1.attachMovie("ts_scrollBar", "m_vScrollBar", 3);
_local1.m_vScrollBar.addEventListener("scrollEvent", _local1);
}
if (_local1.m_hScrollBar != null) {
_local1.removeScroller(_local1.m_hScrollBar);
_local1.m_hScrollBar = null;
}
_local1.m_vScrollBar.setSize(cw, _local1.m_height);
_local1.m_vScrollBar.move(_local1.m_width - cw, 0);
} else if ((_local1.m_height >= _local1.m_fullHeight) && (_local1.m_width < _local1.m_fullWidth)) {
var cw = _local1.CONTROLWIDTH;
_local1.m_contentMask._width = _local1.m_width + 2;
_local1.m_contentMask._height = (_local1.m_height - cw) + 2;
if ((_local1.m_hScrollBar == null) && (_local1.m_width > _local2)) {
_local1.m_hScrollBar = _local1.attachMovie("ts_scrollBar", "m_hScrollBar", 4);
_local1.m_hScrollBar.addEventListener("scrollEvent", _local1);
_local1.m_hScrollBar.setHorizontal(true);
}
if (_local1.m_vScrollBar != null) {
_local1.removeScroller(_local1.m_vScrollBar);
_local1.m_vScrollBar = null;
}
_local1.m_hScrollBar.setSize(cw, _local1.m_width);
_local1.m_hScrollBar.move(0, _local1.m_height - cw);
} else {
_local1.m_contentMask._width = _local1.m_fullWidth + 2;
_local1.m_contentMask._height = _local1.m_fullHeight + 2;
if (_local1.m_vScrollBar != null) {
_local1.removeScroller(_local1.m_vScrollBar);
_local1.m_vScrollBar = null;
}
if (_local1.m_hScrollBar != null) {
_local1.removeScroller(_local1.m_hScrollBar);
_local1.m_hScrollBar = null;
}
}
var nNewX = _local1.m_content._x;
var nNewY = _local1.m_content._y;
var bMove = false;
var nScrollButtonHeight = 0;
var _local3 = 0;
if (_local1.m_vScrollBar) {
_local3 = com.techsmith.widgets.TSScrollBar.BUTTONHEIGHT + 1;
}
if (_local1.m_hScrollBar) {
nScrollButtonHeight = com.techsmith.widgets.TSScrollBar.BUTTONHEIGHT + 1;
}
if ((_local1.m_content._y + _local1.m_fullHeight) < (_local1.m_height - nScrollButtonHeight)) {
if ((_local1.m_height - _local1.m_fullHeight) < 0) {
nNewY = (_local1.m_height - nScrollButtonHeight) - _local1.m_fullHeight;
} else {
nNewY = 0;
}
bMove = true;
}
if ((_local1.m_content._x + _local1.m_fullWidth) < (_local1.m_width - _local3)) {
if ((_local1.m_width - _local1.m_fullWidth) < 0) {
nNewX = (_local1.m_width - _local3) - _local1.m_fullWidth;
} else {
nNewX = 0;
}
bMove = true;
}
if (bMove) {
_local1.m_content.move(nNewX, nNewY);
}
}
function removeScroller(scroller) {
scroller.removeEventListener("scrollEvent", this);
scroller.destroy();
}
function onMouseWheel(delta) {
var _local2 = this;
if (_local2.m_vScrollBar != null) {
var thumb = _local2.m_vScrollBar.getScrollThumb();
var _local1 = thumb._y;
var _local3 = 0;
var cLength = _local2.m_vScrollBar.m_constraints.bottom;
var tc = (com.techsmith.widgets.TSScrollBar.BUTTONHEIGHT + 1);
var scrollAmount = 10;
if ((_local1 >= tc) && (_local1 <= cLength)) {
if (delta < 0) {
if (_local1 >= (cLength - scrollAmount)) {
_local3 = cLength - _local1;
} else {
_local3 = scrollAmount;
}
_local1 = _local1 + _local3;
thumb._y = _local1;
} else {
if (_local1 <= (tc + scrollAmount)) {
_local3 = _local1 - tc;
} else {
_local3 = scrollAmount;
}
_local1 = _local1 - _local3;
thumb._y = _local1;
}
}
var cy = (thumb._y - tc);
var constraints = (_local2.m_vScrollBar.m_constraints.height - ((tc * 2) + com.techsmith.widgets.TSScrollBar.THUMBHEIGHT));
var percent = Math.round((cy / constraints) * 100);
var nScrollButtonHeight = 0;
if (_local2.m_hScrollBar) {
nScrollButtonHeight = com.techsmith.widgets.TSScrollBar.BUTTONHEIGHT + 1;
}
var pos = ((percent / 100) * ((_local2.m_content._height + nScrollButtonHeight) - _local2.m_height));
_local2.m_content.move(_local2.m_content._x, -pos);
_local2.m_vScrollBar.m_lastPercent = percent;
}
}
function scrollEvent(e) {
var _local1 = this;
var _local2 = e;
if (_local2.target === _local1.m_vScrollBar) {
var nScrollButtonHeight = 0;
if (_local1.m_hScrollBar) {
nScrollButtonHeight = com.techsmith.widgets.TSScrollBar.BUTTONHEIGHT + 1;
}
var pos = ((_local2.percent / 100) * ((_local1.m_content._height + nScrollButtonHeight) - _local1.m_height));
_local1.m_content.move(_local1.m_content._x, -pos);
} else if (_local2.target === _local1.m_hScrollBar) {
var _local3 = 0;
if (_local1.m_vScrollBar) {
_local3 = com.techsmith.widgets.TSScrollBar.BUTTONHEIGHT + 1;
}
var pos = ((_local2.percent / 100) * ((_local1.m_content._width + _local3) - _local1.m_width));
_local1.m_content.move(-pos, _local1.m_content._y);
}
}
var m_background = null;
var m_content = null;
var m_contentMask = null;
var m_height = null;
var m_width = null;
var m_fullWidth = null;
var m_fullHeight = null;
var m_vScrollBar = null;
var m_hScrollBar = null;
var CONTROLWIDTH = 17;
}
Symbol 25 MovieClip [__Packages.com.techsmith.widgets.TSContentPane] Frame 0
class com.techsmith.widgets.TSContentPane extends MovieClip
{
var _x, _y;
function TSContentPane () {
super();
}
function move(x, y) {
_x = x;
_y = y;
}
}
Symbol 26 MovieClip [__Packages.com.techsmith.utils.events.IEventDispatcher] Frame 0
interface com.techsmith.utils.events.IEventDispatcher{}
Symbol 27 MovieClip [__Packages.com.techsmith.widgets.TSScrollBar] Frame 0
class com.techsmith.widgets.TSScrollBar extends MovieClip
{
function TSScrollBar () {
var _local1 = this;
super();
_local1.m_dispatcher = new com.techsmith.utils.events.EventDispatcher();
_local1.m_scrollTrack = _local1.attachMovie("ts_scrollTrack", "m_scrollTrack", 1);
_local1.m_scrollTR = _local1.attachMovie("ts_scrollTR", "m_scrollTR", 2);
_local1.m_scrollBL = _local1.attachMovie("ts_scrollBL", "m_scrollBL", 3);
_local1.m_scrollThumb = _local1.attachMovie("ts_scrollThumb", "m_scrollThumb", 4);
_local1.m_scrollTR.direction = "tr";
_local1.m_scrollBL.direction = "bl";
_local1.m_scrollTrack.addEventListener("scrollTrack", _local1);
_local1.m_scrollTR.addEventListener("scrollPress", _local1);
_local1.m_scrollBL.addEventListener("scrollPress", _local1);
_local1.m_scrollThumb.addEventListener("scrollDrag", _local1);
_local1.m_scrollThumb.move(TRACKOFFSET, BUTTONHEIGHT + 1);
}
function setSize(w, h) {
var _local1 = this;
var _local2 = h;
var _local3 = TRACKOFFSET;
var t = (BUTTONHEIGHT + 1);
var r = TRACKOFFSET;
var b = (_local2 - ((BUTTONHEIGHT + 1) + THUMBHEIGHT));
_local1.m_constraints = {lockCenter:false, left:_local3, top:t, right:r, bottom:b, width:w, height:_local2, constraintLength:b};
_local1.m_scrollThumb.init(_local1.m_constraints);
_local1.m_scrollTrack._height = _local2;
_local1.m_scrollTrack._width = w;
_local1.m_scrollTrack.move(0, 0);
_local1.m_scrollTR.move(_local3, 0);
_local1.m_scrollBL.move(_local3, _local2 - BUTTONHEIGHT);
if (_local1.isStart) {
_local1.isStart = false;
} else {
var length = (_local1.m_height - (((BUTTONHEIGHT * 2) + THUMBHEIGHT) + 2));
var pos = ((_local1.m_lastPercent / 100) * length);
}
if (_local1.m_scrollThumb._y == (BUTTONHEIGHT + 1)) {
_local1.m_scrollThumb.move(TRACKOFFSET, BUTTONHEIGHT + 1);
} else if (_local1.m_lastPercent == 100) {
_local1.m_scrollThumb.move(TRACKOFFSET, _local1.m_scrollBL._y - (THUMBHEIGHT + 1));
} else {
_local1.m_scrollThumb.move(TRACKOFFSET, (BUTTONHEIGHT + 1) + ((_local1.m_lastPercent / 100) * ((_local2 - (BUTTONHEIGHT * 2)) - THUMBHEIGHT)));
}
_local1.m_width = w;
_local1.m_height = _local2;
}
function move(x, y) {
var _local1 = this;
if (!_local1.m_horizontal) {
_local1._x = x;
_local1._y = y;
} else {
_local1._x = x;
_local1._y = (BUTTONHEIGHT + TRACKOFFSET) + y;
}
}
function setHorizontal(f) {
var _local1 = this;
var _local2 = f;
if (_local2 != _local1.m_horizontal) {
_local1.m_horizontal = _local2;
if (_local2) {
_local1._rotation = _local1._rotation - 90;
} else {
_local1._rotation = _local1._rotation + 90;
}
}
}
function scrollTrack(e) {
var _local1 = this;
var _local3 = BUTTONHEIGHT + 1;
var cLength = _local1.m_constraints.bottom;
var _local2 = _local1._ymouse;
if ((_local2 >= _local3) && (_local2 <= cLength)) {
_local1.m_scrollThumb._y = _local2;
} else if (_local2 > cLength) {
_local1.m_scrollThumb._y = cLength;
_local2 = _local2 - (_local3 * 2);
}
var cy = (_local2 - _local3);
var constraints = (_local1.m_constraints.height - ((_local3 * 2) + THUMBHEIGHT));
var percent = Math.round((cy / constraints) * 100);
if (percent > 100) {
percent = 100;
}
_local1.m_lastPercent = percent;
_local1.dispatchEvent({target:_local1, type:"scrollEvent", percent:percent});
}
function scrollPress(e) {
var _local2 = this;
var _local1 = _local2.m_scrollThumb._y;
var _local3 = 0;
var cLength = _local2.m_constraints.bottom;
var tc = (BUTTONHEIGHT + 1);
var scrollAmount = 10;
if ((_local1 >= tc) && (_local1 <= cLength)) {
if (e.target.direction == "bl") {
if (_local1 >= (cLength - scrollAmount)) {
_local3 = cLength - _local1;
} else {
_local3 = scrollAmount;
}
_local1 = _local1 + _local3;
_local2.m_scrollThumb._y = _local1;
} else {
if (_local1 <= (tc + scrollAmount)) {
_local3 = _local1 - tc;
} else {
_local3 = scrollAmount;
}
_local1 = _local1 - _local3;
_local2.m_scrollThumb._y = _local1;
}
}
var bh = (BUTTONHEIGHT + 1);
var cy = (_local2.m_scrollThumb._y - bh);
var constraints = (_local2.m_constraints.height - ((bh * 2) + THUMBHEIGHT));
var percent = Math.round((cy / constraints) * 100);
_local2.m_lastPercent = percent;
_local2.dispatchEvent({target:_local2, type:"scrollEvent", percent:percent});
}
function scrollDrag(e) {
var _local1 = this;
_local1.m_lastPercent = e.percent;
_local1.dispatchEvent({target:_local1, type:"scrollEvent", percent:e.percent});
}
function getScrollThumb() {
return(m_scrollThumb);
}
function addEventListener(event, scope) {
m_dispatcher.addEventListener(event, scope);
}
function removeEventListener(event, scope) {
m_dispatcher.removeEventListener(event, scope);
}
function dispatchEvent(eventObj) {
m_dispatcher.dispatchEvent(eventObj);
}
function destroy() {
var _local1 = this;
_local1.m_scrollTrack.removeEventListener("scrollTrack", _local1);
_local1.m_scrollTR.removeEventListener("scrollPress", _local1);
_local1.m_scrollBL.removeEventListener("scrollPress", _local1);
_local1.m_scrollThumb.removeEventListener("scrollDrag", _local1);
_local1.removeMovieClip();
}
var m_dispatcher = null;
var m_scrollTrack = null;
var m_scrollTR = null;
var m_scrollBL = null;
var m_scrollThumb = null;
var m_horizontal = false;
var m_width = 0;
var m_height = 0;
var m_lastPercent = 0;
static var BUTTONHEIGHT = 17;
static var THUMBHEIGHT = 36;
static var TRACKOFFSET = 0;
static var TRACKWIDTH = 17;
var m_constraints = null;
var isStart = true;
}
Symbol 28 MovieClip [__Packages.com.techsmith.widgets.TSScrollTrack] Frame 0
class com.techsmith.widgets.TSScrollTrack extends MovieClip
{
var useHandCursor, _x, _y;
function TSScrollTrack () {
super();
m_dispatcher = new com.techsmith.utils.events.EventDispatcher();
useHandCursor = false;
}
function move(x, y) {
_x = x;
_y = y;
}
function onPress() {
var _local1 = this;
var y = _local1._ymouse;
_local1.dispatchEvent({type:"scrollTrack", target:_local1, y:y});
}
function addEventListener(event, scope) {
m_dispatcher.addEventListener(event, scope);
}
function removeEventListener(event, scope) {
m_dispatcher.removeEventListener(event, scope);
}
function dispatchEvent(eventObj) {
m_dispatcher.dispatchEvent(eventObj);
}
var m_dispatcher = null;
}
Symbol 29 MovieClip [__Packages.com.techsmith.utils.events.EventDispatcher] Frame 0
class com.techsmith.utils.events.EventDispatcher
{
function EventDispatcher () {
m_eventStore = new Object();
}
static function getInstanceOf() {
if (instance == null) {
instance = new com.techsmith.utils.events.EventDispatcher();
}
return(instance);
}
function addEventListener(event, scope) {
var _local2 = this;
if (!_local2.m_active) {
if (_local2.m_eventStore[event] == undefined) {
_local2.m_eventStore[event] = [];
}
var _local3 = _local2.m_eventStore[event].length;
var _local1 = _local3 - 1;
while (_local1 > -1) {
if (_local2.m_eventStore[event][_local1].scope === scope) {
return;
}
_local1--;
}
_local2.m_eventStore[event].push({event:event, scope:scope});
} else {
if (_local2.m_eventStore.addqueue == undefined) {
_local2.m_eventStore.addqueue = [];
}
_local2.m_eventStore.addqueue.push({event:event, scope:scope});
}
}
function removeEventListener(event, scope) {
var _local2 = this;
if (!_local2.m_active) {
var _local3 = _local2.m_eventStore[event].length;
var _local1 = _local3 - 1;
while (_local1 > -1) {
if (_local2.m_eventStore[event][_local1].scope === scope) {
_local2.m_eventStore[event].splice(_local1, 1);
}
_local1--;
}
} else {
if (_local2.m_eventStore.remqueue == undefined) {
_local2.m_eventStore.remqueue = [];
}
_local2.m_eventStore.remqueue.push({event:event, scope:scope});
}
}
function dispatchEvent(eventObj) {
var _local3 = eventObj;
m_active = true;
var _local2 = m_eventStore[_local3.type];
var l = m_eventStore[_local3.type].length;
var _local1 = 0;
while (_local1 < l) {
var e = m_eventStore[_local3.type][_local1].event;
if (_local2[_local1].scope instanceof Function) {
_local2[_local1].scope(_local3);
} else {
_local2[_local1].scope[e].apply(_local2[_local1].scope, [_local3]);
}
_local1++;
}
m_active = false;
delayQueue();
}
function delayQueue() {
var _local1 = this;
var _local3 = _local1.m_eventStore.remqueue.length;
if (_local3 > 0) {
var _local2 = 0;
while (_local2 < _local3) {
_local1.addEventListener(_local1.m_eventStore.remqueue[_local2].event, _local1.m_eventStore.remqueue[_local2].scope);
_local2++;
}
_local1.m_eventStore.remqueue.splice(0);
}
_local3 = _local1.m_eventStore.addqueue.length;
if (_local1.m_eventStore.addqueue.length > 0) {
var _local2 = 0;
while (_local2 < _local3) {
_local1.addEventListener(_local1.m_eventStore.addqueue[_local2].event, _local1.m_eventStore.addqueue[_local2].scope);
_local2++;
}
_local1.m_eventStore.addqueue.splice(0);
}
}
static var instance = null;
var m_eventStore = null;
var m_active = false;
}
Symbol 30 MovieClip [__Packages.com.techsmith.widgets.TSScrollButton] Frame 0
class com.techsmith.widgets.TSScrollButton extends MovieClip
{
var useHandCursor, _x, _y, onEnterFrame;
function TSScrollButton () {
super();
m_dispatcher = new com.techsmith.utils.events.EventDispatcher();
useHandCursor = false;
}
function move(x, y) {
_x = x;
_y = y;
}
function onPress() {
var _local1 = this;
_local1.dispatchEvent({type:"scrollPress", target:_local1});
_local1.m_timer = getTimer();
_local1.onEnterFrame = _local1.timerCheck;
}
function onRelease() {
delete onEnterFrame;
}
function onReleaseOutside() {
delete onEnterFrame;
}
function timerCheck() {
var _local1 = this;
if ((getTimer() - _local1.m_timer) > 50) {
delete _local1.onEnterFrame;
_local1.onEnterFrame = _local1.scrolling;
}
}
function scrolling() {
dispatchEvent({type:"scrollPress", target:this});
}
function addEventListener(event, scope) {
m_dispatcher.addEventListener(event, scope);
}
function removeEventListener(event, scope) {
m_dispatcher.removeEventListener(event, scope);
}
function dispatchEvent(eventObj) {
m_dispatcher.dispatchEvent(eventObj);
}
var m_dispatcher = null;
var m_timer = null;
}
Symbol 31 MovieClip [__Packages.com.techsmith.widgets.TSScrollThumb] Frame 0
class com.techsmith.widgets.TSScrollThumb extends MovieClip
{
var useHandCursor, _x, _y, onEnterFrame, stopDrag;
function TSScrollThumb () {
super();
m_dispatcher = new com.techsmith.utils.events.EventDispatcher();
useHandCursor = false;
}
function init(constraints) {
m_constraints = constraints;
}
function move(x, y) {
_x = x;
_y = y;
}
function onPress() {
var _local1 = this;
_local1.startDrag(_local1.m_constraints.lockCenter, _local1.m_constraints.left, _local1.m_constraints.top, _local1.m_constraints.right, _local1.m_constraints.bottom);
_local1.onEnterFrame = _local1.scrolling;
}
function onRelease() {
delete onEnterFrame;
(stopDrag());// not popped
}
function onReleaseOutside() {
delete onEnterFrame;
(stopDrag());// not popped
}
function scrolling() {
var _local1 = this;
var _local2 = _local1.m_constraints.bottom - _local1.m_constraints.top;
var _local3 = _local1._y - _local1.m_constraints.top;
var percent = Math.round((_local3 / _local2) * 100);
_local1.dispatchEvent({type:"scrollDrag", target:_local1, percent:percent});
}
function addEventListener(event, scope) {
m_dispatcher.addEventListener(event, scope);
}
function removeEventListener(event, scope) {
m_dispatcher.removeEventListener(event, scope);
}
function dispatchEvent(eventObj) {
m_dispatcher.dispatchEvent(eventObj);
}
var m_dispatcher = null;
var m_constraints = null;
}
Symbol 32 MovieClip [__Packages.com.techsmith.snagit.HotSpot] Frame 0
class com.techsmith.snagit.HotSpot
{
function HotSpot (scope, items) {
var _local2 = items;
var _local3 = this;
var depthStart = 1;
var popStart = (depthStart + 5000);
var l = _local2.length;
var _local1 = 0;
while (_local1 < l) {
popStart++;
scope.createEmptyMovieClip("ts_hs" + _local1, depthStart + _local1);
var color;
if ((_local2[_local1].color != undefined) || (_local2[_local1].color != "")) {
color = parseInt(_local2[_local1].color, 16);
}
switch (_local2[_local1].shape) {
case "rect" :
com.techsmith.utils.shapes.Rectangle.draw(scope["ts_hs" + _local1], color, parseInt(_local2[_local1].width), parseInt(_local2[_local1].height), 100);
break;
case "poly" :
com.techsmith.utils.shapes.Custom.draw(scope["ts_hs" + _local1], color, 100, _local2[_local1].points);
}
scope["ts_hs" + _local1].uri = _local2[_local1].href;
scope["ts_hs" + _local1].alpha = parseInt(_local2[_local1].alpha);
scope["ts_hs" + _local1]._alpha = 0;
scope["ts_hs" + _local1].onRelease = function () {
getURL (this.uri, "_blank");
};
if (_local2[_local1].popid != undefined) {
scope["ts_hs" + _local1].popid = _local2[_local1].popid;
scope["ts_hs" + _local1].popname = "ts_pop" + _local1;
scope["ts_hs" + _local1].pud = popStart;
scope["ts_hs" + _local1].px = _local2[_local1].popx;
scope["ts_hs" + _local1].py = _local2[_local1].popy;
}
scope["ts_hs" + _local1].onRollOver = function () {
var _local1 = this;
_local1._alpha = _local1.alpha;
if (_local1.popid != undefined) {
_local1.m_popid = scope.attachMovie(_local1.popid, _local1.popname, _local1.pud, {_x:_local1.px, _y:_local1.py});
}
};
scope["ts_hs" + _local1].onRollOut = function () {
this._alpha = 0;
this.m_popid.removeMovieClip();
};
scope["ts_hs" + _local1]._x = _local2[_local1].x;
scope["ts_hs" + _local1]._y = _local2[_local1].y;
_local1++;
}
}
var m_popid = null;
}
Symbol 33 MovieClip [__Packages.com.techsmith.utils.shapes.Rectangle] Frame 0
class com.techsmith.utils.shapes.Rectangle
{
function Rectangle () {
}
static function draw(scope, color, width, height, alpha, lStyle) {
var _local1 = scope;
var _local2 = lStyle;
if (_local2 != undefined) {
_local1.lineStyle(_local2.thickness, _local2.rgb, _local2.alpha);
} else {
_local1.lineStyle(undefined);
}
_local1.beginFill(color, alpha);
_local1.moveTo(0, 0);
_local1.lineTo(width, 0);
_local1.lineTo(width, height);
_local1.lineTo(0, height);
_local1.lineTo(0, 0);
_local1.endFill();
trace("Rectangle Shape: ");
trace("movie: " + _local1);
trace("depth: " + _local1.getDepth());
trace(((("{ x: " + _local1._x) + ", y: ") + _local1._y) + " }");
trace("width: " + _local1._width);
trace("height: " + _local1._height);
trace(newline);
}
}
Symbol 34 MovieClip [__Packages.com.techsmith.utils.shapes.Custom] Frame 0
class com.techsmith.utils.shapes.Custom
{
function Custom () {
}
static function draw(scope, color, alpha, points, lineStyle) {
var _local2 = scope;
var _local3 = points;
if (lineStyle != undefined) {
_local2.lineStyle(lineStyle.thickness, lineStyle.rgb, lineStyle.alpha);
} else {
_local2.lineStyle(undefined);
}
var l = _local3.length;
_local2.moveTo(_local3[l - 1].x, _local3[l - 1].y);
_local2.beginFill(color, alpha);
var _local1 = 0;
while (_local1 < l) {
_local2.lineTo(parseInt(_local3[_local1].x), parseInt(_local3[_local1].y));
_local1++;
}
_local2.endFill();
trace("Custom: ");
trace("movie: " + _local2);
trace("depth: " + _local2.getDepth());
trace(((("{ x: " + _local2._x) + ", y: ") + _local2._y) + " }");
trace("width: " + _local2._width);
trace("height: " + _local2._height);
trace(newline);
}
}