ITeye博客

Flex URL 加载资源

demojava · 2011-02-28 12:01 · Adobe · Web前端 · Markdown

1.绝对资源:

  <mx:Style source=http://baidu.com/style/style.css>

2.动态路径:

<mx:HTTPService url="@ContextRoot()/demo.xml"/>

3. 编译时路径通常与Flex运行根目录有关

<mx:Scirpt source="/myscript.as"/>

4.相对路径:就是从当前目录下查找资源的文件路径:

<mx:Scirpt source="../demo.as" />

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。