Upgrade to ExtJS 3.0.0 - Released 07/06/2009
[extjs.git] / docs / source / Sound.html
diff --git a/docs/source/Sound.html b/docs/source/Sound.html
new file mode 100644 (file)
index 0000000..722c6c3
--- /dev/null
@@ -0,0 +1,28 @@
+<html>\r
+<head>\r
+  <title>The source code</title>\r
+    <link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />\r
+    <script type="text/javascript" src="../resources/prettify/prettify.js"></script>\r
+</head>\r
+<body  onload="prettyPrint();">\r
+    <pre class="prettyprint lang-js"><div id="cls-Ext.air.Sound"></div>/**\r
+ * @class Ext.air.Sound\r
+ * \r
+ * @singleton\r
+ */\r
+Ext.air.Sound = {\r
+       <div id="method-Ext.air.Sound-play"></div>/**\r
+        * Play a sound.\r
+        * @param {String} file The file to be played. The path is resolved against applicationDirectory\r
+        * @param {Number} startAt (optional) A time in the sound file to skip to before playing \r
+        */\r
+       play : function(file, startAt){\r
+               var soundFile = air.File.applicationDirectory.resolvePath(file);\r
+               var sound = new air.Sound();\r
+               sound.load(new air.URLRequest(soundFile.url));\r
+               sound.play(startAt);\r
+       }\r
+};\r
+</pre>    \r
+</body>\r
+</html>
\ No newline at end of file