Animate 360 VR - Event Listeners not working?

Engaged ,
Jan 06, 2021 Jan 06, 2021

Copy link to clipboard

Copied

I have a Movie Clip Instance Name "p_OC" and inside that movie clip I have a MC with the Instance Name "b_HS" on the first frame.

 

When a mouse hovers over b_HS I want p_OC to display the next frame. (So, on Hover, show the contents of the next frame)

 

This code on the first frame of p_OC where b_HS resides does not perform this function:

 

 

 

this.b_HS.addEventListener(AnEvent.MOUSE_OVER, function() {
	this.gotoAndStop(2); 
// I have also tried displaying frame 1 assuming frame numbers start at 0
});

 

 

 

The result is p_OC remains on the first frame. 

 

I also tried from the root, this code which produced the same results:

 

 

 

this.p_OC.b_HS.addEventListener(AnEvent.MOUSE_OVER, function() {
	this.p_OC.gotoAndStop(2);
});

 

 

 

Does anyone know the magic words to get MC's to respond to Events in Animate 360 VR?

 

Thank you. 

 

 

TOPICS
How to

Views

103

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
community guidelines
Engaged ,
Jan 11, 2021 Jan 11, 2021

Copy link to clipboard

Copied

I am using the same code found in the demo file Museum_360_complete.fla so I am baffled as to why it is not working for mine.

 

The MC direction_sign_1 is very similar to the one I created for mine, the code used in the demo is:

 

this.direction_sign_1.addEventListener(AnEvent.MOUSE_OVER, function() {
	this.play();
});

 

...which works fine, but is odd as the second line this.play(); does not refer to the root (as this bit of code is on the root) but refers to the MC direction_sign_1 somehow. Am I reading that correctly? Is the path context different in 360 VR projects?

 

For mine, I tried:

this.p_OC.b_HS.addEventListener(AnEvent.MOUSE_OVER, function() {
	this.play();
});

 

...which was also ignored. There are 20 frames in my MC p_OC but the clip didn't budge on mouseover. 

My 360 VR project is producing errors in the console such as:

 

runtime.js:22 Timer 'GLTFLoader' already exists

runtime.js:22 GLTFLoader: 31.800048828125 ms

runtime.js:22 Timer 'GLTFLoader' does not exist

runtime.js:22 GLTFLoader: 15.076904296875 ms

 

Can anyone make heads or tails of that?

 

Thanks. 

 

 

 

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
community guidelines
Engaged ,
Jan 14, 2021 Jan 14, 2021

Copy link to clipboard

Copied

Is it because 360 VR is so new that not even Adobe eployees are unable to field or simply ignore seemingly simple issues like this?


When can customers expect some kind of product support for this? 

Thanks. 

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
community guidelines
Adobe Community Professional ,
Jan 15, 2021 Jan 15, 2021

Copy link to clipboard

Copied

LATEST

Hi.

 

I apologize for the problems you have faced and for the lack of answers.

 

I did a test here reproducing your case and was able to find out that the mouse over event is working.

 

The problem seems to be with the gotoAndStop method.

 

For some very strange reason, to display an instance that is in frame 2, I have to send the timeline to frame 3.

var _this = this;

_this.p_OC.b_HS.addEventListener (AnEvent.MOUSE_OVER, function(e)
{
    _this.p_OC.gotoAndStop(3);
});

 

I can't even tell you if it's a bug because I don't really have much experience with this type of document. I hope someone else has an explanation for that.

 

Anyway, you can contact the team to clarify why it works like this or if it is a bug.

https://www.adobe.com/products/wishform.html

 

I hope it helps.

 

Regards,
JC

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
community guidelines