# Load a swf then use BitmapData.draw() Not working?

**URL:** <https://forum.kirupa.com/t/load-a-swf-then-use-bitmapdata-draw-not-working/185471>\
**Category:** Uncategorized\
**Created:** [April 13, 2006, 3:51pm UTC](https://forum.kirupa.com/t/load-a-swf-then-use-bitmapdata-draw-not-working/185471 "2006-04-13T15:51:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![SnakeFlake](https://avatars.discourse-cdn.com/v4/letter/s/43a26b/32.png) [@SnakeFlake](https://forum.kirupa.com/u/SnakeFlake)\
**Post date:** [April 13, 2006, 3:51pm UTC](https://forum.kirupa.com/t/load-a-swf-then-use-bitmapdata-draw-not-working/185471/1 "2006-04-13T15:51:03Z")

</div>

I am trying to load a external swf and then use the BitmapData.draw() method to draw the loaded swf to a bitmap. This does not seem to work. If I draw some lines into the loaded swf using the .lineTo() method and then use BitmapData.draw() i do see the lines that are made by this method, but not the content i put in the swf. Is it just not possible to do this ?

thnx

---

<div class="post-metadata">

**Author:** ![SnakeFlake](https://avatars.discourse-cdn.com/v4/letter/s/43a26b/32.png) [@SnakeFlake](https://forum.kirupa.com/u/SnakeFlake)\
**Post date:** [April 13, 2006, 5:53pm UTC](https://forum.kirupa.com/t/load-a-swf-then-use-bitmapdata-draw-not-working/185471/2 "2006-04-13T17:53:51Z")

</div>

I found the problem… I used onLoadComplete as the function where i called the BitmapData.draw() method… Needs to be onLoadInit. This method also makes sure you can get the width and height of the loaded movie 🙂
