开发者

Flash stops my mouseover event at edge of embedded button

Hi All Tha开发者_Python百科nks for reading, I couldn't explain well in my Title.

I am working on a simple flash project. In Scene 1 I have a large image above and a long scrolling image below which is a movieclip called image_slider. The Scrolling is set with actionscript 3.0 mouse over event listener. When the user moves the mouse right image_slider moves left, when mouse is left it moves right. It works very nicely. Now I wanted different parts of image_slider to change the large image above when they are clicked.

So I decided to do these actions as part of the image_slider movieclip. So I have added transparent buttons to the image_slider movie clip and added event listeners for them and functions to gotoandstop at different frames in Scene1. This works well.

My problem is that now the image_slider no longer moves freely. It does move, but as you can see it if your mouse stops moving the scrolling will stop at the next button. You have to move the mouse again to make it keep scrolling. I don't know why it has decided to do this. Does anyone have any idea of how to stop it from stopping at each button edge?

You can see the flash movie at http://www.luanamercy.com/FeatureExamples/flashgallery.html

Let me know if I can provide more information that would be helpful to you. Maybe there is a better way to do the buttons. I am a newbie so I might be doing this a bad way.

I appreciate any help.

Thanks Luana


You basically lose your MOUSE_OVER Event whenever the mouse goes over one of the transparent buttons.

One way to solve it could be to have a container MovieClip that would hold both the strip and the transparent buttons and get that container to listen to your MOUSE_OVER events as opposed to the strip itself.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜