home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Sears Catalog 2006 Spring/Summer (French Canadian)
/
SearsCanada-AutomneEte2006-FrenchVersion-WinMac.bin
/
fr
/
otherstuff.swf
/
scripts
/
DefineSprite_3
/
frame_1
/
DoAction.as
Wrap
Text File
|
2005-11-21
|
2KB
|
56 lines
function setSkins()
{
if(_parent.c_scrollTrackVisible)
{
var _loc3_ = new Color(scrollTrack_mc);
_loc3_.setRGB(_parent.c_scrollTrack);
false;
}
else
{
scrollTrack_mc._visible = false;
}
this._width = _parent.c_scrollWidth;
if(_parent.c_horizontal)
{
this._x += 16 - _parent.c_scrollWidth;
}
}
this.useHandCursor = false;
setSkins();
this.onPress = function()
{
if(this._parent.enabled == false || this._parent.hitTest(_root._xmouse,_root._ymouse) == false)
{
return undefined;
}
if(this.hitTest(_root._xmouse,_root._ymouse) && !this._parent.drag.hitTest(_root._xmouse,_root._ymouse) && !this._parent.button_up.hitTest(_root._xmouse,_root._ymouse) && !this._parent.button_down.hitTest(_root._xmouse,_root._ymouse))
{
if(_parent._ymouse < this._parent.drag._y)
{
this._parent.pageUp();
this._parent.scrollDelay = true;
this._parent.delayTimer = setInterval(this._parent,"clearDelay",300);
this._parent.scrolling = "PAGEUP";
}
else
{
this._parent.pageDown();
this._parent.scrollDelay = true;
this._parent.delayTimer = setInterval(this._parent,"clearDelay",300);
this._parent.scrolling = "PAGEDOWN";
}
}
};
this.onDragOut = function()
{
this._parent.scrolling = false;
this._parent.clearDelay();
};
this.onRelease = function()
{
this._parent.scrolling = false;
this._parent.clearDelay();
};
stop();