We’re using the EarthBrowser Mac Mouse Wheel fix in our current Flex project. I was noticing some sporadic “SecurityError: Error #2112: Provided parameter LoaderContext.ApplicationDomain is from a disallowed domain.” pop up, but only when scrolling our TileList via the middle mouse. If you used the mouse on the scrollbar, it worked fine.
Anyway, in my testing, my fix seems to work pretty good; haven’t gotten an error yet. Â We’ll be testing the updated code all week, so if I find any issues, I’ll update this post. Â Here’s the code I modified in MacMouseWheelHandler.as on line 72:
If you’re not using Flex, and just pure AS3, you might try providing a way for your components to wait a frame utilizing Event.ENTER_FRAME.
8 Replies to “Error 2112 in Flex Using EarthBrowser’s Mac Middle Mouse Fix”
Also, I’m getting this error a ton in Flash Player 10.1 beta in other sites.
Bad news: This doesn’t fix it. Additionally, using SWFWheel doesn’t fix it either; both have the same problem.
Good news: I CANNOT duplicate this error in 10.0.x, just 10.1 beta.
I’m getting this error with the 10.1 beta as well when loading images. It’s on photo gallery that dynamically loads images. The first and second images chosen by the user show up fine; the third throws the error. They’re all from the same source. This has to be a bug in the player.
Additionally, I’m getting really bizarre errors trying to recompile the source for this since installing the beta player. I’m using an internal class which extends Loader. It always compiled fine before. For some reason now it’s throwing an error on the declaration of a constant in the class. Very weird.
I blame Alex, Geddy and Neil.
I just got this as well on Windows once moving to 10.1. Our datagrids now dispatch this runtime error if you try to scroll them via the mouse wheel. I’m going to check the Adobe Jira to see if they have this filed anywhere.
Hey Jesse, did you find an answer to this? I’ve got two versions of this 2112 bug on pretty high profile sites, that only show up in the 10.1 beta. My dyslexic wastedness caused me to post this under a bug 1221 issue on the adobe forum for the beta, which is still floating around the top with no response from the adobe heads. Heard this has cropped up with Hulu as well. I hope you’ll post it up here if you figure it out…
For those who have had this issue, it has been fixed in Flash 10.1 Beta 3. Grab it now!!
Sweet! Thanks all for explaining this. I was using the older 10.1 beta and got the exception just by scrolling a Spark List (tile layout) and an Image item renderer.
I removed the 10.1 beta and problem went away, grabbing the latest 10.1 beta right……. now!
Comments are closed.