博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Setting a background image on a Spark Application in Flex 4
阅读量:4167 次
发布时间:2019-05-26

本文共 1856 字,大约阅读时间需要 6 分钟。

The following example shows how you can add a background image to a Flex 4 Spark Application by creating a custom skin with a BitmapGraphic and setting the skinClass style in MXML, CSS, or ActionScript.

Full code after the jump.

 

The following example(s) require Flash Player 10 and the Adobe Flex 4 SDK. To download the Adobe Flash Builder 4 trial, see . To download the latest nightly build of the Flex 4 SDK, see .

For more information on getting started with Flex 4 and Flash Builder 4, see the official .

The custom skin class, skins/CustomApplicationSkin.mxml, is as follows:

You can also set the skinClass style in an external .CSS file or <Style/> block, as seen in the following example:

@namespace s "library://ns.adobe.com/flex/spark"; s|Application { skinClass: ClassReference("skins.CustomApplicationSkin"); }

Or, you can set the skinClass style using ActionScript, as seen in the following example:

setStyle("skinClass", CustomApplicationSkin); } ]]>

This entry is based on a beta version of the Flex 4 SDK and therefore is very likely to change as development of the Flex SDK continues. The API can (and will) change causing examples to possibly not compile in newer versions of the Flex 4 SDK.

转载地址:http://pxgxi.baihongyu.com/

你可能感兴趣的文章
flex常用网站
查看>>
flex 页面跳转
查看>>
cat | wc -l 少一行的问题
查看>>
socket 科普文章
查看>>
Mutex, semaphore, spinlock的深度解析
查看>>
pthread线程使用小结
查看>>
A Game of Thrones(59)
查看>>
2018.3.19
查看>>
A Game of Thrones(97)
查看>>
A Game of Thrones(98)
查看>>
2018.3.20
查看>>
2018.3.21
查看>>
2018.3.22
查看>>
2018.3.23
查看>>
A Game of Thrones(102)
查看>>
2018.4.29
查看>>
2018.4.30
查看>>
2018.4.31
查看>>
2018.4.32
查看>>
2018.4.33
查看>>