# Scroll a flash web page

**URL:** <https://forum.kirupa.com/t/scroll-a-flash-web-page/221931>\
**Category:** Uncategorized\
**Created:** [April 9, 2007, 2:30pm UTC](https://forum.kirupa.com/t/scroll-a-flash-web-page/221931 "2007-04-09T14:30:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dreimann](https://avatars.discourse-cdn.com/v4/letter/d/a9a28c/32.png) [@dreimann](https://forum.kirupa.com/u/dreimann)\
**Post date:** [April 9, 2007, 2:30pm UTC](https://forum.kirupa.com/t/scroll-a-flash-web-page/221931/1 "2007-04-09T14:30:48Z")

</div>

Hi  
I have a web page all in flash  
When page is loaded I can scroll it with mouse, But when I load first external movie clip the mouse scrolling function disappears.  
Is there anything I can do?  
I have search in flash mx 2004 hepl, and tryed  
to use // Mouse.onMouseWheel  
but nothing

Please help

---

<div class="post-metadata">

**Author:** ![leshnik](https://avatars.discourse-cdn.com/v4/letter/l/e9a140/32.png) [@leshnik](https://forum.kirupa.com/u/leshnik)\
**Post date:** [July 1, 2008, 8:08am UTC](https://forum.kirupa.com/t/scroll-a-flash-web-page/221931/2 "2008-07-01T08:08:38Z")

</div>

**Paste this code in your flash:**

import flash.external.ExternalInterface;

this.onMouseWheel = function(delta){  
if(delta\<0){  
ExternalInterface.call(“scrollUp”);  
}  
else{  
ExternalInterface.call(“scrollDown”);  
}

};  
Mouse.addListener(this);

**Paste this code in your html page:**

\<script type=“text/javascript”\>  
function scrollUp(){  
window.scrollBy(0,50);  
}  
function scrollDown(){  
window.scrollBy(0,-50);  
}  
\</script\>

**Tested in Firefox/2.0.0.14, IE6 and Safari 3.1.1**
