Does anybody have a recipe for loading the AS3 chromeless player into a Flex application such that you don't get the 'incompatible context' errors constantly?
I've been experimenting all day with Security.allowDomain, Security.allowInsecureDomain, and LoaderContext, but I haven't found the magic combination yet. The main thing I want to do is be able to track the mouse wherever it goes on the screen. Right now, if I mouse over the YouTube player, mouse events stop getting sent to the application, and I get that sandbox violation error in the debug log. It works fine if I run the swf from a file: URL - it just doesn't work when it's coming over http, so obviously there is some sort of Flash security model thing kicking in.
Doors only get opened from the inside otherwise all the bad guys would come
Only the loaded SWF can allow access from the loading SWF.
It works fine if the loading swf is on a file:// url. It doesn't work over http. Are the rules different for file:// ?
Yes, there are different rules when running from file:// You can see that
the sandbox type is different.