0 Replies Latest reply on Oct 17, 2013 3:31 AM by Asimov

    Problem with relative path of resources

    Asimov

      Scenario:

      - Extension Builder 2.1

      - SDK 4.5 (for CC applications only)

      - An image placed in the resource folder src/assets/logo.png

      - The image is linked in the code, not embedded

       

      I try to load the image on runtime with theese codes:

      <s:image source="assets/logo.png"/>

      <s:image source="./assets/logo.png"/>

      <s:image source="../assets/logo.png"/>

      <mx:image source="assets/logo.png"/>

      <mx:image source="./assets/logo.png"/>

      <mx:image source="../assets/logo.png"/>

       

       

      But no one of them works.

      I explored the zxp package, and the resource is placed correctly into the package.

      In the Flash Builder design view I see the image, but once compiled (both release or debug) the link is broken.

       

      Anyone has the same issue?

      Am I doing something wrong?