Skip to main content
Known Participant
January 8, 2008
Question

AttachBitmap - movieclip disapears

  • January 8, 2008
  • 4 replies
  • 362 views
I have a movieclip called A and a movieclip called B. I put movieclip B inside of movieclip A. Then I added a button that would get the BitmapData of movieclip A and attach it to movieclip C. The problem is when I attach movie clip A to movieclip C, movieclip B disapears inside movieclip C. Anyone ever had this issue happen to them.

A similar problem is when I printAsBitmap movieclip A, movieclip B disapears inside movieclip A.
This topic has been closed for replies.

4 replies

kglad
Community Expert
Community Expert
January 8, 2008
you're welcome.
kglad
Community Expert
Community Expert
January 8, 2008
if you have a movieclip at depth 200 already attached to destinationMC, it will disappear after you attach your bitmap at the same depth.
relief8Author
Known Participant
January 8, 2008
Perfect, thank you for the help.
relief8Author
Known Participant
January 8, 2008
kglad, thanks for the response. I was just using the description of my problem as an example. The movieclips are much deeper than 1 level and they are using things like dynamic text. Some of the movieclips inside the "proModel" movieclip you see in the code below are disappearing. The weird thing is some dynamic text fields show up and some don't. I'll paste the code anyway to see what your thoughts are.

var sourceMC = _parent._parent._parent.proModel;
var bd = new flash.display.BitmapData(sourceMC._width,
sourceMC._height);
bd.draw(sourceMC);
destinationMC.attachBitmap(bd, 200);
kglad
Community Expert
Community Expert
January 8, 2008
you can't attach a movieclip that's already on-stage. you can attach movieclips that are in your library if they have a linkage id.

if you don't understand that, show the code you're using that causes the disappearance.