How to load a folder of bitmap images?
This is the closest I've gotten, loading the names of the images,
of coarse I want the images,
import flash.filesystem.File;
import flash.events.Event;
import flash.display.BitmapData;
import flash.geom.Rectangle;
import flash.display.Bitmap;
var directory:File = File.documentsDirectory;
directory.browseForDirectory("Select Directory");
directory.addEventListener(Event.SELECT, onSel);
function onSel(event:Event):void
{
directory = event.target as File;
var files:Array = directory.getDirectoryListing();
for (var i:int = 0;i < files.length;i++){
trace(files[i].name);
}
}
How to load folder of bitmaps?
Saturday, June 23, 2012
[Action Script] How to load folder of bitmaps? June,2012
Posted by Bimo Hery Prabowo at 11:13 AM
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment