Thursday, October 11, 2007

My Morning Drive

This morning 290 looked like a red metal licorice stick. A car was stalled at San Felipe on the south loop so I veered to the right and took the north loop to shepherd and took the scenic route to work. I cruised through the edge of the Heights, glided over I-10, got the green light at Washington near Adolph and Amber's place, was reminded of the Camera Co-Op, drove past my old high school, followed the bend past Allan Pkwy and around River Oaks, continued past Westheimer, Alabama and Richmond - under 59 and followed the tree-lined Binz to my daily parking spot next to the CAM.

All the while was thinking of whether or not the BitmapData class to pull images from the library was any different (performance-wise) than using attachMovie(). Using bitmapData i wouldn't have to manually convert each image to a movieClip, just set the linkage name and call it:

import flash.display.BitmapData;
// Create imageBmp and attach the bitmap from the library.
var imageBmp:BitmapData = BitmapData.loadBitmap("someLibraryImage");

// create movie clip and attach imageBmp
this.createEmptyMovieClip("imageClip", 10);
imageClip.attachBitmap(imageBmp, 2);

If anyone has any answes, i'm all ears.

3 comments:

CarolinaDivina said...

to my inexperienced ears - the bitmapdata thing sounds more logical and direct - but i don't know anything about this....
maybe one day i'll get a job where i will be forced to do this kind of stuff for a deep-pocketed forward thinking dreamer boss with high hopes and high expectations of me
:-D

colin said...

I thought that was what God was for.

killy said...

class God {
function God() {
seeAll();
knowAll();
fuckWithHumanity(freeWill);
};
};