gpt4 book ai didi

javascript - AS3 中的悬停缩放

转载 作者:行者123 更新时间:2023-12-02 21:42:09 24 4
gpt4 key购买 nike

我有一个符号,我想在它悬停时使用时间轴进行缩放。我想不通。

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);
}

action on hover

最佳答案

我已经跟进了 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 - AS3 中的悬停缩放,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60344368/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com