|
|||
|
???
To add code to the getAppDir path is easy: // find where the exe is being run var path = getAppDir(); trace("path"); // add anything to the path plusPath = path + ("WHATEVER"); trace("plusPath"); HOWEVER, to remove code from the path using getAppDir: var path = getAppDir(); trace("path"); // remove something from the path minusPath = path - ("WHATEVER"); trace("minusPath"); doesn't work! You have to use path.replace.... Any reason for this? G. |
|
|||
|
while that would work it would still be just as complicated.... if not more so....
if I needed to traverse several directories up I'd have to stick that code in a loop, instead of using the .replace to just substitute the old path with the new one.... |
![]() |
Was this information helpful? Yes No
| Thread Tools | |
| Display Modes | |
|
|