Javascript 在AS3中悬停时缩放
我有一个符号,当它悬停时,我想使用时间线来缩放它。我想不出来Javascript 在AS3中悬停时缩放,javascript,html5-canvas,Javascript,Html5 Canvas,我有一个符号,当它悬停时,我想使用时间线来缩放它。我想不出来 var frequency = 3; stage.enableMouseOver(frequency); this.bitez_main.addEventListener("mouseover", fl_MouseOverHandler_1); function fl_MouseOverHandler_1() { this.bitez_main.bitez_over.gotoAndPlay(2); } 我已经跟进了Animate的
var frequency = 3;
stage.enableMouseOver(frequency);
this.bitez_main.addEventListener("mouseover", fl_MouseOverHandler_1);
function fl_MouseOverHandler_1()
{
this.bitez_main.bitez_over.gotoAndPlay(2);
}
我已经跟进了Animate的代码向导,它成功了。 这是生成的代码
var _this = this;
/*
Mousing over the specified symbol instance executes a function.
'3' is the number of the times event should be triggered.
*/
stage.enableMouseOver(3);
_this.main_mc_bitez.on('mouseover', function(){
/*
Moves the playhead to the specified frame number in the timeline and continues playback from that frame.
Can be used on the main timeline or on movie clip timelines.
*/
_this.main_mc_bitez.gotoAndPlay(2);
});
修复了标签,因为它看起来像JavaScript,而不是ActionScript:似乎有一个类似的问题,答案是:谢谢。我已经看到了这个问题。这就是主时间线中的一个点。在我的问题中,movieclip有自己的时间线,我无法在那里使用gotoAndPlay功能