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
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