Skip to main content
paulg64066118
Participant
April 18, 2017
Answered

Animation (AN CC) with redirect opens in the animationbox itself

  • April 18, 2017
  • 2 replies
  • 1168 views

Hello,

I am stuck for hours now at a problem with adobe muse and animate cc.

I created a small interactive animation where I want the button to redirect me to my main page after a certain amount of time.

The redirection should open in the same Tab, but it always opens in the small animation windows itself (picture).

The Animation is done with animate and the oem file created was placed into muse.

This is the code I used within my animation (I tried changing parent to different parameters; e.g. self;blank)

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

this.startbtn.addEventListener("click", fl_ClickToGoToAndPlayFromFrame.bind(this));

function fl_ClickToGoToAndPlayFromFrame()

{

  this.gotoAndPlay(12);

  window.setTimeout(function() {

    window.location.href = "http://adbio.eu/adbio-europe","_parent";

}, 4300);

}

How am I able to solve this problem?

Any help is greatly appreciated

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

__________________________________

OEM-FILE: final.oam - Google Drive

AN CC-FILE: engine.fla - Google Drive

WEBPAGE: http://adbio.eu/

Adobe Animate CC - General

This topic has been closed for replies.
Correct answer Colin Holgate

I know nothing about OAM or Muse, but this seemed to work:

window.parent.location = "http://adbio.eu/adbio-europe";

2 replies

rezun8
Inspiring
April 19, 2017

_Parent will open a window if it is not in an iFrame if I recall correctly. Try using _Self

Its been a while since I had to code this type stuff so forgive if not accurate

paulg64066118
Participant
April 19, 2017

I alrdy tried that, but the result is the same. You can check my page. Just changed it to "_self".

But thanks for your contribution

Colin Holgate
Colin HolgateCorrect answer
Inspiring
April 19, 2017

I know nothing about OAM or Muse, but this seemed to work:

window.parent.location = "http://adbio.eu/adbio-europe";

ankushr40215001
Inspiring
April 19, 2017

Moved the thread to Adobe Animate CC - General for getting the expert advice.