Controlling volume on multiple flash windows?

DLL Edition of the F-IN-BOX
Jim W.
Posts: 14
Joined: Fri Feb 03, 2006 7:20 pm
Location: Atlanta, GA, USA
Contact:

Controlling volume on multiple flash windows?

Postby Jim W. » Sat Jun 16, 2007 1:10 am

We are using the API to control the volume of a swf, but it is global. Is it possible to pass in the window handle to volume is on a per-swf basis?

Softanics
Site Admin
Posts: 1402
Joined: Sat Sep 18, 2004 3:03 am
Location: Russia, St. Petersburg
Contact:

Postby Softanics » Sat Jun 16, 2007 1:16 pm

Thank you for your question.

Use new API:

Code: Select all


HFPC hFPC1 = FPC_LoadRegisteredOCX();
HFPC hFPC2 = FPC_LoadRegisteredOCX();

HWND hWnd1 = FPC_CreateWindow( hFPC1, ... );
HWND hWnd2 = FPC_CreateWindow( hFPC2, ... );

FPC_LoadMovie(hWnd1, ... );
FPC_LoadMovie(hWnd2, ... );

// Now you can change sound volume independently
FPC_SetSoundVolume(hFPC1, 0);
FPC_SetSoundVolume(hFPC2, DEF_MAX_FLASH_AUDIO_VOLUME);

Best regards, Artem A. Razin,
F-IN-BOX support
Ask your question here: http://www.f-in-box.com/support.html


Return to “DLL Edition”

Who is online

Users browsing this forum: No registered users and 11 guests

cron