Search code examples
actionscript-3xcodexcode4

How do I open .as files in Xcode 4?


Is there a way to force Xcode to recognize .as (ActionScript 3) files as source code? If I right click the file in the files and folders side bar I can only "Open As.." Preview or Hex.

If I rename the file extension to something Xcode knows (.m), Xcode allows editing.


Solution

  • Do you want to open your .as file in xcode4 editor and edit it? If yes, you can do it by following steps

    1. Select your .as file
    2. View -> Utilities -> File Inspector
    3. Change the File type of your file(say change it to "Plain Text")

    Now if you select you file and right click on it and choose "Open As", you will get 4 options( ASCII Property List, Hex, Preview and Source )