您的位置:首页 > 编程语言

解决FLASHCS5代码提示无效的方法_…

2014-02-07 17:03 309 查看
1.
关于代码提示的快捷键,默认是Ctrl+Spacebar,但是在大部分中文用户的机器上,这是切换输入法的快捷键,这会导致代码提示的快捷键不起作用,所以建议在Edit->Keyboard
shortcut中,为代码提示指定另外一个快捷键,例如Ctrl+Alt+Spacebar。

2.
试一试把你的fla文件拷贝到一个空文件夹中再重启Flash看看,因为如果你的fla文件所在目录有太多文件,比如在桌面上或是我的文档中,代码提示的cache可能会创建失败。

3.
如果你在动作面板右下角看到了一个警告的图标,说明Flash在你的项目classpath找到太多的文件了,有可能也会导致对你的自定义类的代码提示失效。建议在ActionScript设置中,classpath指定到具体的文件夹路径,最好不要是一个包含太多子路径的高层文件夹。

4. 试着重设一下你的代码提示cache。 先退出Flash,然后删除以下文件夹:

Win Vista/Win7:

C:\Users\username\AppData\Local\Adobe\Flash
CS5\language\Configuration\CodeModel

Win XP:

C:\Documents and Settings\username\Local Settings\Application
Data\Adobe\Flash
CS5\language\Configuration\CodeModel

Mac:

/Users/username/Library/Application Support/Adobe/Flash
CS5/language/Configuration/CodeModel

我用的是FLASH CS5.5
绿色版,对于我以上4种方法都不适用,我用第5种方法解决了问题

1、进入注册表,找到HKEY_CURRENT_USER
> Software > Adobe >
Flash 11 > Settings选项
2、如果找到Project
File Cap选项直接修改,如果没有就新建
3、修改Project
File Cap选项中的16进制或10进制的值为1000,我只是将16进制的值改为1000
4、确定并重启FLASH,这样代码提示就出来了

原文:

Windows:
Open Regedit and navigate to: HKEY_CURRENT_USER
> Software > Adobe >
Flash 11 > Settings
Right+click and choose: ‘New… > DWORD
Value’
Rename the key: Project File Cap
Select the key and choose: ‘Modify’
Edit the value as either hex or decimal: 1000
Click OK and restart Flash
Mac:
Open
/Users/<username>/Library/Preferences/Flash
CS5 Preferences in Text Edit
Under the <settings> section add
the following:
<project_file_cap>1000</project_file_cap>
Save the file and restart Flash
What should you set it at? Well if you are good about saving
your FLA files into their own folders, then it doesn’t really
matter. I would try 5000 and see if that works. You can always
change it back. Adobe is working on an official TechNote about this
too.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐