3 Replies Latest reply on Jul 22, 2010 1:30 AM by Cheree Singal

    Help with assets and flex ant task

    Cheree Singal Level 1

      Hi

      I am using Flex Ant tasks to build my flex application. I want to give the location of all my images in the build script, so that, in case I change the image paths later, I need not change my code.

      In the Flex Builder, I have added a source path folder "C:/FlexWorkspace/MyFlexProj/images" and my code reads: @Embed(source="image1.gif")

      This code compiles fine in Flex Builder but fails when I build using ANT because I can't find the mxmlc tag by which I can point to the image path. I have tried source-path but it didn't help.

       

      Please suggest.

       

      I'll be happy to provide details if required.

       

      Thanks

      Cheree