Highlighted

gotoAndPlay on rollout

Explorer ,
Aug 18, 2020

Copy link to clipboard

Copied

Hello all 🙂

I have this code, which is supposed to play animation from frame 2 (HTML 5 Canvas) whenever the mouse hovers or a click is done to the button. This seems to be working.

The rollout should play the same MovieClip from another frame (8), but when I rollout nothing happens.

I am really lost again here... If anyone could shed some lights I would truly appreciate it.

Thanks in advance 🙂

 

 

 

 

/* Interactivity Starts here */
var frequency = 3;
stage.enableMouseOver(frequency);

//BasePlate
this.basePlateBT.addEventListener("click", MouseClickBasePlate.bind(this));

function MouseClickBasePlate() {
	this.basePlateMC.gotoAndPlay(1);
}

this.basePlateBT.addEventListener("mouseover", MouseOverBasePlate.bind(this));

function MouseOverBasePlate() {
	this.basePlateMC.gotoAndPlay(1);
}
this.bellyBT.addEventListener("mouseout", MouseOutBasePlate.bind(this));

function MouseOutBasePlate() {
	this.basePlateMC.gotoAndPlay(7);
}

 

 

The screenshot below shows where the stops are in the MovieClip

Capture.JPG

 

 

Of course it doesn't work... I have been working for hours on this document... I noticed only now when reading my post...

Sorry!

The name of the instance was wrong

TOPICS
ActionScript

Views

21

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

gotoAndPlay on rollout

Explorer ,
Aug 18, 2020

Copy link to clipboard

Copied

Hello all 🙂

I have this code, which is supposed to play animation from frame 2 (HTML 5 Canvas) whenever the mouse hovers or a click is done to the button. This seems to be working.

The rollout should play the same MovieClip from another frame (8), but when I rollout nothing happens.

I am really lost again here... If anyone could shed some lights I would truly appreciate it.

Thanks in advance 🙂

 

 

 

 

/* Interactivity Starts here */
var frequency = 3;
stage.enableMouseOver(frequency);

//BasePlate
this.basePlateBT.addEventListener("click", MouseClickBasePlate.bind(this));

function MouseClickBasePlate() {
	this.basePlateMC.gotoAndPlay(1);
}

this.basePlateBT.addEventListener("mouseover", MouseOverBasePlate.bind(this));

function MouseOverBasePlate() {
	this.basePlateMC.gotoAndPlay(1);
}
this.bellyBT.addEventListener("mouseout", MouseOutBasePlate.bind(this));

function MouseOutBasePlate() {
	this.basePlateMC.gotoAndPlay(7);
}

 

 

The screenshot below shows where the stops are in the MovieClip

Capture.JPG

 

 

Of course it doesn't work... I have been working for hours on this document... I noticed only now when reading my post...

Sorry!

The name of the instance was wrong

TOPICS
ActionScript

Views

22

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Aug 18, 2020 0
Explorer ,
Aug 18, 2020

Copy link to clipboard

Copied

Of course it doesn't work... I have been working for hours on this document... I noticed only now when reading my post...

Sorry!

The name of the instance was wrong

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Aug 18, 2020 0