Connect output from animation to highcharts using window.message #1
+189
−0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Note
No need to merge this PR, as it's only to demonstrate the changes needed to make the connection work.
Changes
This pull request includes the addition of a new HTML file,
photosynthesis-chloroplast2.html
, which sets up the structure and scripting for an animation and a Highcharts graph related to photosynthesis in chloroplasts. The most important changes include the initialization of the animation and Highcharts graph, handling of messages to update the graph, and the setup of the HTML structure.Initialization and scripting:
photosynthesis-chloroplast2.html
)photosynthesis-chloroplast2.html
)HTML structure:
photosynthesis-chloroplast2.html
)Test
window.postMessage('stage[0,1,2...]')
in the scene. Go to Window > Actions to bring up the ActionScript dialog.photosynthesis-chloroplast.html
, open upphotosynthesis-chloroplast2.html
.photosynthesis-chloroplast2.html
listens to it, and invokes highchart to plot the graph.