Posts by Pdesignx

1389 posts
  • Beta Tester
  • Bought between 10 and 49 items
  • Exclusive Author
  • Grew a moustache for the Envato Movember competition
  • Has been a member for 6-7 years
  • Referred between 10 and 49 users
  • Repeatedly helped protect Envato Market against copyright violations
+2 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