-
High scores and swf
I read in the help file that swf does not support storing high scores in ini files or with the high score object in the user's computer.
Is there a premade high score object supported by swf out there that saves the data?
If so, where can we get it?
Thanks
-
Re: High scores and swf
No you can use the INI and High score object.
The help says this:
INI and Hiscore objects
Flash does not allow the application to save data on the user's machine, but it allows the creation of small files (under 100kb) in a protected folder on the machine. INI files and Hi-scores files use this possibility. The files are saved in a folder on the user's machine, at the following address : Users\UserName\AppData\Roaming\Macromedia\Flash Player\#SharedObjects...
So you can save a limited amount of data -- High scores would certainly fit into this 100kb limit.
-
Re: High scores and swf
Sounds like a silly question... but have you tried the Mochi extensions?
-
Re: High scores and swf
.. or you use the playtomic-extension.. leaderboards are available! :)
-
Re: High scores and swf
Or the Get object and some php/mysql
-
Re: High scores and swf
Thanks for the recs guys - since I don't know HTML programming and all that, I may try Mochi or playtomic 1st...
-
Re: High scores and swf
Well, that's fine that you don't know HTML, as it's PHP you'd want to learn. But yeah, if you get involved with Mochi their scoreboards are good, I haven't seen Playtomic though so I am biased.
-
Re: High scores and swf
Hmm I'm confused about the mochi scores object.
I signed up for a mochi ID and got a game ID and made a leaderboard.
Then when I tried to make a swf build I got an error message.
Do I have to insert actionscript into the game or something?
-
Re: High scores and swf
Did you insert the Mochi Connector object onto the same frame than the Mochi Scores object?
-
Re: High scores and swf
You'll need your leaderboard id as well doc.
-
Re: High scores and swf
Um MJK what's a Mochi connector object and how do you insert it?
That must be my problem...
And Steven yes I did get a leaderboard ID - thanks.
------------------------------------------------------
ADDENDUM: Here's the error message I got:
Loading configuration file C:\Program Files (x86)\Multimedia Fusion Developer 2\Data\Runtime\Flash\Flex\frameworks\flex-config.xml
C:\Users\User\AppData\Local\Temp\Fla3A1B.tmp\Exten sions\CRunMochiScores.as(60): col: 24 Error: Access of undefined property MochiScores.
mochi.as3.MochiScores.setBoardID(act.getParamExpSt ring(rh, 0));
^
C:\Users\User\AppData\Local\Temp\Fla3A1B.tmp\Exten sions\CRunMochiScores.as(64): col: 24 Error: Access of undefined property MochiScores.
mochi.as3.MochiScores.showLeaderboard({ onClose: CloseHandler, onDisplay: DisplayHandler });
^
C:\Users\User\AppData\Local\Temp\Fla3A1B.tmp\Exten sions\CRunMochiScores.as(68): col: 24 Error: Access of undefined property MochiScores.
mochi.as3.MochiScores.showLeaderboard({ score: act.getParamExpression(rh,0), onClose: CloseHandler, onDisplay: DisplayHandler });
^
C:\Users\User\AppData\Local\Temp\Fla3A1B.tmp\Exten sions\CRunMochiScores.as(72): col: 25 Error: Access of undefined property MochiScores.
mochi.as3.MochiScores.showLeaderboard({ score: act.getParamExpression(rh,0), name: act.getParamExpString(rh,1), onClose: CloseHandler, onDisplay: DisplayHandler });
^
C:\Users\User\AppData\Local\Temp\Fla3A1B.tmp\Exten sions\CRunMochiScores.as(18): col: 19 Error: Definition mochi.as3 could not be found.
import mochi.as3.*;
^
------------------------------------------
Does this have something to do with the Mochi connector thingey?
How do I fix this?
Thanks
-
Re: High scores and swf
Just add the Mochi Connector object to the frame (Insert --> New Object --> Mochi Connector), it may fix the issues.
In fact, all Mochi objects require this Mochi Connector object (just the object, no events) as well to function. It's documented in the MMF2 help section, but it can be a bit confusing as no other object in MMF2 work like this. And it's not that visibly communicated to the user that this is the case.
-
Re: High scores and swf
Yup as MJK said, just insert it. You don't need any extra events, it just needs to be there.
Steve
-
Re: High scores and swf
Also, only insert it on the first frame, I believe.
-
Re: High scores and swf
Thanks guys! Will try that...