【问题标题】:Livecode : Save all imported images from current stackLivecode:保存当前堆栈中所有导入的图像
【发布时间】:2014-12-02 12:06:54
【问题描述】:

有没有办法下载/保存当前堆栈中导入的所有图像?

其他问题:我无法使用 Livecode 6.6.2 打开最新版本 7.0 创建的堆栈。有什么解决办法吗?

【问题讨论】:

  • 您能否解释一下“在当前堆栈中导入的所有图像”是什么意思?

标签: livecode


【解决方案1】:

其他问题:我无法使用 Livecode 6.6.2 打开最新版本 7.0 创建的堆栈。有什么解决办法吗?

在 LC 7 的文件菜单下选择“另存为”。在以下对话框中,您可以选择要以哪种格式保存堆栈。选择“Legacy Livecode Stack (5.5)”并保存。现在可以使用 LC 5.5 及更高版本打开堆栈。

【讨论】:

  • 这真的应该作为一个单独的问题提交。然而,Matthias 的回答是正确的。
【解决方案2】:

按钮中的以下处理程序会将当前卡片上的所有图像导出到桌面:

on mouseUp
  repeat with x = 1 to the number of images
      put the short name of img x into tImgName
      put img x into url ("binfile:/Users/asayd/Desktop/" & tImgName)
  end repeat
end mouseUp

当然,您可以指定任何目录作为保存位置。如果您想导出堆栈中的所有图像,只需在第一个之外添加另一个重复循环:

on mouseUp
  repeat with y = 1 to the number of cards
     go card y
     repeat with x = 1 to the number of images
         put the short name of img x into tImgName
         put img x into url ("binfile:/Users/asayd/Desktop/" & tImgName)
     end repeat
  end repeat
end mouseUp

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2016-02-21
    • 2020-12-07
    • 2012-11-28
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-07-03
    相关资源
    最近更新 更多