0 Replies Latest reply on Feb 28, 2009 10:39 PM by 2009 Matt

    set backgroundImage path for both FB running in window and webserver

    2009 Matt Level 1
      I need to set a background image for a canvas:

      <mx:Canvas xmlns:mx=" http://www.adobe.com/2006/mxml"
      backgroundColor="#06045F" backgroundImage='/images/My.jpg' >

      The above path '/images/My.jpg' only works after swf file is deployed on the web server.

      If I change the path to '\images\My.jpg', it works in the Flex Builder running in Window,
      but not in web server.

      Is there a way to make the path work for both Flex Builder and Web Server?