Using Adobe Animate, how do I make one iframe control another iframe's timeline?

106
October 24, 2019, at 03:40 AM

1 Summarize the problem:

I am using Adobe Animate Canvas. I have a main clip that spawns iframe0 using mkdiv. iframe0 then makes iframe1 also using mkdiv. I want iframe1 to push iframe0's timeline ahead by 1 frame using a button. I don't know how to do it. Others have suggested using postMessage() so iframe1 tells iframe0 to gotoAndStop(2);

2 and 3: Describe what you've tried/Show some Code:

I've never done this, so I made some guesswork. It didn't work. Here's what I tried to do.

iframe0 has the following code:

window.addEventListener("message", receiveMessage, false);

iframe1 has this button code:

var _this = this;
_this.bday0.on('click', function () {
    var iframeX = window.parent.document.getElementById('iframe0');
    var message = gotoAndStop(2);
    iframeX.postMessage('message', "*");
});

When I push the button, iframe0's clip does not go forward a frame. Looking for a simple copy/paste ready to use code already filled out for me. Not sure if you need file name references, but here they are. Each one has their own timeline made in Adobe Animate.

  • main clip is index.html
  • iframe0 is Ecards.html
  • iframe1 is Ecardsbirthday.html
READ ALSO
<form> element in React does not work like i expect it to

<form> element in React does not work like i expect it to

Hi I am trying to learn JavaScript + React and have the following problemI'm trying to create a form element where the user can enter input

99
Capture data from editable Bootstrap table into array

Capture data from editable Bootstrap table into array

I have a bootstrap table set up (using react-bootstrap-table-next) that will allow a user to edit the cells and input desired valuesOnce they are finished, I would like for them to click a "Submit" button and save the values of a table (which I will then POST to an API)

122
ER_HANDSHAKE_ERROR: Bad handshake - Connecting to an external DB using node-mysql

ER_HANDSHAKE_ERROR: Bad handshake - Connecting to an external DB using node-mysql

I am quite new to node-mysql and want to connect to an external databaseThe database is up and running as I am able to connect to it via the mysql CLI using the same credentials (or even via the MySQL Administrator tool)

116
Google Cloud Functions Retrieve Data from Firestore

Google Cloud Functions Retrieve Data from Firestore

I am trying to configure Twilio with Firestore database(in cloud funtions) My goal is to retrieve information from a document and then use that information to send a text

120