`
vini123
  • 浏览: 39155 次
  • 性别: Icon_minigender_1
  • 来自: 深圳
社区版块
存档分类
最新评论

AS3GIF让您播放和编码使用ActionScript 3动画GIF

阅读更多
这里是下载地址:http://code.google.com/p/as3gif/

//*****************************************************
// 以下为包外类-----------
//*****************************************************

//==============================================================================================
// gifPlayer
// 注:gifPlayer作者是bytearray.org ,此处为引用,如需源码,请查看http://code.google.com/p/as3gif/;
//==============================================================================================

import flash.display.Loader;
import flash.display.Sprite;

import flash.events.Event;
import flash.events.IOErrorEvent;

import flash.net.URLRequest;
import flash.utils.ByteArray;

internal class GifPlayer {
private var _gifPlayerClass:Class;
private var _gifPlayerEvent:Class;
private var _byteArray:ByteArray;
private var _loader:Loader;

private const GIFPLAYERSTR ="Q1dTCVYpAAB4nNU6WXQU15Xv1va6qltSqdUtCQlBA80mBMiAwQZjEJIaJAMNEpgl7nZVt6pVDb3IXS0WrzKOszp2HCdOnDgJJrGD4zWJE2c3xtlmksnQ0gBnznxM5sOT+Zhz5uRzzpnjnnuruoXAMP+jw61679Z999393df2LvgiG2MsAGyg2ccY6xeq1ep74QAOgX344s///YW3Ircx9l6ocSVh8E9naxhnIExFpqb+h099JDKB0Owv/9V3BZiYLZTbi6XxNanTZcsslczTa8azmTWZkpm3HN/OoViMRnIffWnI5EzHXjOWdSZy5mltR7acNycGzLIpnShmxzTv67hVzKsjVrpsFsZzlt9DTpazOUfdgVu4jPiOYjFnmQVltFzKFsYDHpF1wiqUncBQfLBUKpYGaSa7T+1ANm95CNUjLVhl7eDI7hHrgUnLKc/7uPxjVro4ZpU0VGDAGyrx1DGUKnpL2s3XaH3ZAkpmmXkpW8iWtXLJLDhDhTHrVGDcKu8uFif6i5OFsjieLvPUeH8xVywJWZuTXYqOpdhWdtwuC9mTSsq1kJrKFdPHR7MPWkL2lJA9zXEdzTjuMLZ7dEBxJjOZ7KkmT46hvDlukVED7rYTZskqpE/LWULT9q4/aHkjLXc3P2CmcpaKhim7i7WS5dToVPSuVcqZaUslav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SpBgF8qnd0xUBQtSApfvQyHl+Jo8NHGQ7xy05k5Vt+qddiczn9FuF3CKfx32Ffl/tnn0LybS1q7T970f/8Qv+Fh/0vXZM6yQ=="

public function GifPlayer()
{
_byteArray = new Base64(GIFPLAYERSTR);
_loader = new Loader();
createClass();
}
public function createGif($container:Sprite, $url:String, $onComplete:Function = null, $onError:Function = null):void
{
var $_gifPlayer;
var $_fun:Function = function():void
{
$_gifPlayer = new _gifPlayerClass();
$container.addChild($_gifPlayer);
$_gifPlayer.load( new URLRequest ($url) );
$_gifPlayer.addEventListener( _gifPlayerEvent.COMPLETE, $onComplete);
$_gifPlayer.addEventListener(IOErrorEvent.IO_ERROR, $onError );
}
createClass($_fun);
}

private function createClass($onComplete:Function = null):void
{
if (_gifPlayerClass != null ) {
if ($onComplete != null) $onComplete();
return;
}
//trace("create");
var $_completeHandler:Function = function(evt:Event):void {
_gifPlayerClass = _loader.contentLoaderInfo.applicationDomain.getDefinition("org.bytearray.gif.player.GIFPlayer") as Class;
_gifPlayerEvent = _loader.contentLoaderInfo.applicationDomain.getDefinition("org.bytearray.gif.events.GIFPlayerEvent") as Class;
if ($onComplete != null) $onComplete();
}
_loader.loadBytes(_byteArray);
_loader.contentLoaderInfo.addEventListener(Event.COMPLETE, $_completeHandler);
}
public function get gifPlayerClass ():Class
{
return _gifPlayerClass;
}
public function get gifPlayerEvent ():Class
{
return _gifPlayerEvent;
}
}

//============================================================================
// Base64
// 通用的base64转byteArray;
//============================================================================

internal class Base64 extends ByteArray {
private static  const BASE64:Array = [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,62,0,0,0,63,52,53,54,55,56,57,58,59,60,61,0,0,0,0,0,0,0,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,0,0,0,0,0,0,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,0,0,0,0,0];
public function Base64(str:String):void {
var n:int, j:int;
for (var i:int = 0; i < str.length && str.charAt(i) != "="; i++) {
j = (j << 6) | BASE64[str.charCodeAt(i)];
n += 6;
while (n >= {
writeByte((j >> (n -=) & 0xFF);
}
}
position = 0;
}
}
分享到:
评论

相关推荐

    AS3中gif类库 ActionScript gif类库 AS3打印gif

    在ActionScript 3 (AS3)中,处理GIF图像主要涉及到的是图形解析和动态显示。GIF是一种广泛使用的图像格式,尤其适用于动画,因为它们支持多帧和透明度。AS3作为Adobe Flash Professional和Flex SDK的核心编程语言,...

    AS3生成GIF动画

    综上所述,AS3生成GIF动画涉及图形绘制、动画控制、位图处理、编码库的使用等多个环节,是一个综合性的项目,需要开发者具备良好的AS3编程基础和对动画原理的理解。Qamera这个文件可能是代码示例或者一个开发工具,...

    GIFEncoder 0.1[as3gif]

    GIFEncoder 0.1,简称AS3GIF,是针对ActionScript 3(AS3)平台的一个高效且功能丰富的GIF动态图编码库。这个开源项目允许开发者在Flash和Flex环境中创建和导出GIF格式的动画,极大地扩展了AS3在图形处理和动画制作...

    flash actionscript3 as3 字符编码转换代码.zip

    在Flash开发中,ActionScript3 (AS3) 是一种强大的脚本语言,广泛用于创建交互式内容、动画和游戏。在处理字符编码时,AS3提供了多种方法来处理不同的字符集,以确保数据的正确传输和显示。这个压缩包文件包含了一些...

    as3gif.rar_flex_gifencoder.as

    总之,AS3GIF是一个专门为Flex 3开发者设计的工具,它提供了在ActionScript 3环境中处理GIF图像和动画的能力。通过`GifEncoder.as`,开发者可以创建自己的GIF内容,增强Flex应用程序的交互性和多媒体体验。这个库...

    flash播放Gif动画

    GIFPlayer 0.6是用ActionScript 3(AS3)编写的,ActionScript是Adobe Flash Professional和Flex Builder等工具中使用的编程语言。AS3是面向对象的,具有强大的性能和丰富的API,使得开发人员能够创建交互性强、图形...

    gif and as3

    在给定的标题“gif and as3”和描述“gif在as3里的播放控制,示例代码,非常实用哦”中,我们可以深入探讨如何在AS3中使用GIF图像,并对其进行播放控制。 首先,AS3本身并不直接支持GIF格式,因为它主要是用来处理...

    actionscript 3 as3 pdf

    as3 pdf下载 ActionScript 3.0 是一种强大的面向对象编程语言,它标志着 Flash Player Runtime 演化过程中的一个重要阶段。设计 ActionScript 3.0 的意图是创建一种适合快速地构建效果丰富的互联网应用程序的语言,...

    flash actionscript3游戏开发之循环播放动画gotoAndPlay 前提是要求fla中要在每个标签动画后加入1帧关键帧

    在Flash ActionScript3(AS3)游戏开发中,循环播放动画是常见的需求,尤其是在创建动态效果或者游戏角色动作时。`gotoAndPlay`是ActionScript3中的一个关键命令,用于控制影片剪辑(MovieClip)从指定的帧或标签...

    actionscript 3.0动画制作教程

    7. **动画库和类**:除了基本的动画原理,AS3.0还提供了许多内置的动画库和类,如`TweenLite`和`TweenMax`(来自GreenSock),它们提供更高级的缓动函数和更简洁的语法,使得动画制作更加高效。 8. **时间轴和代码...

    flash actionscript3 as3 开发游戏 仿愤怒的小鸟.zip

    ActionScript3(AS3)是Adobe Flash平台上用于创建交互式内容、游戏和动画的主要编程语言。在本项目中,我们将探讨如何利用AS3来开发一款类似"愤怒的小鸟"的游戏。这个压缩包包含了必要的资源和源码,为学习和理解AS...

    flash actionscript3 纯AS3代码_资源加载进度条.rar

    本资源“flash actionscript3 纯AS3代码_资源加载进度条.rar”显然是一个关于如何使用AS3实现资源加载进度条的示例代码包。下面将详细探讨AS3中的资源加载和进度条实现相关的知识点。 1. **AS3基本概念** AS3是...

    Flex加载GIF动画处理类

    总结来说,在Flex中加载并处理GIF动画,关键在于使用第三方库来解码GIF文件,并利用ActionScript的帧事件和显示对象来实现动画的播放。通过对GIFDecoder类的深入理解和灵活运用,你可以轻松地在Flex应用中集成动态...

    flash actionscript3游戏开发教程小as3 demo 1个人投掷西瓜把另1个人砸死.zip

    在本教程中,我们将深入探讨如何使用Flash ActionScript3(AS3)进行游戏开发,特别是创建一个名为"小as3 demo 1个人投掷西瓜把另1个人砸死"的简单游戏。ActionScript3是Adobe Flash Platform的核心编程语言,它为...

    actionscript3动画 人物行走8视角.swf

    actionscript3动画 人物行走8视角

    ActionScript3高级动画教程.pdf

    《ActionScript3高级动画教程》是一本专注于使用ActionScript3进行高级动画开发的教程,尤其在游戏开发领域具有深入的探讨。ActionScript3是Adobe Flash平台的核心编程语言,以其高效和强大的功能,广泛应用于创建...

    ActionScript3中文教程

    标签中的“ACTIONSCRIPT3”强调了这个教程的核心内容,即学习AS3的关键语法和特性,包括基本数据类型(如int和Number)、变量、常量、运算符、流程控制(如if语句和循环)、函数以及事件处理。AS3还引入了强类型系统...

    ActionScript3中的JSON编码解码包

    这个"ActionScript3中的JSON编码解码包"可能是一个库或框架,专门用于在AS3环境中处理JSON数据,实现数据的序列化和反序列化。 ActionScript3是Adobe Flash Platform的主要编程语言,常用于开发富互联网应用(RIA)...

    as案例-经典,actionscript3

    在给定的“as案例-经典,actionscript3”压缩包中,我们找到了与AS3相关的经典示例项目,主要包括一个名为"IpodPlayer(Done).fla"的Flash源文件,其编译后的SWF文件"IpodPlayerDone.swf",以及支持该项目的数据文件...

Global site tag (gtag.js) - Google Analytics