package { import flash.utils.*; import flash.events.Event; import flash.display.MovieClip; public class Overlay extends flash.display.MovieClip { private var registry:RegistryManager; /* * After doing some science, 50ms seems to be roughly the time it takes * for a request to complete and for the locking to not happen. */ private const REFRESH_RATE = 10; public function Overlay() { this.registry = new RegistryManager(REFRESH_RATE); var confParser:ConfigParserRegistry = new ConfigParserRegistry("StreamInfo.txt"); var confParser2:ConfigParserRegistry = new ConfigParserRegistry("StreamInfo2.txt"); this.registry.addRegistry(confParser); this.registry.addRegistry(confParser2); this.registry.addEventListener(registry.getUpdateEventType(), this.updated); } private function updated(e:Event) { trace("updated"); trace(this.registry.getLastUpdated()); //var cam:Object = this.conf.get('Cam'); //trace(cam.MusicBoxBase); } } }