# Pausing Rotation

**URL:** https://forum.kirupa.com/t/pausing-rotation/202691
**Category:** flash
**Created:** [October 3, 2006, 9:57pm UTC](https://forum.kirupa.com/t/pausing-rotation/202691 "2006-10-03T21:57:58Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![saveth](https://avatars.discourse-cdn.com/v4/letter/s/7c8e57/32.png) [@saveth](https://forum.kirupa.com/u/saveth)
#### Post date: [October 3, 2006, 9:57pm UTC](https://forum.kirupa.com/t/pausing-rotation/202691/1 "2006-10-03T21:57:58Z")

</div>

Hello,

I’m trying to pause my rotation on rollover of a movieclip and restart rotation on rollout of the movieclip.

Here is my current code, any help would be appreciated.

Thanks,  
Saveth

```auto

//=================Initalization=================
discoverypanel_mc._visible = false;
designpanel_mc._visible = false;
developmentpanel_mc._visible = false;
deploymentpanel_mc._visible = false;

//=================Start Rotation=================
methodology_mc.onEnterFrame = function() {
    i = getProperty(this,_rotation);
    setProperty(this,_rotation,i + 5);
}

//=================Hide Panels Function=================
function hidepanels() {
    discoverypanel_mc._visible = false;
    designpanel_mc._visible = false;
    developmentpanel_mc._visible = false;
    deploymentpanel_mc._visible = false;
}

//=================Discovery Rollover Function=================
methodology_mc.discovery_mc.onRollOver = function() {
    hidepanels();
    discoverypanel_mc._visible = true;
}

//=================Analysis Rollover Function=================
methodology_mc.design_mc.onRollOver = function() {
    hidepanels();
    designpanel_mc._visible = true;
}

//=================Development Rollover Function=================
methodology_mc.development_mc.onRollOver = function() {
    hidepanels();
    developmentpanel_mc._visible = true;
}

//=================Deployment Rollover Function=================
methodology_mc.deployment_mc.onRollOver = function() {
    hidepanels();
    deploymentpanel_mc._visible = true;
}

//=================Discovery Rollover Function=================
methodology_mc.discovery_mc.onRollOut = function() {
    hidepanels();
}

//=================Analysis Rollover Function=================
methodology_mc.design_mc.onRollOut = function() {
    hidepanels();
}

//=================Development Rollover Function=================
methodology_mc.development_mc.onRollOut = function() {
    hidepanels();
}

//=================Deployment Rollover Function=================
methodology_mc.deployment_mc.onRollOut = function() {
    hidepanels();
}

```
