开发者

Flash not play, when add to form C#

开发者 https://www.devze.com 2023-04-11 10:44 出处:网络
When i code: form_show(){ myFlash = new Flash() this.Controls.Add(myFlash); myFlash.Load(0, url); myFlash.Play();

When i code:

form_show(){
    myFlash = new Flash()
    this.Controls.Add(myFlash);
    myFlash.Load(0, url);
    myFlash.Play();
}

My flash play pretty. But i code:

form_show(){
    myFlash = new Flash();
    myFlash.Load(0, url);
    myFlash.Play();
   this.Controls.Add(myFlash);
}

my flash not play.

Plz, Who tell my why.


Time of myFlash.Load(0, url); is so slow. Ju开发者_如何学JAVAst i want to do it in background Thread. And then play on my form

Flash myFlash = new Flash();
Thread th;
form_load(){
   th = new Thread(myFlash.Load());
   th.Start();
}
form_show(){
    th.join(); 
   this.Controls.Add(myFlash);
   myFlash.Play();
}

But myFlash not play


In your failure example you have told the flash to play before it has been added as a control.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号