I am trying to copy some some text from the parent movie to a loaded in child in AS2/flash8, but for some reason it won't copy transparent even though the copyied bitmap is? Ideas??? Both should be on the same domain I am testing locally, it seems to work if I just copy into a child movie that was created in the parent rather than loaded and then created in.
// method: copyToBitmap
// used for copying a movie to a bitmapdata object
private function copyToBitmapWithTransparency( mc : MovieClip ): BitmapData
{
var bitmap = new BitmapData( mc._width+4, mc._height, true, 0x00000000 );
bitmap.draw( mc );
var rectangle:Rectangle = new Rectangle( 0 , 0, mc._width+4, mc._height );
bitmap.copyPixels( bitmap, rectangle, rectangle, bitmap, bitmap, false );
return bitmap
}
// left generic so pass parameters in
private function copyMc( from: MovieClip, to: MovieClip ):Void
{
var bitmap = copyToBitmapWithTransparency( from );
to.attachBitmap( bitmap, to.getNextHighestDepth() ,"auto", true );
}