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.

No comments:

Post a Comment