I’m working on a flash project and wanted to rename an .as file. When I changed the name, the .swf breaks. Is there anyway I can remap the .as file to the .fla from CS5.5?
Also, I’m new to actionscript and flash and just wanted to know where is it preferred to keep your .as files? I’ve seen examples where people store them in a separate folder (ex. Actionscript/MainTimeline.as) but I’ve also seen examples where people just keep all the .as in their .fla file.
Ideally you would store them in an unique folder and its subfolders if needed. If you want to do this you will have to open the ActionScript Settings panel and add the new folder to “Source Path”, so Flash knows where to find the as files when compiling.
You can rename an external .as file, but you will have to rename the class inside this file:
…
Then you will have to change every reference to this class in your fla. First look in the AS3 code written on frames.
Finally you may have to remap clip linked to these classes (if there are any). Go into your symbol’s property and change the field “Class”.