<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
	<meta name="robots" content="all" />
	
	<!-- Section Specific -->
	
	<link rel="alternate" type="application/atom+xml" title="Atom 1.0 &mdash; Plugins" href="http://mootools.net/forge/feed/recent/atom1" />
	
	<link rel="alternate" type="application/rss+xml" title="RSS 2.0 &mdash; Plugins" href="http://mootools.net/forge/feed/recent" />	
	
	<link rel="alternate" type="text/xml" title="RSS .91 &mdash; Plugins" href="http://mootools.net/forge/feed/recent/rss091" />	
	
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <meta name="title" content="MooTools Forge | Quickie" />
<meta name="description" content="MooTools Plugins directory" />
<meta name="language" content="en" />
<meta name="robots" content="index, follow" />
  <title>MooTools Forge | Quickie</title>
	

<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-1122274-8']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script');
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    ga.setAttribute('async', 'true');
    document.documentElement.firstChild.appendChild(ga);
  })();

</script>
<script type="text/javascript" src="/forge/js/mootools-1.2.2-core+more.js"></script>
<script type="text/javascript" src="/forge/js/lighter.js"></script>
<script type="text/javascript" src="/forge/js/passshark.js"></script>
<script type="text/javascript" src="/forge/js/pluginskit.js"></script>
<script type="text/javascript" src="/forge/js/fancyzoom.js"></script>
<script type="text/javascript" src="/forge/js/fancyzoom.html.js"></script>
<link rel="stylesheet" type="text/css" media="screen" href="/forge/css/screen.css" />
<link rel="stylesheet" type="text/css" media="screen" href="http://mootools.net/assets/styles/layout.css" />
<link rel="stylesheet" type="text/css" media="screen" href="http://mootools.net/assets/styles/main.css" />
<link rel="stylesheet" type="text/css" media="print" href="/forge/css/print.css" />
<link rel="stylesheet" type="text/css" media="screen" href="/forge/css/pluginskit.css" />
</head>
<body>
	
	<div id="header">	
		<div class="container">
       <a id="mediatemple" href="http://mediatemple.net">
               <span>in partnership with mediatemple</span>
       </a>
			<div id="logo">
				<h1><a href="http://mootools.net"><span>PluginsKit</span></a></h1>
				<h2><span>a plugins repository</span></h2>
			</div>
<div id="navigation">
			<a href="/" class="first">Home</a>
			<a href="/download">Download</a>
			<a href="/docs">Docs</a>
                        <a href="/forge/">Forge</a>
			<a href="/blog">Blog</a>
			<a href="http://demos.mootools.net/">Demos</a>
		</div>
		</div>	
	</div>	

	<div id="wrapper">
		<div id="container" class="container forge">
			<div id="main" class="span-18 colborder">
								
				
<div class="block" id="project">
	<h2 class="green"><span>Quickie 
	<em class="version">2.1</em>	</span></h2>

	<div class="block" id="project-desc">
		<p id="thumb"><a href="/forge/uploads/screenshots/69/725/382c2672236daf17233bc7c10a79d815.png" class="remooz"><span class="project_thumb"><img src="/forge/uploads/screenshots/69/725/thumbs/382c2672236daf17233bc7c10a79d815.png" /></span></a></p>		<p>Quickie is a small MooTools class to embed QuickTime objects into your website. It is based on the Swiff class provided by MooTools so if you’re familiar with that class, you’ll find yourself at home with this one.</p><p></p>	</div>
	
	<hr />
	
	<div id="plugin-links" class="link-boxes block">
						<a href="http://pradador.com/code/quickiejs/demo/">Demo</a>
		
    		<a href="/forge/download/quickie/2.1">Download</a>    
			</div>
	
		
	<hr />
	
	<div class="block span-8 colborder">
		<h3 class="blue"><span>Details</span></h3>

		<dl class="table">
			<dt>Author</dt>
			<dd><a href="/forge/profile/pradador">Jose Prado</a></dd>
			
							
			<dt>Current version</dt>
			<dd>2.1</dd>
						
			<dt>GitHub</dt>
						<dd><a href="http://github.com/pradador/Quickie/">pradador/Quickie</a></dd>
			
			<dt>Downloads</dt>
			<dd>3692</dd>
			
						<dt>Category</dt>
			<dd><a href="/forge/browse/category/media">Media</a></dd>			
						
						<dt>Tags</dt>
			<dd id="plugin-tags">
				<ul class="tags-list">
															<li><a href="/forge/browse/tag/quicktime">quicktime</a></li>
															<li><a href="/forge/browse/tag/wrapper">wrapper</a></li>
									</ul>
			</dd>
						
			<dt>Report</dt>
			<dd><a href="http://github.com/pradador/Quickie/issues">GitHub Issues</a></dd>
			
						
						
		</dl>
	</div>

	<div class="block span-8 last">
		<h3 class="blue"><span>Releases</span></h3>
		<ul class="versions-list">
							<li><a href="/forge/download/quickie/2.1">2.1</a></li>
											
		</ul>		
		
				<hr />
		
		<h3 class="blue"><span>Dependencies</span></h3>
		
		<ul>
									
									
							
						
									
							
						
									
							
						
									
							
						
									
							
						
									
							
						
									
							
						
									
							
						
						<li>
				core/1.2.4:
				
								<ul>
										<li>Browser</li>
										<li>Class</li>
										<li>Options</li>
										<li>Events</li>
										<li>Array</li>
										<li>Hash</li>
										<li>Element</li>
										<li>Element.Event</li>
									</ul>
							</li>
					</ul>
				
	</div>
	
	<hr class="clear" />
	
	<div class="block section">
		<h3 class="blue"><span>How to use</span></h3>
		
		<p>Download and extract Quickie, then copy the Quickie.js file into a web-accessible directory of your choice. There is a YUI compressed version in the Compressed folder for your convenience.</p><p>Link to the Quickie.js file in the head section of your document after the MooTools link. The example below assumes you extracted the files to a folder called “js”.</p><pre class="html">
&lt;head&gt; 
...
&lt;script type="text/javascript" src="js/mootools.core.js"&gt;&lt;/script&gt; 
&lt;script type="text/javascript" src="js/Quickie.yui.js"&gt;&lt;/script&gt; 
...
&lt;/head&gt;
</pre><p>Add the following IE conditional code to the head section of your document. This object is necessary for IE to fire the QuickTime DOM events as detailed in the <a href="http://developer.apple.com/mac/library/documentation/QuickTime/Conceptual/QTScripting_JavaScript/aQTScripting_Javascro_AIntro/Introduction%20to%20JavaScript%20QT.html">JavaScript Scripting Guide for QuickTime</a>.</p><pre class="html">
&lt;head&gt; 
...
&lt;!--[if IE]&gt;
&lt;object id="qt_event_source" classid="clsid:CB927D12-4FF7-4a9e-A169-56E4B8A75598" codebase="http://www.apple.com/qtactivex/qtplugin.cab#version=7,2,1,0"&gt;&lt;/object&gt;
&lt;![endif]--&gt; 
...
&lt;/head&gt;
</pre><p>Finally, use the following JavaScript code example inside of a 'domready' or 'onLoad' function to create the Quickie object.</p><pre class="js">
var myQuickie = new Quickie('myMovie.mov', { 
  id: 'myQuicktimeMovie', 
  width: 640, 
  height: 480, 
  container: 'qtmovie', 
  attributes: { 
    controller: 'true', 
    autoplay: 'false' 
  }, 
  onPlay: function() { alert('Playing'); }, 
  onPause: function() { alert('Pausing'); } 
});
</pre>	</div>	
	
			<hr />	
	<div class="block section">
		<h3 class="blue"><span>Features</span></h3>		
		<ul><li>Written in MooTools. Requires version 1.2.1+</li>
<li>Automatically inserts browser-appropriate code for the QuickTime movie.</li>
<li>Allows you to listen for the DOM events QuickTime fires using familiar MooTools event listeners.</li>
</ul>	</div>
		<hr />	
	<div class="block section">
		<h3 class="blue"><span>Options</span></h3>		
		<ul><li>id – (string, defaults to Quickie_uniqueid) Id for the element which will be used to reference the QuickTime movie.</li>
<li>width – (integer, defaults to 1) Width of the movie in pixels.</li>
<li>height – (integer, defaults to 1) Height of the movie in pixels.</li>
<li>container – (element) ID of the element where the QuickTime movie will be inserted. Note anything inside the container will be wiped out.</li>
<li>attributes – (object) Key/Value pairs of any of the attributes a QuickTime movie can receive. There are two defaults, controller is set to true and postdomevents is set to true.</li>
</ul>	</div>
		<hr />	
	<div class="block section">
		<h3 class="blue"><span>Events</span></h3>		
		<p>Quickie can attach listeners to any of the QuickTime DOM Events. To add an event, simply add another property in the options object which begins with ‘on’ followed by the name of the event you want to listen for with the first letter capitalized. No need to use the ‘qt_’ prefix. For example, to listen for the play event, you would add this to the options object:</p><pre class="js">
onPlay: function() { alert('qt_play fired'); }
</pre>	</div>
		<hr />	
	<div class="block section">
		<h3 class="blue"><span>Known Issues</span></h3>		
		<p>IE is very picky with QuickTime events so there are some circumstances where it behaves wonkily, particularly with initialization events. I’m working on taming IE, but at the very least the major events (play, pause, etc) behave reliably.</p>	</div>
		<hr />	
	<div class="block section">
		<h3 class="blue"><span>Compatibility</span></h3>		
		<p>So far, I’ve only been able to test Quickie in the following browsers. Should work in others, will list them here pending confirmation.</p><p>Safari 4
Internet Explorer 7
Firefox 3</p>	</div>
		<hr />	
	<div class="block section">
		<h3 class="blue"><span>License</span></h3>		
		<p>Quickie is licensed under the MIT License. Use it, modify it, have fun with it… in any circumstance.</p>	</div>
			
	</div>		
			</div>
			
			<!-- Sidebar -->
			<div id="sidebar" class="span-5 last">
				<form action="/forge/browse" id="search-form" class="block">
	<div id="search_field">
		<input type="text" placeholder="Search" name="search" id="q" />
	</div>
	<div id="search_submit" class="input_submit">
		<input type="submit" value="Go" />
	</div>
</form>

<h4 class="login"><span>Developer Login</span></h4>

<form action="/forge/login" method="post" accept-charset="utf-8">
	<ul id="login-form" class="required">
		<li><label for="login_email">Email</label> <input type="text" name="login[email]" class="text" id="login_email" /></li>
		<li><label for="login_password">Password</label> <input type="password" name="login[password]" class="text" id="login_password" />		  
		  <div class="input_submit"><input type="submit" name="login_submit" value="Login" id="login_submit" /></div>			
		</li>					
	</ul>
	<input type="hidden" name="login[_csrf_token]" value="ba2d49aa2776cd947331f7a4f770ea99" id="login__csrf_token" />				
</form>

<ul id="login-other">
	<li id="login-other-twitter"><a href="/forge/login/twitter" class="twitter_button">Sign in with twitter</a></li>
	<li><a href="/forge/signup">Normal Signup</a></li>	
	<li><a href="/forge/login/forgot">I forgot my password</a></li>		
</ul>

<h4 class="development"><span>Browse</span> (<a href="/forge/browse">all</a>)</h4>
<ul>
		<li><a href="/forge/browse/category/effects">Effects</a></li>
		<li><a href="/forge/browse/category/forms">Forms</a></li>
		<li><a href="/forge/browse/category/interface">Interface</a></li>
		<li><a href="/forge/browse/category/media">Media</a></li>
		<li><a href="/forge/browse/category/native">Native</a></li>
		<li><a href="/forge/browse/category/realtime">Realtime</a></li>
		<li><a href="/forge/browse/category/request">Request</a></li>
		<li><a href="/forge/browse/category/utilities">Utilities</a></li>
		<li><a href="/forge/browse/category/widgets">Widgets</a></li>
	</ul>

<h4 class="resources"><span>Resources</span></h4>
<ul>
	<li><a href="/forge/how-to-add">How to Add a Plugin</a></li>
	<li><a href="/forge/plugin-guidelines">Plugin Writing Guidelines</a></li>	
	<!-- <li><a href="/forge/plugin/syntaxChecker">Syntax Checker</a></li> -->
        <li><a href="http://mooforge.uservoice.com/">Send Feedback</a></li>
</ul>

<h4 class="people"><span>People</span></h4>
<ul>
	<li><a href="/forge/developers">Plugin Authors</a></li>
</ul>
			</div>
			
		</div>	
	</div>

	<div id="footer">
<div class="container">
		<p class="copy"><a href="http://mad4milk.net" id="mucca"></a></p>
		<p>copyright ©2006-2009 <a href="http://mad4milk.net">Valerio Proietti</a></p>
	</div>
	</div>

</body>
</html>

