2 * Ext JS Library 0.30
\r
3 * Copyright(c) 2006-2009, Ext JS, LLC.
\r
4 * licensing@extjs.com
\r
6 * http://extjs.com/license
\r
10 * @class Ext.air.Sound
\r
17 * @param {String} file The file to be played. The path is resolved against applicationDirectory
\r
18 * @param {Number} startAt (optional) A time in the sound file to skip to before playing
\r
20 play : function(file, startAt){
\r
21 var soundFile = air.File.applicationDirectory.resolvePath(file);
\r
22 var sound = new air.Sound();
\r
23 sound.load(new air.URLRequest(soundFile.url));
\r
24 sound.play(startAt);
\r