如何在Flex中实现图片背景平铺

本站原创文章,转载请注明: 转载自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/

发表评论


请输入上面的验证码