Call to undefined method for both initConnect and initChat.

Post here your questions about the Flash / Flex / Air API for SFS2X

Moderators: Lapo, Bax

Ninjaoninja2
Posts: 172
Joined: 22 Sep 2013, 23:33

Call to undefined method for both initConnect and initChat.

Postby Ninjaoninja2 » 22 Feb 2015, 01:51

Hi there,
I read up on some AS3 and i'm ready to go forward with starting on the AS3 SFS2X avatarChat example, however the AS3 API seems to be glitching everytime I try to startup my game (CTRL + ENTER) I get these two errors:

Code: Select all

Scene 1, Layer '[actionscript]', Frame 9, Line 2   1180: Call to a possibly undefined method initConnect.


and

Code: Select all

Scene 1, Layer '[actionscript]', Frame 16, Line 2   1180: Call to a possibly undefined method initChat.

Again I may not have imported the Flash APi correctly as I am just starting out on SFS2X so help is greatly appreciated!
User avatar
Lapo
Site Admin
Posts: 19676
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Call to undefined method for both initConnect and initCh

Postby Lapo » 22 Feb 2015, 10:25

I have no idea why you're getting those errors. I have downloaded the Example pack and opened the AvatarChat in Flash CS 5.5
It compiles just fine with no errors.

One thing I notice, though, is that it is missing the sfs-config.xml that is found in the deploy/ folder. Make sure you copy it in your src/ folder as well.

In any case this will not fix the compilation issue. Did you edit the source code? What Flash version are you using?
Lapo
--
gotoAndPlay()
...addicted to flash games

Return to “SFS2X ActionScript 3 API”

Who is online

Users browsing this forum: No registered users and 1 guest