zoukankan      html  css  js  c++  java
  • 使用C#及Visual Studio2003 制作Flash

    一个叫NeoSwiff的编译器目前可将C#语言编译成swf文件,并可使用Flash播放器播放。

    有独立版本和作为Visual Studio组件的版本可供选择。

    http://www.globfx.com/products/neoswiff





    代码样例:

    using System;
    using System.Drawing;
    using System.Collections;
    using System.ComponentModel;
    using System.Windows.Forms;


    namespace FlashApplication1
    {
      
    public class Form1 : System.Windows.Forms.Form
      
    {
        
    private System.Windows.Forms.Button button1 = null;
        
    private System.Windows.Forms.Button button2 = null;
    //        private System.Windows.Forms.PictureBox pictureBox1;


        
    public Form1()
        
    {
          InitializeComponent();
          
          
    //
          
    // TODO: Add constructor logic here
          
    //
        }


        
    private void InitializeComponent()
        
    {
          
    this.button1 = new System.Windows.Forms.Button();
           
    this.button2 = new System.Windows.Forms.Button();
          
    this.SuspendLayout();
          
    // 
          
    // button1
          
    // 
          this.button1.Location = new System.Drawing.Point(5050);
          
    this.button1.Text = "button1";

          
          
          
    //
          
    //b2
          
    //
          
          
          
                      
    this.button2.Location = new System.Drawing.Point(7070);
                
    //this.button2.Name = "button2";
                this.button2.Size = new System.Drawing.Size(16840);
                
    this.button2.TabIndex = 0;
                
    this.button2.Text = "button2";

          
    // 
          
    // Form1
          
    // 
          this.Controls.Add(this.button1);
          
    this.Controls.Add(this.button2);
    //          this.Controls.Add(this.richTextBox1);
          this.Text = "Form1";
          
    this.ResumeLayout(false);
          
          
          
          
          
          
        }


        
    static void Main()
        
    {
          
    //
          
    // TODO: Add application logic here
          
    //
          Application.Run( new Form1() );
        }

      }

    }

  • 相关阅读:
    file is universal (3 slices) but does not contain a(n) armv7s slice error for static libraries on iOS
    WebImageButton does not change images after being enabled in Javascript
    ajax OPTION
    编程遍历页面上所有TextBox控件并给它赋值为string.Empty?
    获取海洋天气预报
    C#线程系列教程(1):BeginInvoke和EndInvoke方法
    js控制只能输入数字和小数点
    Response.AddHeader(,)
    ManualResetEvent的理解
    Convert.ToInt32、int.Parse(Int32.Parse)、int.TryParse、(int) 区别
  • 原文地址:https://www.cnblogs.com/Jonlee/p/137780.html
Copyright © 2011-2022 走看看