customLogin

You think you've found a bug? Please report it here.

Moderators: Lapo, Bax

User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Post by Lapo »

Are you sure you have the right API installed ? They should be version 0.9.0
Some other user seemed to have some troubles with the Extension Manager.

To check it, just open a blank Flash document add the "import" line as usual and try this code:

Code: Select all

s = new SmartFoxClient()
trace(s.getVersion())
If it says 0.9.0 then APIs are OK

:)
Lapo
--
gotoAndPlay()
...addicted to flash games
ImmenseTurmoil
Posts: 20
Joined: 26 Mar 2005, 17:11
Contact:

Post by ImmenseTurmoil »

Lapo! I think I got it now! :D

After seeing you say the other user had the same problem, I remember reading the topic before. So I went back and read it and did what you told him (press control + enter). Sure enough, I had the same error he did. It was showing the wrong version.

Code: Select all

[Sending]: <msg t='sys'><body action='verChk' r='0'><ver v='080' /></body></msg>

[Received]: <msg t="sys"><body action="apiKO" r="0" /></msg>
He said he uninstalled Flash so I am going to do that now and get back to you on the outcome. Thanks for the help :D
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Post by Lapo »

ok, great!
I will inspect better this issue that some of you have had installing the API. Did you have the SFS Lite installed? Did you remove them before installing the new one?
Lapo
--
gotoAndPlay()
...addicted to flash games
ImmenseTurmoil
Posts: 20
Joined: 26 Mar 2005, 17:11
Contact:

Post by ImmenseTurmoil »

Lapo wrote:ok, great!
I will inspect better this issue that some of you have had installing the API. Did you have the SFS Lite installed? Did you remove them before installing the new one?
I had SFS Lite and Basic installed at the same time at first. I then uninstalled Lite so I just had Basic and it still didnt work.

As far as uninstalling flash, I ran into problems because I didnt have an uninstall file so now everything is not installing properly. Ill keep you updated with the outcome though :D
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Post by Lapo »

to >> KryptKnight!
I am sorry, but for some weird reason your post was deleted. Sorry about that! You can post your question again if you wish.

Anyways, your post was asking why you got and "undefined" result when tracing the version of the API

My question is:

Can you please post the code you're using to print the API version?

Thanks!
Lapo
--
gotoAndPlay()
...addicted to flash games
KryptKnight
Posts: 14
Joined: 08 Apr 2005, 13:57

Post by KryptKnight »

i have figured it out now by looking at other posts. i was using what you said before

Code: Select all

 s = new SmartFoxClient()
trace(s.getVersion())
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Post by Lapo »

If you're using that code and the result on screen is --> "undefined" then you are definately using old Flash API.

Please install those that come with SFS Basic or if you don't want to use the Macromedia Extension Manager you can download them separately ( http://www.smartfoxserver.com/products/ ... #downloads )and put them in the same folder where your FLA is located. (Obviously you will always need to use the include / import statement at the top of your code)

Let me know how it goes! :)
Lapo
--
gotoAndPlay()
...addicted to flash games
KryptKnight
Posts: 14
Joined: 08 Apr 2005, 13:57

Post by KryptKnight »

It works now. Thankyou.
eragon
Posts: 8
Joined: 11 Aug 2006, 11:16

Post by eragon »

Sorry for bringing this topic back but i get the worng version like in the error thing:

Code: Select all

[ Sending ]: <msg t='sys'><body action='verChk' r='0'><ver v='080' /></body></msg>
how do i fix that?
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Post by Lapo »

Flash has a cache where it keeps compiled classes.
At times it can be tricky to update the SFS components because of this problem. It seems Flash still uses the old compiled version that it keeps in the cache.

The best way to avoid it is to have a copy of the API in your project folder and load them from there using #include (AS 1) or import (AS 2)

Also make sure to remove from the Macromedia Extension Manager the old APIs, if they are still installed

hope it helps
Lapo
--
gotoAndPlay()
...addicted to flash games
Post Reply