【发布时间】:2015-03-11 16:39:22
【问题描述】:
我刚刚创建了一个可以在网络上玩的游戏(使用冲击波播放器 DCR)
我想为游戏制作 HIGHSCORE.txt 行话。
至于projector.exe:我可以使用getpref和setpref lingo命令,没问题。
但是对于网络上的游戏 DCR,getpref 和 setpref 似乎不起作用, 在 web 文件夹中没有创建 highscore.txt。我该怎么办?
【问题讨论】:
标签: adobe-director
我刚刚创建了一个可以在网络上玩的游戏(使用冲击波播放器 DCR)
我想为游戏制作 HIGHSCORE.txt 行话。
至于projector.exe:我可以使用getpref和setpref lingo命令,没问题。
但是对于网络上的游戏 DCR,getpref 和 setpref 似乎不起作用, 在 web 文件夹中没有创建 highscore.txt。我该怎么办?
【问题讨论】:
标签: adobe-director
getpref() 和 setpref() 通常在 Shockwave 中运行良好,我不知道您在哪个文件夹中查找文本文件,但根据 Adobe 文档,这里是保存文本文件的位置:
Windows 冲击波 ..\Documents and Settings\\Application Data\Adobe\Shockwave Player \Prefs\ MAC冲击波 ~/Library/Application Support/Adobe/Shockwave Player/Prefs
如果用户在具有特别严格的安全设置的环境中运行,setpref() 可能会失败,但这种情况很少见。完整文档在这里http://help.adobe.com/en_US/Director/11.5/UsingScripting/WSc3ff6d0ea77859461172e0811d64c1a1b3-7ecf.html
【讨论】: