Page 1 of 1

undefined method PublicMessageRequest when using Redbox SWC

Posted: 27 May 2011, 23:00
by geekedatbirth
I have a chat program that works perfectly using the SFS2X_API_AS3.swc I wanted to add a video chat option to this system and have Redbox and everything working with the SmartFox server, ran the examples, everything is working fine. When I remove that from my Library paths and add the SFS2X_Redbox.swc I get the following error :

"Call to a possibly undefined method PublicMessageRequest".

This is the only error I get, everything else works with the system. I'm assuming I am supposed to remove the SFS2X_API_AS3.swc from the publish settings library since when I don't absolutely nothing works and I get a bunch of reference errors, as if the two swc's are conflicting.

Re: undefined method PublicMessageRequest when using Redbox

Posted: 27 May 2011, 23:03
by GameIslandz
geekedatbirth wrote: "Call to a possibly undefined method PublicMessageRequest".
Funny because I just posted a post about the same exact error

Re: undefined method PublicMessageRequest when using Redbox

Posted: 27 May 2011, 23:16
by geekedatbirth
GameIslandz wrote:
geekedatbirth wrote: "Call to a possibly undefined method PublicMessageRequest".
Funny because I just posted a post about the same exact error
Same error but for a different reason... I just posted a reply to help you find the Library Paths section in Flash

Re: undefined method PublicMessageRequest when using Redbox

Posted: 28 May 2011, 01:58
by geekedatbirth
Quick update : still same issue. The following code still throws an error when I use the redbox SWC instead of the standard SFS API SWC. It's the only error that is thrown.

Code: Select all

sfs.send(new PublicMessageRequest(msg, null, curSFSRoom));
I have since imported all the classes I need for the AV system and everything works perfect... just that strange bug that is throwing an error.

Since I'm not sure whether I should be using both SWC's or not, I figured I'd add what I get when I have both loaded in the libraries section for my publish settings :
VerifyError: Error #1111: de.polygonal.ds::HashSet cannot implement de.polygonal.ds.Set.

ReferenceError: Error #1065: Variable ConnectorCover_9 is not defined.

ReferenceError: Error #1065: Variable UserProfileHeader_7 is not defined.


ReferenceError: Error #1065: Variable SFS2XConnector is not defined.
and so on and so on it goes....

Posted: 30 May 2011, 07:41
by Bax
The RedBox SWC doesn't replace the AS3 API SWC. You have to reference them both in your project.