Conversation
single spritesheet now working spritesheet bitmapdata max size reduced if whole 2048x2048 isn't used padding added to packing
|
var stream:URLStream = new URLStream(); function gifLinkToByteArray(url:String){ var tex:GifTexture = new GifTexture(gPlayer); var geo:PlaneGeometry = new PlaneGeometry(100, 100, 1, 1, false); private function OnDecodeComplete(ev:GIFPlayerEvent):void gPlayer.resize(0.25, 0.25); sir, not work, TypeError: Error #1009: Cannot access a property or method of a null object reference. by this way, gPlayer = new GIFPlayer(true); got this [Fault] exception, information=ArgumentError: Error #2015: Invalid BitmapData. can anyone demonstrate it for me ? i need it urgently |
|
Hey @mkfui you can download a sample app from https://github.com/peteshand/awy3dGifExample |
Gif Texture, Material and Method can be used to load and display animated gifs within an away3d material
Dependencies:
My fork of "Flash-Animated-GIF-Library"
https://github.com/peteshand/Flash-Animated-GIF-Library