1)当您处于一个符号的编辑模式时,请进入编辑库中的下一个符号
2)自动将光标放在所选movieClip的实例名称框中
据我所知,有没有办法让“shorcuts”在“图书馆面板内”移动
复制和编辑快捷方式肯定会很好。我甚至无法找到你在自定义快捷方式中的位置。
答案 0 :(得分:0)
您列出的示例没有快捷键,因为它们不是IDE内的默认任务。话虽如此,您可以创建使用JSFL来创建命令的方法,然后为该命令分配键盘快捷键。作为示例,我将在列表中包含第二项的脚本。
2)自动将光标放在实例名称框中以供选择 动画片段
目前还没有办法告诉IDE将光标发送到属性面板中的实例名称框,但是你可以通过使用JSFL解决这个问题。让我们弹出我们自己的实例名称框。
以下是执行此操作所需的代码:
// Assign Instance Name - Andrew Doll
/* This code will provide a prompt for the user to assign an instance name to a selected symbol on the stage. The great thing about using a
// prompt is that the focus is already in the input field of the prompt. To speed up your workflow I recommend assigning a keyboard
// shortcut to this command.
*/
// Check to see if there is a file open first.
var dom = fl.getDocumentDOM();
if (dom == null)
{
alert("Please open a file.");
}
else
{
// Make sure to only select one symbol on the stage at a time.
if (dom.selection.length > 1)
{
alert("You can only select one symbol to assign an instance name to. Please make only a single selection on the stage.");
}
// Make sure that you have at least one symbol selected.
else if (dom.selection.length == 0)
{
alert("You need to select a symbol on the stage to assign an instance name.");
}
// Make sure that the symbol you have selected is a movie clip or a button.
else if (dom.selection[0].symbolType == "graphic" || dom.selection[0].elementType != "instance")
{
alert("Your selection needs to be a button or a movie clip symbol.");
}
else
{
// Pop up a prompt for the user to assign an instance name with.
var iName = prompt("Assign an instance name to the selected symbol.");
// If the user cancels then do nothing.
if (iName == null)
{
// Do Nothing.
}
else
{
// Assign the instance name to the selected symbol.
dom.selection[0].name = iName;
}
}
}
将此命令保存为Flash配置目录中命令文件夹中的JSFL脚本,然后为其指定键盘快捷方式。