若需转载本站原创文章,请注明: 转载自zrong's Blog

本站转载的文章标题会标明[转]。

本文链接地址: 如何在Flex中实现图片背景平铺


别找了,Flex自己是没这个功能的。下面这些链接都讲解了怎么自行实现。
转自:http://bbs.airia.cn/FLEX/thread-4095-1-1.aspx

Background image repeat in flex 3 – DEGRAFA!

http://bjw.co.nz/developer/flex/83-background-image-repeat-in-flex-3

e.g:

?View Code ACTIONSCRIPT
Application {    
   background-image:   Embed("assets/images/the_image_goes_here.png");
   background-repeat:   repeat;
   background-position: center;
   background-blend:    multiply;
   borderSkin:              ClassReference("com.degrafa.skins.CSSSkin");
}

此外还有:

  • http://frankieloscavio.blogspot.com/2007/08/repeating-and-tiling-css-backgrounds-in.html
  • http://www.websector.de/blog/2007/07/06/pimp-your-flex-app-using-wsbackgroundpixelskin/
  • http://www.websector.de/blog/2007/07/10/wspatternstylegenerator-for-using-wsbackgroundpixelskin/
  • http://blog.creacog.co.uk/2007/06/11/tile-or-repeat-an-image-into-a-flex-application-background-ii/
  • http://blog.creacog.co.uk/2006/11/21/tile-or-repeat-an-image-into-a-flex-application-background/
  • http://renaun.com/blog/2006/12/08/165/