开发者

Actionscript 2.0 mx.managers.CreatePopUp dialog triggers onRollOver for events underneath it

开发者 https://www.devze.com 2022-12-26 17:41 出处:网络
All, On the main stage I have a button that is highlighted on rollover. I am using mx.managers.CreatePopUp to creat开发者_运维知识库e a dialog box that pops up and takes user information. When the di

All,

On the main stage I have a button that is highlighted on rollover. I am using mx.managers.CreatePopUp to creat开发者_运维知识库e a dialog box that pops up and takes user information. When the dialog box appears above the button, mousing over the dialog box triggers the highlight for the button beneath it.

Can you provide some suggestions as to what the issue might be caused by?

(I am fairly new to Flash so any suggestions would be helpful. Just looking for things to experiment with to get the correct behavior.)

Other info that might be helpful: I've noticed that when I create a modal version of the dialog box, this behavior does not occur. Dismissing the modal dialog disables the entire stage. Fixing this issue would also solve my problem, but I've been unsuccessful thus far.

Thanks in advance.


You have active button - and rollOver action. This is normal in as2. You must write code to tur it off when popUp is active. Mix of components and basic mc-based movies/buttons will always work that.


The rollover event is dispatched whether there are elements over your object or not in AS2 - you might need to set the _visible property on the button to false while the dialogue is up and then set it back to true when it's closed.

0

精彩评论

暂无评论...
验证码 换一张
取 消