开发者

Can not load external spreadsheet in flex builder

I imported two projects in Flex Builder 3 (A and B). Those two projects A and B are in the same folder and in mxml file which is located in A/src I have

<mx:Style source="../..开发者_JAVA百科/B/b/assets/b.css" />

this relative path is correct, but Flex Builder keeps showing message: "Problem finding external stylesheet: ../../B/b/assets/b.css"

What am I doing wrong? Btw, I am newbie in flex, so, please, don't be harsh. :)

Thanks in advance, D


One of the better approaches is you could make a flex library project to hold your shared assests, then link to the shared project via Project Proprties -> Flex Build Path -> Library Paths -> Add Project. Then you can include the stylesheet.

Note that all paths like this link relative to the src folder. If your stylesheet is in folder src/assets/css, then the source attr should be 'assets/css/my.css'

another way would be to add another source path folder to your project via same eclipse menu path as above to Flex Build Path, but on the first tab (can't remember name!)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜