Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-01-2008, 03:52 AM
Junior Member
 
Join Date: Apr 2008
Posts: 29
Default How to use form.createControl?

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";
But it can not work!who can help me ?
Thanks in advance!!
Reply With Quote
  #2 (permalink)  
Old 11-03-2008, 09:39 PM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re: How to use form.createControl?

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.
Reply With Quote
  #3 (permalink)  
Old 11-05-2008, 05:46 AM
Junior Member
 
Join Date: Apr 2008
Posts: 29
Default Re: How to use form.createControl?

Thank You very much!
Reply With Quote
Reply

Was this information helpful?    Yes No



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 05:25 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.