//以下方法中,怎么样获取一个远程图片?本人不懂,请大鸟们详细说一下
private function queueBitmap(param1:String) : void
{
if (!_subscribedMaterials[param1])
{
_waitingBitmaps.push(param1);
_subscribedMaterials[param1] = new Array();
}// end if
_subscribedMaterials[param1].push(this);
if (_loadingIdle)
{
loadNextBitmap();
}// end if
return;
}
private function loadNextBitmap() : void
{
var file:* = _waitingBitmaps[0];
var request:* = new URLRequest(file);
var bitmapLoader:* = new Loader();
bitmapLoader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, loadBitmapProgressHandler);
bitmapLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, loadBitmapCompleteHandler);
bitmapLoader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, loadBitmapErrorHandler);
try
{
bitmapLoader.load(request);
_loaderUrls[bitmapLoader] = file;
_loadingIdle = false;
Papervision3D.log("BitmapFileMaterial: Loading bitmap from " + file);
}// end try
catch (error:Error)
{
_waitingBitmaps.shift();
_loadingIdle = true;
Papervision3D.log("[ERROR] BitmapFileMaterial: Unable to load file " + error.message);
}// end catch
return;
}
相关推荐
来自书本《FLASH ActionScript 程序设计经典商业范例集》的自带光盘,所以请放心质量,一定可以用。效果非常棒的图片播放器,包含AS 3.0 和AS 2.0两个版本,可以对照使用。
来自书本《FLASH ActionScript 程序设计经典商业范例集》的自带光盘,所以请放心质量,一定可以用。效果非常棒的图片播放器,包含AS 3.0 和AS 2.0两个版本,可以对照使用。
Flash ActionScript3 在影片剪辑中载入一张网络图片
国外的一个xml图片加载,包括缓动效果,很不错的入门参考
图片轮换很真实,很生动,结合xml编写而成。适合初级程序员学习!
本书讨论了在Flash Player里执行的ActionScript 3.0语言,采用问题—解法—讨论的形式讲解开发过程中常见问题的实际解法,例如:检测用户的 Flash Player 版本或操作系统;格式化日期和货币类型;接受用户输入及操作...
AS3.0的多个切场效果 都可以使用, 大家可以下下来参考
第1章 揭开ActionScript的神秘面纱 第2章 Flash MX的动作面板 第3章 ActionScript编程初步 第4章 影片播放控制 第5章 控制影片剪辑 第6章 影片剪辑属性 第7章 影片剪辑方法 第8章 响应键盘 9章 输入文本和字符串...
第1篇ActionScript3.0语言基础 第1章ActionScript3.0概述 2 1.1ActionScript概述 2 1.1.1ActionScript环境 2 1.1.2ActionScript3.0特性 3 1.1.3ActionScript3.0代码组织 5 1.2ActionScript3.0API概览 5 1.3小结 8 第...
本书是国内第一本“面向原因式”(Why-Oriented Book)、全面系统介绍Flash ActionScript 3的书籍。全书共分为5个部分。第一部分:ActionScript 3语言基础;第二部分:ActionScript 3 面向对象编程;第三部分:...
ActionScript基础ActionScript基础ActionScript基础ActionScript基础ActionScript基础ActionScript基础ActionScript基础ActionScript基础ActionScript基础ActionScript基础ActionScript基础
ActionScript3代码规范 ActionScript3代码规范 ActionScript3代码规范
一个关于用ActionScript3.0的图片3D旋转代码!
ActionScript3.0 中文版 ActionScript3.0 api 中文版说明文档
ActionScript语句中文全解
ActionScript权威指南 ActionScript权威指南
spring actionscript 入门例子