Page 1 of 1

Global Handler FPCListener on F8 doesnt work

Posted: Mon Mar 27, 2006 3:30 pm
by ramrocket
I need help on this asap. Is there any alternative to make this work???

I have tried both WindowProc() and global handler FPCListener to receive notifications. I have thesame result. Works on F7 and dont work on F8. Here is a snippit of my code.

How can I make this to work??? Anything I am missing.


Thanks for your help.

:x

OnCreate()
{

//set the listener
FPCSetEventListener(m_hwndFlashPlayerControl, CFlashPlayerCtrl::FPCListener, (LPARAM) this);


}



void WINAPI CFlashPlayerCtrl::FPCListener(HWND hwndFlashPlayerControl, LPARAM lParam, NMHDR* pNMHDR)
{
CFlashPlayerCtrl *pThis = (CFlashPlayerCtrl *)lParam;
if(pThis == NULL) return;

switch (pNMHDR->code)
{
case FPCN_FSCOMMAND:
{
::MessageBox(NULL, "FPCN_FSCOMMAND called", AX_CAPTION, MB_OK);
SFPCFSCommandInfoStruct* pInfo = (SFPCFSCommandInfoStruct*)pNMHDR;

CString temp;
temp.Format("Command = %s , Args = %s", pInfo->command, pInfo->args);
::MessageBox(NULL, temp,AX_CAPTION,MB_OK);
break;
}

default: break;

}
}

Posted: Mon Mar 27, 2006 4:49 pm
by Softanics
Could you send me ( support (at) flashplayercontrol.com ) your movie and your project for testing?

Posted: Tue Mar 28, 2006 3:19 am
by ramrocket
Sending 2 flash files now.


thanks,

Posted: Wed Mar 29, 2006 7:09 am
by Softanics
I've sent a reply to you.

Posted: Thu Mar 30, 2006 8:58 am
by Softanics
I see at start-up fscommand(actions, on) is called. And it works both in Flash 7 and Flash 8. How can I see the difference?

Posted: Thu Mar 30, 2006 9:18 am
by Softanics
Please download this movie and test it:
http://rapidshare.de/files/16772427/fla ... e.zip.html
When you press the button fscommand("Command_Button_Pressed", "some_parameters") is calling. I've tested it and it works properly with Flash 7 and with Flash 8.

Posted: Fri Mar 31, 2006 2:00 am
by ramrocket
Wrong URL. Can you please verify the movie zip URL??

thanks

Posted: Fri Mar 31, 2006 5:55 am
by Softanics
ramrocket wrote:Wrong URL. Can you please verify the movie zip URL??


No, it's right URL. Scroll down and click the button "Free".
Also I just have sent this ZIP by e-mail.

Posted: Mon Apr 03, 2006 2:35 pm
by htfv
I have the same problem here. I receive the FPCN_ONREADYSTATECHANGE notification but no other. CFlashPlayerControlContainer::Invoke is only called with dispIdMember = 0xFFFFFD9F.

Posted: Mon Apr 03, 2006 2:44 pm
by Softanics
htfv wrote:I have the same problem here. I receive the FPCN_ONREADYSTATECHANGE notification but no other. CFlashPlayerControlContainer::Invoke is only called with dispIdMember = 0xFFFFFD9F.


What is version of Flash you use?

Please download this movie and test it:
http://rapidshare.de/files/16772427/fla ... e.zip.html
When you press the button fscommand("Command_Button_Pressed", "some_parameters") is calling. I've tested it and it works properly with Flash 7 and with Flash 8.

Posted: Mon Apr 03, 2006 4:33 pm
by htfv
I'm using Flash OCX v8.0.22.0 loaded from resources. I also tried using OCX installed in the system. I already downloaded the test movie but it doesn't work. :(

Posted: Mon Apr 03, 2006 4:39 pm
by Softanics
I'm really need your help to fix the issue.

htfv wrote:I'm using Flash OCX v8.0.22.0 loaded from resources. I also tried using OCX installed in the system. I already downloaded the test movie but it doesn't work. :(


Please download last demo version from our site and test again. If the problem is still exists, could you please zip your project (only source, no dlls, no flash.ocx), upload this zip using http://rapidshare.de and send me link to support (at) flashplayercontrol.com
Thank you in advance.

Posted: Mon Apr 03, 2006 5:59 pm
by htfv
I have sent a mail with the link.

Posted: Mon Apr 03, 2006 6:08 pm
by Softanics
htfv wrote:I have sent a mail with the link.


Thank you. I've received it and downloaded the project. I'll write about results in the nearest time.

Posted: Tue Apr 04, 2006 7:13 am
by Softanics
The result is: using flash >= 8 in ActiveX projects causes the fs_command notifications doesn't work. If flash < 8 is using, the notifications work properly. And with any version of flash, in regular (EXE) applications all work properly.