Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/467.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 在AS3中悬停时缩放_Javascript_Html5 Canvas - Fatal编程技术网

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功能