2013-03-25 2 views
0

1) 하나 개의 심볼에 대한 편집 모드에있을 때, 라이브러리에 다음 심볼의 편집에 들어갈이러한 단축키는 Flash Pro CS6 용으로 제공됩니까?

의 인스턴스 이름 상자에 2) 자동으로 넣어 커서 지금까지 내가 거기에 알고

된 영화 클립

를 선택 "라이브러리 패널의 내부"를 돌아 다니기 위해 쇼크 컷을 넣을 방법이 없습니다.

중복 및 편집 바로 가기가 좋습니다. 나는 심지어 당신이 커스텀 지름길에서 그것을 할 수있는 곳을 찾을 수 없다.

답변

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; 
     } 
    } 
} 

저장 명령에 JSFL 스크립트는 플래시 config 디렉토리에 폴더를 다음에 키보드 단축키를 할당이 명령.

관련 문제