Copy link to clipboard
Copied
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/
I know nothing about OAM or Muse, but this seemed to work:
window.parent.location = "http://adbio.eu/adbio-europe";
Copy link to clipboard
Copied
Moved the thread to Adobe Animate CC - General for getting the expert advice.
Copy link to clipboard
Copied
_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
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
I know nothing about OAM or Muse, but this seemed to work:
window.parent.location = "http://adbio.eu/adbio-europe";
Copy link to clipboard
Copied
That's it! Thank you - you're a legend!
Have a nice day!