include xml data file in Flex Library Project

Ask a Question related to Macromedia Flex General Discussion, Design and Development.

  1. #1

    Default include xml data file in Flex Library Project

    Hi all,
    i've got a Flex Library Project in which I include some assets, as css files
    and some xml data files too. They are located in my project root, under
    /assets/css and /assets/data. Once compiled, if I use my library in other
    projects, the css styles from the css under /assets/css apply, but the xml data
    files are not found.Both are checked in the Flex Library Build Path window of
    the project's properties.

    There's any reason why the xml files are not included? Or should I reference
    them in some other way... In my library project I'm doing: ' theHTTPService.url
    = "assets/data/data_file.xml" '


    thanks in advance,

    Marc

    marcbc Guest

  2. Similar Questions and Discussions

    1. Flex 2 Project in Flex 3 Swf File Size Increase?
      I have imported my Flex 2 Projects into Flex 3, when I compile my code the resulting swf file is 100-200K larger. Why is that? I thought Flex 3 made...
    2. Flex swc library in Flash CS3 project
      Is it possible to use a swc library created in Flex in a Flash CS3 project?
    3. Problem that use MFC library in Plug-In project
      My platform is VS2003.I create plug-in project by the wizard in Acrobat Developers SDK add add MFC support into the project.But when I use the class...
    4. Updating include/library item
      I seem to have hit a wall with Contribute whilst planning a new intranet - it seems as though the same problem has been mentioned elsewhere on this...
    5. Strange Include problems: Repeat regions will Not workwith include file
      I have a strange problem. I have an Index.asp page and on that page I have a poll that is displays. This poll is located in a sub folder, so to call...
  3. #2

    Default Re: include xml data file in Flex Library Project

    I wonder if that just sets up a link to an external file, such that the external file must exist along with the library project?
    Greg Lafrance Guest

  4. #3

    Default Re: include xml data file in Flex Library Project

    Hi Greg, thanks for answering.
    Yes, that's what I'd like to know also... I mark it to be added to the
    library, but how can I be sure if it's in the final .swc? Are they browseable
    somehow?

    thanks,

    Marc



    marcbc Guest

  5. #4

    Default Re: include xml data file in Flex Library Project

    You just have to make sure your files are selected in the Library project's "Assets" section.
    Brian Vaughn Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139