Posts by Pdesignx

1389 posts
  • Has been part of the Envato Community for over 6 years
  • Has referred 10+ members
  • Has sold $10,000+ on Envato Market
  • Has been a beta tester for an Envato feature
+7 more
Pdesignx says

When i use a movieclip with a dynamic textfield as a source for BitmapData.draw function, even i set transparency to true…

here is a snippet from my code

import flash.display.BitmapData;

_root.createEmptyMovieClip(“sources”,_root.getNextHighestDepth()); _root.createEmptyMovieClip(“copied”,_root.getNextHighestDepth());

sources.createTextField(“txt”,sources.getNextHighestDepth(),0,0,30,30); sources.txt.autoSize = true;

tF = new TextFormat(); tF.size = 40; tF.font = “Verdana”;

sources.txt.text = “Test”; sources.txt.setTextFormat(tF);

// Even i set transperancy true here, it cant seem work… bmp = new BitmapData(sources._width, sources._height, true); bmp.draw(sources);

copied.attachBitmap(bmp, copied.getNextHighestDepth());

copied._x = 200;

to see that the copied one is not transparent draw something to the place that copied one stays with brush…

does any one suggest anything? my mind blew out…

is this a bug or am i missing something?

You can download .fla here

by
by
by
by
by
by