|
|||
|
I tried to use this method to embed a Microsoft Media Player on a new form.
as folowing code Code:
var form = new Form();
form.movie =getAdditionalFile("newform.swf");
form.caption = "Wmp";
form.showCaption = true;
form.canDrag = true;
form.show(true);
var ax1 = form.createControl("WMPlayer.OCX", 0, 0, 350, 300);
ax1.activex.URL = "C://Test.avi";
ax1.activex.uiMode = "full";
Thanks in advance!! |
|
|||
|
It doesn't work because you're creating a mode form. In your case, the method "show" won't return until you close the form. The activex cannot be created, however, when the form is closed and destroyed. To solve the problem, you will have to either create a modeless form, or call the "createControl" method in the form swf file.
|
![]() |
Was this information helpful? Yes No
| Thread Tools | |
| Display Modes | |
|
|