/// <summary> /// This is a javascript application. /// </summary> /// <param name="page">HTML document rendered by the web server which can now be enhanced.</param> public Application(IApp page) { ApplicationSprite sprite = new ApplicationSprite(); // Initialize ApplicationSprite sprite.AttachSpriteToDocument(); page.GoFullscreenFromFlash.onclick += delegate { sprite.GoFullscreen(); }; page.GoFullscreenFromDOM.onclick += delegate { SpriteExtensions.ToHTMLElement(sprite).requestFullscreen(); }; @"FlashTreasureHunt".ToDocumentTitle(); }