# Attaching bitmap

**URL:** https://forum.kirupa.com/t/attaching-bitmap/233137
**Category:** flash
**Created:** [July 20, 2007, 1:27pm UTC](https://forum.kirupa.com/t/attaching-bitmap/233137 "2007-07-20T13:27:31Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![armkbdotcom](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/armkbdotcom/32/3909_2.png) [@armkbdotcom](https://forum.kirupa.com/u/armkbdotcom)
#### Post date: [July 20, 2007, 1:27pm UTC](https://forum.kirupa.com/t/attaching-bitmap/233137/1 "2007-07-20T13:27:31Z")

</div>

Hi,

Not sure if I can explain the problem, but I’ll give it a try.  
I have an array of BitmapData object. This is cached bitmaps loaded dynamically from the server each time script is running.

Then I have a movie clip on timeline, containing other child movie clips on time line. This movie clips are basically a nice fade in/out effect implemented on timeline by motion/alpha/etc.

What I want to do is attach my bitmaps to one of the movie clips on time line.  
What I have achieved so far is using instance name of the mc, make attachBitmap. But what I got is that my bitmap is disappearing when movie clip is playing(I have rollout event on that movieclip which is playing further the clip). So looks like after I attach my bitmap and flash started to play mc, it reloads the movie clip from the library at next keyframe and removing my bitmap ☹

I’ve putted dummy circle shapes in the movie clip, in order to be able to create tweens. In other words I want to replace these ■■■■ circles with bitmaps from BitmapData array.

Thanks for your time!
