Flash Builder 4.6 - MultiDPIBitmapSource问题

时间:2013-04-02 16:52:30

标签: flex flash-builder

我是flash新手,并且一直在寻找没有运气的时间,有人可以解释为什么这不起作用,当用

进行编码时

不会工作。

<s:BitmapImage id="pgImage" left="0" top="3"> 
    <s:source.normal>
        <s:MultiDPIBitmapSource source160dpi="@Embed('assets160/{largeimage}')"
                                source240dpi="@Embed('assets240/{largeimage}')"
                                source320dpi="@Embed('assets320/{largeimage}')"/>
    </s:source.normal>
</s:BitmapImage>    

1 个答案:

答案 0 :(得分:0)

AFAIK您无法使用绑定变量嵌入资源。原因是编译器在编译时无法知道{largeimage}中的内容,因为此信息仅在运行时可用。

请尝试删除@Embed标记...

相关问题