3 <title>The source code</title>
\r
4 <link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />
\r
5 <script type="text/javascript" src="../resources/prettify/prettify.js"></script>
\r
7 <body onload="prettyPrint();">
\r
8 <pre class="prettyprint lang-js"><div id="cls-Ext.air.Sound"></div>/**
\r
9 * @class Ext.air.Sound
\r
14 <div id="method-Ext.air.Sound-play"></div>/**
\r
16 * @param {String} file The file to be played. The path is resolved against applicationDirectory
\r
17 * @param {Number} startAt (optional) A time in the sound file to skip to before playing
\r
19 play : function(file, startAt){
\r
20 var soundFile = air.File.applicationDirectory.resolvePath(file);
\r
21 var sound = new air.Sound();
\r
22 sound.load(new air.URLRequest(soundFile.url));
\r
23 sound.play(startAt);
\r