[英]Flex: get path of image to transcode
I just started learning Flex this week, and I cannot get an image path to work. 我本周刚刚开始学习Flex,但是我无法获得有效的图像路径。 My folders are as follows:
我的文件夹如下:
ProjectFolder
-src
--assets
--skins
-bin
My image is in assets, we can call it image_name.jpg and my skin is in the skins folder. 我的图像在资产中,我们可以将其称为image_name.jpg,而我的皮肤在skins文件夹中。 How would I put it as the source of a bitmap in a custom skin?
我如何将其作为自定义外观中位图的来源?
Broken Attempt: 尝试失败:
source="@Embed(source='/assets/image_name.jpg')"
as a property of as:BitmapImage MXML tag. 作为as:BitmapImage MXML标签的属性。
Thanks! 谢谢!
Ok, you save the image in src/assets and use: 好的,您将图像保存在src / assets中并使用:
source="@Embed('assets/image_name.jpg')"
Source: http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/spark/primitives/BitmapImage.html#includeExamplesSummary 来源: http : //help.adobe.com/zh_CN/FlashPlatform/reference/actionscript/3/spark/primitives/BitmapImage.html#includeExamplesSummary
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.