I am trying load images dynamically from my NAS but when I defined the source as
//myNASDriveName/myPath/myImage.jpg
the image could not be shown. If I changed the source as c:/myPath/myImage.jpg it worked. Below is the code. I have tried the following source from NAS but none of them worked:
- //myNASDriveName/myPath/myImage.jpg
- ///myNASDriveName/myPath/myImage.jpg
- ////myNASDriveName/myPath/myImage.jpg
\\myNASDriveName\myPath/myImage.jpg
<mx:Panel title="Image Example" width="600"> <mx:VBox width="100%" height="100%" horizontalAlign="center"> <mx:Label text="BitmapImage loaded at runtime"/> <mx:Image id="runtimeimg" source="//myNASDriveName/myPath/myImage.jpg"/> </mx:VBox> </mx:Panel>