0

我刚刚创建了一个在网络上玩的游戏(使用冲击波播放器 DCR)

我想为游戏制作 HIGHSCORE.txt 行话。

至于projector.exe:我可以使用getpref 和setpref lingo 命令,没问题。

但是对于网络上的游戏 DCR,getpref 和 setpref 似乎不起作用,在 web 文件夹中没有创建 highscore.txt。我应该怎么办?

4

1 回答 1

0

getpref() 和 setpref() 通常在 Shockwave 中运行良好,我不知道您在哪个文件夹中查找文本文件,但根据 Adob​​e 文档,这里是保存文本文件的位置:

Windows Shockwave ..\Documents and Settings\\Application Data\Adobe\Shockwave Player \Prefs\ MAC Shockwave ~/Library/Application Support/Adobe/Shockwave Player/Prefs

如果用户在具有特别严格的安全设置的环境中运行,setpref() 可能会失败,但这种情况很少见。完整文档在这里http://help.adobe.com/en_US/Director/11.5/UsingScripting/WSc3ff6d0ea77859461172e0811d64c1a1b3-7ecf.html

于 2014-11-19T05:44:23.330 回答