Ejemplo n.º 1
0
 public void Push(string Data)
 {
     SwfDotnet.Format.ActionScript.Action item = new SwfDotnet.Format.ActionScript.Action(150);
     item.Add(new UI8(0));
     item.Add(new STRING(Data));
     this.Add(item);
 }
Ejemplo n.º 2
0
 public void If()
 {
     this.Not();
     SwfDotnet.Format.ActionScript.Action item = new SwfDotnet.Format.ActionScript.Action(0x9d);
     item.Jump = true;
     this.Add(item);
 }
Ejemplo n.º 3
0
 public void Push(int DicIndex)
 {
     SwfDotnet.Format.ActionScript.Action item = new SwfDotnet.Format.ActionScript.Action(150);
     item.Add(new UI8(5));
     item.Add(new UI8(DicIndex));
     this.Add(item);
 }
Ejemplo n.º 4
0
 public void gotoAndPlay(int FrameNumber)
 {
     SwfDotnet.Format.ActionScript.Action item = new SwfDotnet.Format.ActionScript.Action(0x81);
     item.Add(new UI16(FrameNumber - 1));
     this.Add(item);
     this.Play();
 }
Ejemplo n.º 5
0
 public void gotoAndPlay(int FrameNumber)
 {
     SwfDotnet.Format.ActionScript.Action item = new SwfDotnet.Format.ActionScript.Action(0x81);
     item.Add(new UI16(FrameNumber - 1));
     this.Add(item);
     this.Play();
 }
Ejemplo n.º 6
0
 public void If()
 {
     this.Not();
     SwfDotnet.Format.ActionScript.Action item = new SwfDotnet.Format.ActionScript.Action(0x9d);
     item.Jump = true;
     this.Add(item);
 }
Ejemplo n.º 7
0
 public void Push2(int Data, int Data2)
 {
     SwfDotnet.Format.ActionScript.Action item = new SwfDotnet.Format.ActionScript.Action(150);
     item.Add(new UI8(8));
     item.Add(new UI8(Data));
     item.Add(new UI8(8));
     item.Add(new UI8(Data2));
     this.Add(item);
 }
Ejemplo n.º 8
0
 public void DeclareDictionary(string[] data)
 {
     SwfDotnet.Format.ActionScript.Action item = new SwfDotnet.Format.ActionScript.Action(0x88);
     item.Add(new UI16(data.Length));
     for (int i = 0; i < data.Length; i++)
     {
         item.Add(new STRING(data[i], true));
     }
     this.Add(item);
 }
Ejemplo n.º 9
0
 public void DeclareDictionary(string[] data)
 {
     SwfDotnet.Format.ActionScript.Action item = new SwfDotnet.Format.ActionScript.Action(0x88);
     item.Add(new UI16(data.Length));
     for (int i = 0; i < data.Length; i++)
     {
         item.Add(new STRING(data[i], true));
     }
     this.Add(item);
 }
Ejemplo n.º 10
0
        protected override void OnCompile()
        {
            SwfDotnet.Format.ActionScript.Action action = null;
            int       num   = 0;
            bool      flag  = false;
            bool      flag2 = false;
            bool      flag3 = false;
            ArrayList list  = (ArrayList)base._arr.Clone();

            foreach (SwfDotnet.Format.ActionScript.Action action2 in list)
            {
                if (action2._code == 0x9d)
                {
                    flag   = true;
                    action = action2;
                }
                else
                {
                    if (action2._code == 0x99)
                    {
                        flag3 = true;
                    }
                    if (action2._code == 0)
                    {
                        flag2 = true;
                        base._arr.Remove(action2);
                    }
                    if (flag2)
                    {
                        action.JumpOffset = num;
                        num    = 0;
                        action = null;
                        flag2  = false;
                        flag   = false;
                    }
                    if (flag3)
                    {
                        flag3             = false;
                        action.JumpOffset = num + 5;
                        num    = 0;
                        action = action2;
                        continue;
                    }
                    if (flag)
                    {
                        num += action2.Length;
                    }
                }
            }
            base.OnCompile();
        }
Ejemplo n.º 11
0
 public void Push2(int Data, int Data2)
 {
     SwfDotnet.Format.ActionScript.Action item = new SwfDotnet.Format.ActionScript.Action(150);
     item.Add(new UI8(8));
     item.Add(new UI8(Data));
     item.Add(new UI8(8));
     item.Add(new UI8(Data2));
     this.Add(item);
 }
Ejemplo n.º 12
0
 public void LessThan()
 {
     SwfDotnet.Format.ActionScript.Action item = new SwfDotnet.Format.ActionScript.Action(15);
     this.Add(item);
 }
Ejemplo n.º 13
0
 public void EndIf()
 {
     SwfDotnet.Format.ActionScript.Action item = new SwfDotnet.Format.ActionScript.Action(0);
     this.Add(item);
 }
Ejemplo n.º 14
0
 public void Equal()
 {
     SwfDotnet.Format.ActionScript.Action item = new SwfDotnet.Format.ActionScript.Action(14);
     this.Add(item);
 }
Ejemplo n.º 15
0
 public void TellTarget(string Name)
 {
     SwfDotnet.Format.ActionScript.Action item = new SwfDotnet.Format.ActionScript.Action(0x8b);
     item.Add(new STRING(Name));
     this.Add(item);
 }
Ejemplo n.º 16
0
 public void Else()
 {
     SwfDotnet.Format.ActionScript.Action item = new SwfDotnet.Format.ActionScript.Action(0x99);
     item.Jump = true;
     this.Add(item);
 }
Ejemplo n.º 17
0
 public void TellTarget(string Name)
 {
     SwfDotnet.Format.ActionScript.Action item = new SwfDotnet.Format.ActionScript.Action(0x8b);
     item.Add(new STRING(Name));
     this.Add(item);
 }
Ejemplo n.º 18
0
 public void Push3(string Data, string Data2, string Data3)
 {
     SwfDotnet.Format.ActionScript.Action item = new SwfDotnet.Format.ActionScript.Action(150);
     item.Add(new UI8(0));
     item.Add(new STRING(Data));
     item.Add(new UI8(0));
     item.Add(new STRING(Data2));
     item.Add(new UI8(0));
     item.Add(new STRING(Data3));
     this.Add(item);
 }
Ejemplo n.º 19
0
 public void Else()
 {
     SwfDotnet.Format.ActionScript.Action item = new SwfDotnet.Format.ActionScript.Action(0x99);
     item.Jump = true;
     this.Add(item);
 }
Ejemplo n.º 20
0
 public void EndIf()
 {
     SwfDotnet.Format.ActionScript.Action item = new SwfDotnet.Format.ActionScript.Action(0);
     this.Add(item);
 }
Ejemplo n.º 21
0
 public void Push(int DicIndex)
 {
     SwfDotnet.Format.ActionScript.Action item = new SwfDotnet.Format.ActionScript.Action(150);
     item.Add(new UI8(5));
     item.Add(new UI8(DicIndex));
     this.Add(item);
 }
Ejemplo n.º 22
0
 public void LessThan()
 {
     SwfDotnet.Format.ActionScript.Action item = new SwfDotnet.Format.ActionScript.Action(15);
     this.Add(item);
 }
Ejemplo n.º 23
0
 public void Equal()
 {
     SwfDotnet.Format.ActionScript.Action item = new SwfDotnet.Format.ActionScript.Action(14);
     this.Add(item);
 }
Ejemplo n.º 24
0
 public void Not()
 {
     SwfDotnet.Format.ActionScript.Action item = new SwfDotnet.Format.ActionScript.Action(0x12);
     this.Add(item);
 }
Ejemplo n.º 25
0
 public void And()
 {
     SwfDotnet.Format.ActionScript.Action item = new SwfDotnet.Format.ActionScript.Action(0x10);
     this.Add(item);
 }