set the member of sprite (the buttonSprite of the mainButton of toolBar) to member (the OverMember of the mainButton of toolBar) of castLib "Buttons"
updateStage
end
on mouseDown
global toolBar
global mainButton
set the member of sprite (the buttonSprite of the mainButton of toolBar) to member (the downMember of the mainButton of toolBar) of castLib "Buttons"
set menu1 = new(script"ToolBar DropDown Parent Script",["folio","profile","ib","help"],50,the toolLoc of toolBar,["folio","profile","ib","help"])
updateStage
repeat while the mouseDown
rollOverOption menu1
updateStage
end repeat
closeMenu menu1
updateStage
if (the chosenOption of menu1 <> 0) then
actionMenu menu1
end if
updateStage
if rollOver(the buttonSprite of the mainButton of toolBar) then
set the member of sprite (the buttonSprite of the mainButton of toolBar) to member (the overMember of the mainButton of toolBar) of castLib "Buttons"
else
set the member of sprite (the buttonSprite of the mainButton of toolBar) to member (the normalMember of the mainButton of toolBar) of castLib "Buttons"
end if
updateStage
end
on mouseLeave
global toolBar
set the member of sprite (the buttonSprite of the mainButton of toolBar) to member (the normalMember of the mainButton of toolBar) of castLib "Buttons"