Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    May 2012
    Thanked 0 Times in 0 Posts

    Flex3 - mx:image Absolute file path as source not working

    In flex3, can you have an image source equal to an absolute file path?

    Currently my code looks something like this: <mx:Image source='c:/images/image.jpg'> and when I load my program it cannot find the image, but it does exist. Is there any way to use absolute file paths for an image?

  2. #2
    Senior Coder Inigoesdr's Avatar
    Join Date
    Mar 2007
    Florida, USA
    Thanked 406 Times in 398 Posts
    You can't in Flex 4, and i suspect Flex 3 is similar/the same. When you load an image component in Flash Builder and select an image it prompts you to either copy the file in to the project's assets folder(so it would be relative), or embed the image in the application.


Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts