html5 mouseover,Flash HTML5 canvas fl_MouseOverHandler

作者正在使用Flash创建一个网站,该网站使用canvas元素并在鼠标悬停时播放电影片段,点击时跳转到另一个页面。但目前只有链接工作正常,电影片段无法播放。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

I'm quite new to Flash Actionscript & Javascript but I'm hoping to get some help here if possible. I'm creating a website using the canvas element, there is an image on the canvas and when you scroll over a part of that image, a movie clip plays, when you click on it, it takes you to another page. I'm using flash to create it, but I'm having difficulty figuring out what's going wrong. I'm using code snippets to add in event handlers but I'm not getting the movie clip to play. The link to the page works but the mouse over event does not.

Also, my movie clip contains many layers, will this make a difference?

Any help would be greatly appreciated. /* Stop a Movie Clip*/ this.movieClip_11.stop(); /* Mouse Over Event*/ var frequency = 3; stage.enableMouseOver(frequency); this.movieClip_11.addEventListener("mouseover", fl_MouseOverHandler_32); function fl_MouseOverHandler_32() { this.movieClip_11.play(); } /* Play a Movie Clip*/ /* Click to Go to Web Page*/ this.movieClip_11.addEventListener("click", fl_ClickToGoToWebPage_15); function fl_ClickToGoToWebPage_15() { window.open("___", "_self"); }

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值