Exemple #1
0
        public UltraApplication(IHTMLElement e)
        {
            var note1 = new IHTMLDiv {
                innerHTML = "Notice: If flash does not respond to events, you need to clear your cache."
            }.AttachToDocument();

            note1.style.color = Color.Red;


            var s = new UltraSprite();

            s.AttachSpriteToDocument();

            var SayHello = new IHTMLButton {
                innerText = "Say Hello to flash!"
            }.AttachToDocument();

            SayHello.onclick +=
                delegate
            {
                s.AppendLine("Hello from javascript");

                s.WhenReady(
                    delegate
                {
                    s.AppendLine("What about using the web service?");
                }
                    );
            };

            s.AppendLine("This call is delayed until flash is loaded (1)");
            s.AppendLine("This call is delayed until flash is loaded (2)");
            s.AppendLine("This call is delayed until flash is loaded (3)");

            s.WhenReady(
                delegate
            {
                s.AppendLine("What about using the web service?");
            }
                );

            s.AppendLine("This call is delayed until flash is loaded (4)");

            ButtonsForWebService();
        }
		public UltraApplication(IHTMLElement e)
		{
			var note1 = new IHTMLDiv { innerHTML = "Notice: If flash does not respond to events, you need to clear your cache." }.AttachToDocument();

			note1.style.color = Color.Red;


			var s = new UltraSprite();

			s.AttachSpriteToDocument();

			var SayHello = new IHTMLButton { innerText = "Say Hello to flash!" }.AttachToDocument();

			SayHello.onclick +=
				delegate
				{
					s.AppendLine("Hello from javascript");

					s.WhenReady(
						delegate
						{
							s.AppendLine("What about using the web service?");
						}
					);
				};

			s.AppendLine("This call is delayed until flash is loaded (1)");
			s.AppendLine("This call is delayed until flash is loaded (2)");
			s.AppendLine("This call is delayed until flash is loaded (3)");

			s.WhenReady(
				delegate
				{
					s.AppendLine("What about using the web service?");
				}
			);

			s.AppendLine("This call is delayed until flash is loaded (4)");

			ButtonsForWebService();
		}