Monthly Archives: June 2006

Using Active Audio Record in flash

Flash movie has support for Action Script which is a kind of scripting language.

But it doesn’t provide built-in audio record functionality for flash developers.

Some developers uses Zinc which extends Action Script to include more powerful functions. One of them is the support for ActiveX control. (Note, not General ActiveX Automation). This makes it possible to use Active Audio Record in Flash.

Since Active Audio Record is an ActiveX automation aerver, We have made an ActiveX Control Wrapper around it so that it can be used in Zinc. And we also provide a demo flash movie (DemoZinc) and its source FLA file.

Please download and try audio record in flash now. :)
If you want to redistribute a flash movie with audio record component now, the files needs to be redistributed are AudioCtrlWrapper.ocx, AudioCtl.dll and lame_enc.dll. And the first two needs to registered with regsvr32.exe like tools.

 

Licensing models

We have been asked about licensing models by some customers. Here are some clarifications.

For end-user products:

Single user license: the license is applicable when only one user will use it.
Site license: the license is applicable when the product will be used by a group of people in a company.
 

For development components:

Single developer license: the license is applicable when only 1 developer will use the component or the component can be deployed on one server as service. 
Development team license: the license is applicable when a development team will use the component or the component can be deployed on five servers as service
Enterprise license: the license is applicable for using the component by an enterprise on unlimited servers as service or applications
Source license
: the license is applicable for using the source code of the components in unlimited servers as service or applications

If you are developing a desktop application (not web service), all of the above licenses allows you to redistribute the component freely with your application.


 

Convert EMF or WMF to Image

Html snapshot supports converting html to vector image format such as EMF  and WMF.

Now it also supports the function to convert EMF or WMF into raster image format like JPG, JPEG, BMP, TIFF, PNG or GIF.

Instructions:

1. Download the latest version of html snapshot and install

 http://www.guangmingsoft.net/htmlsnapshot/HtmlSnapSetup.exe

2. Try the VBScript demo html2wmf.vbs

‘demo how to generate vector format WMF file

Set WshShell = WScript.CreateObject(“WScript.Shell”)
‘Declare object
Dim snap
Set snap = CreateObject(“HTMLSNAP2.HtmlSnap.1″)
snap.SetTimeOut CLng(200000)

snap.SnapUrl “http://www.macromedia.com/“, “2.emf”
‘convert emf to jpg
snap.ConvertEMFToImage “2.emf”, “0.jpg”, 6000, 6000, 0

‘convert emf to tif, keep aspect ratio
snap.ConvertEMFToImage “2.emf”, “1.tif”, 6000, 6000, 1

Set snap = Nothing

The method ConvertEMFToImage is to convert EMF into raster images. The first parameter is the input EMF file, second is the output raster image, the third and fourth are the width and height for the raster image in pixels. The last paramater is to control if the raster image will keep the same aspect ration as to the original vector image.