简体   繁体   English

Flash Player 10中的子画面上没有手形光标或鼠标事件

[英]No Hand Cursor or Mouse Events on Sprites in Flash Player 10

My movie targets flash player 10, and I compile it with FlexSDK v 4.51. 我的影片针对的是Flash Player 10,我使用FlexSDK v 4.51对其进行了编译。 It compiles and plays with no errors. 它可以编译并正确播放。 But if I view the swf in Flash Player 10, some sprites that are set to buttonmode do not show a hand cursor or dispatch MouseEvents. 但是,如果我在Flash Player 10中查看swf,则某些设置为buttonmode的精灵不会显示手形光标或调度MouseEvent。 In fact, if I play it in the Flash Player 10 debug player, I get an error: 实际上,如果我在Flash Player 10调试播放器中播放它,则会收到错误消息:

"VerifyError: Error #1053: Illegal override of z in mx.core.BitmapAsset."

So to fix this, I can switch to using an older SDK, version 4.1. 因此,要解决此问题,我可以切换到使用旧的SDK版本4.1。 Now the error message is gone, but the mouseover problem persists - now for Flash Player version 10 and 11. 现在错误消息消失了,但是鼠标悬停问题仍然存在-现在适用于Flash Player 10 11。

There are no flash 11 specific features used. 没有使用Flash 11的特定功能。 It should be targetable using flash player 10. Any ideas how to fix this problem or what is causing it? 它应该可以使用Flash Player 10定位。是否有任何想法可以解决此问题或导致此问题的原因?

========== ==========

Update 更新资料

I have determined that the mouse event and the override error are not related. 我确定鼠标事件和覆盖错误不相关。 The mouse event error seems to being caused by using filters. 鼠标事件错误似乎是由使用过滤器引起的。 and I have found a workaround, by applying the filter to a child object, instead of the parent. 并且我找到了一种解决方法,将过滤器应用于子对象而不是父对象。

The error thrown above, is getting caused by an embedded bitmap. 上面引发的错误是由嵌入式位图引起的。 And it seems like a fix to that is to use flex SDK 4.1. 似乎要解决此问题,是使用flex SDK 4.1。 Any reason not to just use the 4.1 SDK? 有什么理由不只是使用4.1 SDK? Any way to make 4.5 sdk compatible with Flash player 10? 有什么方法可以使4.5 SDK与Flash Player 10兼容?

You surely have a class that extends BitmapAsset with a property called z . 您肯定有一个使用名为z的属性扩展BitmapAsset的类。 This was not a problem until Flash 10 introduced this as a built-in member variable of any DisplayObject . 直到Flash 10将其作为任何DisplayObject内置成员变量引入时,这才成为问题。 You should edit this class and change the name of your property. 您应该编辑此类并更改属性的名称。

Are you sure you're using the latest Flash player? 您确定使用的是最新的Flash播放器吗? My best guess is you're compiling your program using a Flash version greater than the player is capable of running, eg compiling for 11 then running on 10. Have you tried running this in the latest player available? 我最好的猜测是,您正在使用比播放器能够运行的Flash版本更大的Flash版本来编译程序,例如,先编译为11,然后在10上运行。您是否尝试过在可用的最新播放器中运行它?

The error happens because no maybe not any features of 4.5 are use but changed ones are. 发生错误是因为可能没有使用4.5的任何功能,而使用了更改的功能。 Simply release with flash player 11 and everything should work fine. 只需使用Flash Player 11发行,一切都可以正常工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM