Wrong client API version

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

Moderators: Lapo, Bax

Post Reply
Bathory
Posts: 58
Joined: 17 Sep 2011, 21:47

Wrong client API version

Post by Bathory »

Hello,

I have problems setting up the new client API swc file to use in my Flash project. It seems at runtime an old version is still in use.

Basically I downloaded the new swc and put it in the /libs folder and replaced the old one. The way its linked in the ActionScript 3.0 settings window under the "Library path" tab is still the same and shows "SFS2X_API_AS3.swc - .\libs"

While editing code I can type "SmartFox.httpUploadURI" and it shows me the property EXISTS which is good because this was added in version 1.2.5, that's what I want.

However when I run (test movie) the game I get error #1069 telling me that property httpUploadURI cannot be found in com.smartfoxserver.2x.SmartFox. Also while running it if I trace SmartFox.version and it says I'm still with 0.9.8. What am I doing wrong?

EDIT: I think it has something to do with SmartFoxBits, because if I remove all those components and all references to them in the library then the version of the API is now 1.2.5.

Thanks! :D


Flash CS5.5
Server is version 2.9.0
User avatar
Bax
Site Admin
Posts: 4626
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Re: Wrong client API version

Post by Bax »

It seems Flash is not overwriting the class definitions with the newer versions contained in the API SWC, still using the definitions from the Bits package.
I'm sure we tested this scenario in the past, but for some reason it is not working anymore.
We will recompile the Bits using the last SFS2X API version and publish them soon.
Paolo Bax
The SmartFoxServer Team
User avatar
Bax
Site Admin
Posts: 4626
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Re: Wrong client API version

Post by Bax »

The updated package of the SmartFoxBits (v1.3.0b) is now available for download.
If you purchased the retail version, use your show account to download the package again.
Otherwise the Community Edition version can be found here: http://bits.smartfoxserver.com/download
The new package incorporates the SFS2X API v1.2.5.
Paolo Bax
The SmartFoxServer Team
Bathory
Posts: 58
Joined: 17 Sep 2011, 21:47

Re: Wrong client API version

Post by Bathory »

Thanks!
Post Reply