Example #1
0
 private void amBtnCurFrm_Click(object sender, EventArgs e)
 {
     try
     {
         amFlashCtrl.CallFunction(FlashDataTrans.GenFlashFuncReq("GetInformation", "GetCurrentFrameIndex"));
     }
     catch (Exception err)
     {
         MessageBox.Show("Problem");
     }
 }
Example #2
0
        private void amSendBtn_Click(object sender, EventArgs e)
        {
            String Text2Send = amTextBox.Text;
            int    Int2Send  = 0;

            try
            {
                int.TryParse(Text2Send, out Int2Send);
                amFlashCtrl.CallFunction(FlashDataTrans.GenFlashFuncReq("SetAnimation2Frame", Text2Send));
                amTextBox.Clear();
            }
            catch
            {
                MessageBox.Show("input a number");
            }
        }
Example #3
0
 private void goToFrame(int frameIdx)
 {
     amFlashCtrl.CallFunction(FlashDataTrans.GenFlashFuncReq("SetAnimation2Frame", frameIdx.ToString()));
 }