<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
minWidth="955" minHeight="600">
<s:BorderContainer width="100%" height="100%" backgroundImage="@Embed(source='assets/untitled.png')">
//内容
</s:BorderContainer>
</s:Application>
注释:图片不能用绝对路径,一般用@Embed(source='图片路径)"
<s:BorderContainer width="100%" height="100%" backgroundImage="@Embed(source='assets/untitled.png')">中,
source后的是文件路径,flex中路径的起始位置是src目录,加 ../就是到src的上一层