Application.path This page was last modified over 30 day(s) ago and has 1 comment(s)


Back to Application Class Summary

Availability
Windows, Mac OSX, Linux

Usage
mdm.Application.path:String

Parameters
None

Returns
A String

Description
Contains the application's path in platform OS native notation.

Notes
Read Only
It is always recommended to use absolute paths in Zinc applications.

Example Code
//Simple usage:
var myAppPath:String = mdm.Application.path;
//To construct a path to a file located in the same directory as your Application:
var path:String = mdm.Application.path+"myImage.jpg";

mdm.Application Class Example Downloads
No Example Downloads Available


User Comment by Tone on 8th February 2012 - 16:51
New in 4.0, this seems to generate a null when running in Flash. In 3 it generated a blank string which meant it worked OK in Flash.

Registered Users must be logged in to 'MyAccount' to add a Comment - Log In Here
  After Logging In, Click Here to Refresh This Page