<snippet label="New Document Class" ascript="package\n{\n\timport flash.display.*;\n\n\tpublic class DocumentClass extends MovieClip\n\t{\n\n\t\tpublic function DocumentClass():void\n\t\t{\n\n\t\t}\n\n\t}\n\n}" />
	
<snippet label="Play External Sound" ascript="var s:Sound = new Sound(new URLRequest([REPLACE]));\nvar sc:SoundChannel = s.play();\nvar st:SoundTransform = new SoundTransform(1, 0);\nsc.soundTransform = st;" />
	
<snippet label="Custom FLV Playback" ascript="var video:Video = new Video();\naddChild(video);\n\nvar nc:NetConnection = new NetConnection();\nnc.connect(null);\n\nvar ns:NetStream = new NetStream(nc);\nns.client = this;\n\nfunction onMetaData(info:Object):void\n{\n\n}\n\nvideo.attachNetStream(ns);\nns.play([REPLACE]);" />
	
<snippet label="Loading External Content" ascript="var loader:Loader = new Loader();\nloader.contentLoaderInfo.addEventListener(Event.COMPLETE, onLoaded);\nloader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, onProgress);\n\nfunction onLoaded(e:Event):void\n{\n\taddChild(loader.content);\n}\n\nfunction onProgress(e:ProgressEvent):void\n{\n\ttrace(((e.bytesLoaded/e.bytesTotal) * 100).toString() + 'percent loaded');\n}\n\nloader.load(new URLRequest([REPLACE]));" />