Масштаб на Hover в AS3 - PullRequest
       8

Масштаб на Hover в AS3

0 голосов
/ 21 февраля 2020

У меня есть символ, который я хочу масштабировать, используя временную шкалу, когда он завис. Я не могу понять это.

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

1 Ответ

1 голос
/ 22 февраля 2020

Я следил за мастером кода 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);
});
Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...