Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-19-2008, 07:30 AM
RJS RJS is offline
Member
 
Join Date: Sep 2003
Posts: 56
Default Can I use MMS "Active Sound Recorder" ActiveX in SWFKit

Hi to SWFKit team

I wonder if you would please test the ActiveX control "Active Sound Recorder" from MultiMediaSoft to see whether this control can be used as an ActiveXObject in SWFKit.

They have a free-trial version of the control available for download from <http://www.activesoundrecorder.com/>

Thanks
Rob
Reply With Quote
  #2 (permalink)  
Old 10-19-2008, 05:28 PM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re: Can I use MMS "Active Sound Recorder" ActiveX in SWFKit

Yes, but you must use the "createControl" method like
Code:
var rec = createControl("ACTIVESOUNDRECORDER.ActiveSoundRecorderCtrl.1", 0, 0, 200, 200);
Reply With Quote
  #3 (permalink)  
Old 10-21-2008, 01:08 PM
RJS RJS is offline
Member
 
Join Date: Sep 2003
Posts: 56
Default Re: Can I use MMS "Active Sound Recorder" ActiveX in SWFKit

Thanks - that tip helped and I've now got the Active Sound Recorder control recording and playing back sounds. But now a further question.

ActiveSoundRecorder includes a number of graphic objects to visualise recording/playing sounds such as a VUMeter. These graphic objects all have a Create() method eg rec.activex.VUMeter.Create(hWndTarget as OLE_HANDLE)

Being graphical objects, they need to be associated to an existing window that will be used as a surface for the graphic rendering.
If I place such an object on the main window ie using getMainWnd().handle as the target window, the object fully (and automatically) occupies the whole main window.

I can place them one at a time on rec.window.handle (and size and locate that one appropriately), but I'd like to use more than one of these graphic controls at once.

Can you suggest how I could create additional windows for this purpose?

Thanks
Rob
Reply With Quote
  #4 (permalink)  
Old 10-21-2008, 04:36 PM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re: Can I use MMS "Active Sound Recorder" ActiveX in SWFKit

We are not sure, but perhaps you can try to create a modeless form, and pass the handle of the form (form.window.handle).
Reply With Quote
  #5 (permalink)  
Old 10-25-2008, 06:46 AM
RJS RJS is offline
Member
 
Join Date: Sep 2003
Posts: 56
Default Re: Can I use MMS "Active Sound Recorder" ActiveX in SWFKit

Hi

Yes - this works! I can now open a Active Sound Recorder graphic object on myform.window.handle.

The next thing is to work out how to place a (non-draggable) form at a specific location on the main window so that it will appear to be a part of that window. Do you have some code example of how to locate a specific location on the main window? And the modeless form doesn't automatically resize if the main window is resized - again how would I try to achieve this?

Thanks
ROb
Reply With Quote
  #6 (permalink)  
Old 10-27-2008, 07:02 PM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re: Can I use MMS "Active Sound Recorder" ActiveX in SWFKit

A form is cannot be embedded in the main window. If you want to create an embedded window, you would have to call the windows api directly

Code:
dllimport "user32.dll" stdcall int CreateWindowExA(unsigned int, String, String, unsigned int, 
	int, int, int, int, long, long, long, long) as createWindow;
dllimport "kernel32.dll" stdcall int GetModuleHandleA(String) as getModHandle;

WS_VISIBLE = 0x10000000;
WS_CHILD = 0x40000000;

var handle = createWindow(0, "Static", "", WS_VISIBLE | WS_CHILD, 0, 0, 300, 300, 
	FlashPlayer.window.handle, 0, getModHandle(null), 0);
var child = new Window(handle); 
child.caption = "This is a child window";
Reply With Quote
  #7 (permalink)  
Old 10-27-2008, 07:03 PM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re: Can I use MMS "Active Sound Recorder" ActiveX in SWFKit

To change the place of the child window, you can handle the "onSize" event of the main window, and call the "move" method to place the child window in the event handler.
Reply With Quote
  #8 (permalink)  
Old 10-29-2008, 12:55 PM
RJS RJS is offline
Member
 
Join Date: Sep 2003
Posts: 56
Default Re: Can I use MMS "Active Sound Recorder" ActiveX in SWFKit

Thanks SWFKit!

This solution works, and I thank you for the great support, and an amazing program. It seems that almost any DLL/OCX integrations are possible!

My only criticismof SWFKit is that the documentation is a not complete enough. There should be a working example or two for every FFish object method/property/event. I'm sure many users would agree with this.

Cheers
Rob
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:24 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.