Flash Builder的AIR项目背景图片 [英] Flash Builder AIR Project Background Image

查看:540
本文介绍了Flash Builder的AIR项目背景图片的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是很新的Flash Builder中,我试图创建一个自定义背景的AIR应用程序。我怎样才能把一个背景图片在我的项目?我已经尝试过将在设计视图中的形象,但它从来没有显示出来,当我运行该项目。

I'm very new to Flash Builder and am trying to create an AIR app with a custom background. How can I put a background image in my project? I've tried just placing the image in the design view but it never shows up when I run the project.

推荐答案

修正了它自己,通过增加 @Embed(来源='/路径/要/ file.jpg) :什么,而不是浏览功能放 /path/to/file.jpg 我从看到如何在按钮上的图标(这表明了)写上心。

Fixed it myself, by adding @Embed(source='/path/to/file.jpg') instead of what the browse function put: /path/to/file.jpg I got the idea from seeing how the icon on a button (which showed up) was written.

编辑:经过一些修修补补,似乎/路径/到/文件效果一样好,只要在文件src目录下,而且复制非嵌入式文件复制到输出文件夹在检查在项目属性下的Flex编译器。

After some more tinkering, it seems that /path/to/file works just as well, as long as the file is under the src directory, and that "Copy non-embedded files to output folder" is checked in the Project properties under Flex Compiler.

这篇关于Flash Builder的AIR项目背景图片的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆