Postby doubletw » Tue May 25, 2010 5:31 am
Hi Sir,
I try to use code to explain my question.
public ref class Form1 : public f_in_box__lib::f_in_box__form
{
public:
Form1(void)
{
InitializeComponent();
this->timer1->Interval = 2000;
this->timer1->Tick += gcnew EventHandler(this, &Form1::TimerEventProcessor);
this->OnFSCommand += gcnew f_in_box__lib::f_in_box__form::OnFSCommandEventHandler(this, &Form1::MainForm_OnFSCommand);
this->FlashMethod_LoadMovie(0, "C:\\a.swf");
}
System::Void MainForm_OnFSCommand(System::Object^ sender, System::String^ command, System::String^ args)
{
if(command == "Init")
this->timer1->Enabled = true;
}
void TimerEventProcessor(Object^ myObject, EventArgs^ myEventArgs)
{
this->timer1->Enabled = false;
System::Windows::Forms::MessageBox::Show("a");
this->FlashMethod_LoadMovie(0, "C:\\a.swf");
}
}
MessageBox only shows one time.
It means that FlashMethod_LoadMovie doesn't work if using FlashMethod_LoadMovie to load a.swf again.
If I use FlashMethod_LoadMovie to load a.swf's duplicate, MessageBox can show two times.
It seems that FlashMethod_LoadMovie is only working when loading different flash file.
How do I load the same flash file again and let FlashMethod_LoadMovie work?
Thanks a lot!!