<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[KillerSites.com Web Design Forums - JavaScript and ActionScript playback control]]></title>
		<link>http://www.killersites.com/forums/topic/2055/javascript-and-actionscript-playback-control/</link>
		<description><![CDATA[The most recent posts in JavaScript and ActionScript playback control.]]></description>
		<lastBuildDate>Sat, 22 Aug 2009 09:31:51 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[JavaScript and ActionScript playback control]]></title>
			<link>http://www.killersites.com/forums/post/10185/#p10185</link>
			<description><![CDATA[<p>Hello all,<br />I have an HTML page created using Dreamweaver CS3 which contains a SWF movie produced with Flash CS3 (movie duration 9min57secs). <br />I have deliberately excluded the addition of a skin and the movie is placed in a ‘Pause’ condition when the page opens.<br />Within the HTML I have a Javascript function which produces a duration value &#039;x&#039;. (which is an integer of milliseconds)</p><br /><p>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 &#039;x&#039; milliseconds duration) pause the playback and await the next ‘resume’ instruction from Javascript.</p><p>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.</p><p>Can anyone direct me to, or provide, an example that performs the functions I have described above.<br />I hope someone can help me.<br />Thanks.</p>]]></description>
			<author><![CDATA[dummy@example.com (draig_hand)]]></author>
			<pubDate>Sat, 22 Aug 2009 09:31:51 +0000</pubDate>
			<guid>http://www.killersites.com/forums/post/10185/#p10185</guid>
		</item>
	</channel>
</rss>
