Created
April 28, 2011 09:56
-
-
Save peterblazejewicz/946107 to your computer and use it in GitHub Desktop.
helper to compute paths
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* this method help to construct paths | |
* at runtime and will work during authoring | |
* and in ZINC application and on Win/Mac/Linux | |
*/ | |
public function getPath(path:String):String | |
{ | |
if(mdm.Application && mdm.Application.path.length > 0) | |
{ | |
path = "file://"+mdm.Application.path.split("\\").join("/")+path; | |
}; | |
return path; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment