惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

A
About on SuperTechFans
小众软件
小众软件
WordPress大学
WordPress大学
Microsoft Azure Blog
Microsoft Azure Blog
Recent Announcements
Recent Announcements
博客园 - 三生石上(FineUI控件)
博客园_首页
N
Netflix TechBlog - Medium
IT之家
IT之家
H
Help Net Security
博客园 - 聂微东
Google DeepMind News
Google DeepMind News
罗磊的独立博客
T
Tailwind CSS Blog
F
Fortinet All Blogs
Hugging Face - Blog
Hugging Face - Blog
MongoDB | Blog
MongoDB | Blog
V
V2EX
量子位
云风的 BLOG
云风的 BLOG
爱范儿
爱范儿
博客园 - 司徒正美
The Cloudflare Blog
Engineering at Meta
Engineering at Meta

博客园 - Ricebug

android SDK下载及中文API地址 怎么让我们自己开发的Android程序设为默认启动 在android 中开发java.net.SocketException: socket failed: EACCES (Permission denied) 报错 Eclipse 安装中文插件 Android开发环境搭建(jdk+eclip+android sdk) JS innerHTML Double Quotes 正则表达式有无g参数时,test()结果的差异 [转载]分享8个超棒的免费高质量图标搜索引擎 平时技巧收集 截取中英文字符串 IE处理GIF动画图片onload事件的一个BUG BulkLoader类使用 Asp.net缓存动态图片 JS文件传参及处理技巧 [原创]jQuery动画弹出窗体支持多种展现方式 JQuery上传插件Uploadify使用详解及错误处理 [原创]jQuery插件处女座--超链接滑动动画 js页面定位,相关几个属性 全国哀悼日 网站变灰装(附代码)
ActionScript3.0平铺由外部加载的图片 - Ricebug - 博客园
Ricebug · 2011-02-22 · via 博客园 - Ricebug
var backImage:MovieClip = new MovieClip();

this.addChild (backImage);

var loader:Loader = new Loader();
loader.load (new URLRequest("http://www.baidu.com/img/logo-yy.gif"));
loader.contentLoaderInfo.addEventListener (Event.COMPLETE,showLoadResult);

function showLoadResult (event:Event):void {
        var _bitmap:Bitmap = Bitmap(loader.content);
        var matrix:Matrix = new Matrix(1, 0, 0, 1, this.stage.stageWidth / 2, this.stage.stageHeight / 2);
        var sampleSprite:Sprite = new Sprite();
		//sampleSprite.width=500;
		//sampleSprite.height=500;
        sampleSprite.graphics.beginBitmapFill (_bitmap.bitmapData, matrix , true , true);
        //sampleSprite.graphics.drawRect (this.stage.stageWidth / 2, this.stage.stageHeight / 2, _bitmap.width, _bitmap.height);
		 sampleSprite.graphics.drawRect (0, 0, this.stage.stageWidth, this.stage.stageHeight);
        sampleSprite.graphics.endFill ();
        backImage.addChild (sampleSprite);
}