FSCommand /getURL 重复使用 bug
2009-05-20 16:41
211 查看
写念佛机的时候,在同一帧连续用到了两个FSCommand ,就跟下面的一回事:
onUnload = function(){
fscommand("ulist");
fscommand("uole");
}
结果在VB里面试试老是漏掉一个command,测试一下:
输出uole,没了?没了!看来好像不是我的错。
最后在网上找到了相关文章:http://www.northcode.com/blog.php/2007/09/11/FSCommand-and-getURL-Bug-in-Flash-Player-9
我晓得了~只有Flash player 9才有这问题,而我用CS3发布的最新版就它,既然说:
Each call is added to an associative array (also called a map) based on the value of its argument (not the command name or the URL). If the argument does't exist in the map it's added to the end, which preserves the order of execution. So far no problem, until we encounter two commands with the exact same argument string. In this case, the call already in the map is replaced by the new one being added instead of just being added to the end of the map. The order of execution has now been changed and one calls has been blown away. The more calls you make, the more confusing the results will seem.
就只好改改看:
onUnload = function(){
fscommand("ulist","-");
fscommand("uole");
}
得行咯。
onUnload = function(){
fscommand("ulist");
fscommand("uole");
}
结果在VB里面试试老是漏掉一个command,测试一下:
Private Sub sf_FSCommand(ByVal command As String, ByVal args As String) Debug.Print command End Sub
输出uole,没了?没了!看来好像不是我的错。
最后在网上找到了相关文章:http://www.northcode.com/blog.php/2007/09/11/FSCommand-and-getURL-Bug-in-Flash-Player-9
我晓得了~只有Flash player 9才有这问题,而我用CS3发布的最新版就它,既然说:
Each call is added to an associative array (also called a map) based on the value of its argument (not the command name or the URL). If the argument does't exist in the map it's added to the end, which preserves the order of execution. So far no problem, until we encounter two commands with the exact same argument string. In this case, the call already in the map is replaced by the new one being added instead of just being added to the end of the map. The order of execution has now been changed and one calls has been blown away. The more calls you make, the more confusing the results will seem.
就只好改改看:
onUnload = function(){
fscommand("ulist","-");
fscommand("uole");
}
得行咯。
相关文章推荐
- 'Invalid parameter not satisfying: URLString'网络请求的时候get使用特殊字符和汉字崩溃的恶心bug解决方法
- 关于java Runtime.getRunTime.exec(String command)的使用
- 在linux下使用curl访问 多参数url GET参数问题
- linux内核中操作文件的方法--使用get_fs()和set_fs(KERNEL_DS)
- 在linux内核中操作文件的方法--使用get_fs()和set_fs(KERNEL_DS) .bin file write/read
- 使用HttpURLConnection向服务器发送get请求
- C# 使用 Environment.GetCommandLineArgs 方法 制作*.exe和参数 供其他程序调用
- drupal7 创建form表单 并重定向提交路径同时使用get方式传递(drupal 简洁url)传参实例演示
- 关于java Runtime.getRunTime.exec(String command)的使用
- Http学习之使用HttpURLConnection发送post和get请求 android
- 使用RadUpload控件上传大文件时出现如下bug,请大虾帮忙解决下RadUpload Ajax callback error.Source url returned invalid content
- 在linux下使用curl访问 多参数url GET参数问题
- Android中使用HttpURLConnection和HttpClient实现GET和POST请求访问网络
- Runtime.getRunTime.exec(String command)的使用
- linux内核中操作文件的方法--使用get_fs()和set_fs(KERNEL_DS)
- restTemplate.getForObject(url, responseType, urlVariables)使用
- Http学习之使用HttpURLConnection发送post和get请求
- getURL函数的使用方法指南
- 使用HttpURLConnection采用get方式请求数据-----乱码问题
- C# 使用 Environment.GetCommandLineArgs 方法 制作*.exe和参数 供其他程序调用