문제

I'm hoping one of the many helpful FLASH genius' on this site can share the code bit necessary to update the bitmap in this sample code: http://www.flashmo.com/preview/flashmo_096_3d_cylinder_box When clicked I want to have any of the picture's (bitmap) changed to something else (another bitmap) upon the click event.
Thank you greatly for any assistance you can provide!!

도움이 되었습니까?

해결책

var ExampleBitmapData:BitmapData = ExampleBD();
var anotherBitmapData:BitmapData = anotherBD();

var bitmap_Holder:Bitmap;

bitmap_Holder.bitmapData = ExampleBD();

stage.addChild(bitmap_Holder);

stage.addEventListener(MouseEvent.MOUSE_CLICK, function(event:MouseEvent):void{
bitmap_Holder.bitmapData = anotherBD();
});

this can give you an idea i think.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top