private void amBtnCurFrm_Click(object sender, EventArgs e) { try { amFlashCtrl.CallFunction(FlashDataTrans.GenFlashFuncReq("GetInformation", "GetCurrentFrameIndex")); } catch (Exception err) { MessageBox.Show("Problem"); } }
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"); } }
private void goToFrame(int frameIdx) { amFlashCtrl.CallFunction(FlashDataTrans.GenFlashFuncReq("SetAnimation2Frame", frameIdx.ToString())); }