Topic: JavaScript and ActionScript playback control
Hello all,
I have an HTML page created using Dreamweaver CS3 which contains a SWF movie produced with Flash CS3 (movie duration 9min57secs).
I have deliberately excluded the addition of a skin and the movie is placed in a ‘Pause’ condition when the page opens.
Within the HTML I have a Javascript function which produces a duration value 'x'. (which is an integer of milliseconds)
My requirement, and my problem, is that I wish to pass this duration value to the Flash video in such a way as to instruct the video to ‘resume’ play and then (after 'x' milliseconds duration) pause the playback and await the next ‘resume’ instruction from Javascript.
I am aware that Javascript and Actionscript can pass instructions to and from one another using ‘ExternalInterface.addCallback’ and ‘ExternalInterface.call’, however, all the tutorials and forum examples I have viewed to date only show how to pass text, or to run a very short video to its end and invariably they all involve the use of a button to instigate the function.
Can anyone direct me to, or provide, an example that performs the functions I have described above.
I hope someone can help me.
Thanks.
