BigFish:
obviously my problem has to do with where classes are located and how the path is set in my .fla file.
I've tried many combinations that have resulted in anywhere between 3 and 62 errors.
My .fla and .swf files are all in a folder in my Desktop called "Games"
I downloaded the latest version of SFS for Mac. Inside I found a folder called "Flash API".
Can you PLEASE answer me these questions:
1. Where should I place the folder "Flash API"? if it doesn't matter where, I'd prefer to place it inside the folder "Games". Up to now, as I had the folder "it" inside Games, right next to the .fla files, the only path I specified was "."
2. How EXACTLY should I set the path in the ActionScript3 settings, based on the location of the "Flash API" folder?
3. should I copy the entire "Flash API" folder or of its subFolders? if so, which?
Thank you, this problem has me stopped for several days now....
Mariana
Help With my first SmartFoxServer Prog
Mariana, I didn't know there was page two of this topic as I answered to the question in the previous page (not to the first one on page 2)
Alright, I'm sure there're some confusion somewhere.
1. Yes, the "it" folder inside Games is fine
2. Leave the path in your AS3 library settings to what you said before. A period (.) - at compile time, Flash will search inside the folder where your main flash application is located. So, assuming your main application is inside the "Game" folder - it will search for packages (such as it.gotoandPlay.smartfox and com.adobe.serialization) from that folder. Just to clarify - it.gotoandplay.smartfoxserver is same as /it/gotoAndPlay/smartFox/ in terms of directory (a.k.a folders).
3. So, therefore yes - you copy both subfolders inside that AS3 API folder (the "it" folder, and "com" folder) inside your "Game" folder. So, when flash gets compiled - it should be able to find com.adobe.serialization.json path because the /com/adobe/serialization/json/ directory exists in your "Game" folder.
If you're still getting the same errors, check if /com/adobe/serialization/json is valid (i.e. do those folders exist?).
Alright, I'm sure there're some confusion somewhere.
1. Yes, the "it" folder inside Games is fine
2. Leave the path in your AS3 library settings to what you said before. A period (.) - at compile time, Flash will search inside the folder where your main flash application is located. So, assuming your main application is inside the "Game" folder - it will search for packages (such as it.gotoandPlay.smartfox and com.adobe.serialization) from that folder. Just to clarify - it.gotoandplay.smartfoxserver is same as /it/gotoAndPlay/smartFox/ in terms of directory (a.k.a folders).
3. So, therefore yes - you copy both subfolders inside that AS3 API folder (the "it" folder, and "com" folder) inside your "Game" folder. So, when flash gets compiled - it should be able to find com.adobe.serialization.json path because the /com/adobe/serialization/json/ directory exists in your "Game" folder.
If you're still getting the same errors, check if /com/adobe/serialization/json is valid (i.e. do those folders exist?).
Smartfox's forum is my daily newspaper.
BigFish:
I did all you suggested:
placed the it and com folders in the Games folder
set the classpath to .
checked that the com path was valid.
I also corrected all possible errors not related to the SFS classes.
I was left with 36 errors.
I made a folder with screenShots of:
the JSON path
the Room path
the AS3 settings panel
the import statements in Frame 1 of my fla file
the 36 compiler errors
How can I send it to you as an attachment?
Mariana
I did all you suggested:
placed the it and com folders in the Games folder
set the classpath to .
checked that the com path was valid.
I also corrected all possible errors not related to the SFS classes.
I was left with 36 errors.
I made a folder with screenShots of:
the JSON path
the Room path
the AS3 settings panel
the import statements in Frame 1 of my fla file
the 36 compiler errors
How can I send it to you as an attachment?
Mariana
Return to “SmartFoxServer 1.x Discussions and Help”
Who is online
Users browsing this forum: No registered users and 65 guests