Loading Image / Swf in MAC, AIR

A Quick tip, was stuck today to load an local image / swf inside AIR at MAC OS.
The below is the solution:

var filenotion:String =”;
if(Capabilities.os.search(“Mac”) >= 0) filenotion = “file://”;
Image.source= filenotion +imgFileURI;

2 Responses to “Loading Image / Swf in MAC, AIR”

  1. Loading Image / Swf in MAC, AIR | Adobe Tutorials Says:

    [...] A Quick tip, was stuck today to load an local image / swf inside AIR at MAC OS. Read the original: Loading Image / Swf in MAC, AIR [...]

  2. Beth Writes » ‘macair’ on the web Says:

    [...] http://nsdevaraj.wordpress.com/2009/07/02/loading-image-swf-in-mac-air/Loading Image / Swf in MAC, AIR. A Quick tip, was stuck today to load an local image / swf inside AIR at MAC OS. The below is the solution: var filenotion:String =”; if(Capabilities.os.search(”Mac”) >= 0) filenotion = “file://”; … Filed under Uncategorized at 2:44 am [...]

Leave a Reply