Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/apache-flex/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Apache flex 在Flash/Flex Builder中显示嵌入图像_Apache Flex_Actionscript 3_Flexbuilder_Embedding_Flash Builder - Fatal编程技术网

Apache flex 在Flash/Flex Builder中显示嵌入图像

Apache flex 在Flash/Flex Builder中显示嵌入图像,apache-flex,actionscript-3,flexbuilder,embedding,flash-builder,Apache Flex,Actionscript 3,Flexbuilder,Embedding,Flash Builder,我在Flex4中使用图像嵌入(Flex3也是如此)。我有一节课有很多学生 [Embed(source="../assets/icons/icon1.png")] public static const image:ClasS 我引用它们时使用: <mx:Image source="{imagesResources.image}"/> 运行应用程序时,我会看到图标,但在Flash(Flex)Builder中,在设计模式下工作时,我看不到图像。有没有办法在Flash Build

我在Flex4中使用图像嵌入(Flex3也是如此)。我有一节课有很多学生

[Embed(source="../assets/icons/icon1.png")] 
public static const image:ClasS
我引用它们时使用:

<mx:Image source="{imagesResources.image}"/>

运行应用程序时,我会看到图标,但在Flash(Flex)Builder中,在设计模式下工作时,我看不到图像。有没有办法在Flash Builder设计模式下启用图像可视化?或者更好地包含资源


谢谢

没有。如果嵌入图像(或资源),然后将source属性设置为类变量,它们将不会显示在Flex Builder for Flash Builder的设计视图中


当我想看到它们时,我要做的是将它们设置为static source=“mypath/myimage.jpg”,进行调整,然后将其更改回类变量。

您尝试过在MXML中使用@Embed()指令吗?查看标题“在MXML中使用@Embed()指令”下的图标

这些图标会改变吗?也就是说,如果它们被捆绑到一个定制组件中,你会觉得好吗?我们可以在开发过程中有时更改图像,但我认为它们不会经常更改。