Graphics Reference
In-Depth Information
Use the + button to add various events successively. For our logging example,
select the click event for the first button, and the corresponding Code panel
appears. We can now write any JavaScript code that will always run whenever
the event occurs. The code lines preceded by two slashes (//) are comments and
are automatically generated by Edge Animate. Now we can write the following
logging statement in the code editor:
console.log( "First Button was clicked." );
Figure 5.6
An initial logging statement for the
click event of a button
 
Search WWH ::




Custom Search