osx - Flash AS 3.0 Relative path to file in Mac OS X -


i have swf loads images , displays it.

path images relative. looks this:

../../../images/thumbnail1.png

on windows works fine.

on mac os x swf file cannot load images. there differences between relative path on windows , mac os?

previewimagepath ../../../images/thumbnail1.png

previewloader = new loader(); previewloader.contentloaderinfo.addeventlistener(event.complete, previewloaded); previewloader.load(new urlrequest(previewimagepath));  public function previewloaded(e:event):void {     previewimagebtm = bitmap(previewloader.content);     previewimagebtm.smoothing=true;     addchild(previewimagebtm);   }//previewloaded 

there no limitation on osx load image on previous folders. code correct. ensure have sufficient privileges in previous folders , test file in local server.

here have example , works on mac.

https://docs.google.com/file/d/0bw9pblm_bascdws2d2lczfvrdwm/edit?usp=sharing


Popular posts from this blog

How to calculate SNR of signals in MATLAB? -

c# - Attempting to upload to FTP: System.Net.WebException: System error -

ios - UISlider customization: how to properly add shadow to custom knob image -