PDA

View Full Version : Getting Around Relative Import Paths


mhughson
05-13-2009, 10:14 PM
Hi,

I am running into a problem with import paths and it seems like a pretty huge problem, so I imagine there must be a common solution to the problem.

The issue is in the import path for nested movie imports. For example, if Movie A, imports Movie B, which imports Movie C, the import paths all need to be relative to movie A's location. This might work if you never needed to run Movie B on its own, or had any other movies in different directories that also needed to import Movie B.

I've attached a simple example of the problem, if I'm not making total sense. It was made with Flash 8 Pro.

The only real solution I can come up with is to have everything in a single folder, and avoid having a directory structure all together. That sounds pretty lame.

Anyone have solutions to this issue that they've used before?

Thanks!
Matt

endergrl
05-22-2009, 06:17 PM
I usually pull all of my paths from an external xml file so that it can be changed on the fly without having to republish.