2 Replies Latest reply on Jun 10, 2010 6:30 AM by PJSB_DK

    Help loading image into flash from photoshop..

    pretzel2307

      I am creating a plug-in for photoshop using javascript. I am trying to display a photo within my flash plugin window, but when I pass the address of the file to the mxml code, it uses a home directory indicator, and not a full file path.

       

      For example:

      C:\Users\***\Desktop\Pics\picture_name.jpg

       

      is passed as

       

      ~\Desktop\Pics\picture_name.jpg

       

      And the mxml can't find that file because it is not in full path format.

       

      Is there a way to designate a "home" directory in mxml, similar to the tilde (~) in javascript? Or what do I need to do in order to display the picture?