Jump to content

JavaScript and ActionScript playback control


draig_hand

Recommended Posts

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...