How to save your anme files and resources
Posted: Fri Jun 03, 2011 4:51 pm
Hi, many people has been asking how to save entire projects with many resources (as images, videos, sound, scripts, etc) and be able to move them without problems between different computers and operative systems.
Here is a little tutorial about it, I hope to be clear enough. If you have any doubt, don't hesitate asking it here.
- Make a folder with the name of the project (it can be anywhere on each computer, but must have the same name on all the computers)
- Save all the resources inside that folder (resources can be inside the folder, or in new child folders)
- Never call a resource if it's not inside that main folder (or inside a child folder).
- The anme files must be always on the top of the main folder, never inside a child folder.
- If you want to take the project to other computer, copy the entire project folder.
If you have followed this rules, all resources routes will work perfect.
It has to do with how AS works with address:
If you save an anme file in a folder, and in the same folder its resources, the address you will see opening it on notepad will be something like "\arm.png", if the arm is right on the main folder. Or "\character\arm.png", if your arm is inside the main folder, but in "character" folder.
Now, if your arm is out of that main folder or one level up of where the anme file is, AS will call it with its entire address, like "C:\madrobot\non pornographic stuff\arm.png". That specific route will not be found in other computers.
So, the secret to keep our routes clean is to always follow this graphic:

Here is a little tutorial about it, I hope to be clear enough. If you have any doubt, don't hesitate asking it here.
- Make a folder with the name of the project (it can be anywhere on each computer, but must have the same name on all the computers)
- Save all the resources inside that folder (resources can be inside the folder, or in new child folders)
- Never call a resource if it's not inside that main folder (or inside a child folder).
- The anme files must be always on the top of the main folder, never inside a child folder.
- If you want to take the project to other computer, copy the entire project folder.
If you have followed this rules, all resources routes will work perfect.
It has to do with how AS works with address:
If you save an anme file in a folder, and in the same folder its resources, the address you will see opening it on notepad will be something like "\arm.png", if the arm is right on the main folder. Or "\character\arm.png", if your arm is inside the main folder, but in "character" folder.
Now, if your arm is out of that main folder or one level up of where the anme file is, AS will call it with its entire address, like "C:\madrobot\non pornographic stuff\arm.png". That specific route will not be found in other computers.
So, the secret to keep our routes clean is to always follow this graphic:
