Domanda

I have several ScrollPane instances in my project and when testing locally - just by running the swf - scrolling the mouse wheel while over them scrolls the content. However, when I run it in Google Chrome or FireFox the mouse wheel doesn't do anything, even if I click on the content first. Testing in IE though I can scroll the content with the mouse wheel. I can't seem to find another problem like this online but I was hoping someone might have an idea what could be wrong?

Thanks, Heather

È stato utile?

Soluzione

Actually this problem wasn't specific to ScrollPane but was to do with mousewheel events being intercepted by the browser and not reaching the swf.

I managed to solve this in the index.html file when embedding the swf by setting wmode = "window" (previously it had been "opaque") - the wmode property "Sets the Window Mode property of the SWF file for transparency, layering, positioning, and rendering in the browser" http://helpx.adobe.com/flash/kb/flash-object-embed-tag-attributes.html

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top