# Screenshots for Navigation

**URL:** <https://forum.kirupa.com/t/screenshots-for-navigation/306873>\
**Category:** flash\
**Created:** [March 23, 2010, 7:53pm UTC](https://forum.kirupa.com/t/screenshots-for-navigation/306873 "2010-03-23T19:53:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Slumboing](https://avatars.discourse-cdn.com/v4/letter/s/eada6e/32.png) [@Slumboing](https://forum.kirupa.com/u/Slumboing)\
**Post date:** [March 23, 2010, 7:53pm UTC](https://forum.kirupa.com/t/screenshots-for-navigation/306873/1 "2010-03-23T19:53:27Z")

</div>

Hey all, bit bricked up with this one I’m trying to take screenshots at every node in the navigation so that I can put it in the next node as an icon (as a sort of back button).

I’ve created a package

```auto
package com.lah {
	public class bd
	{
		BitmapData(stage.stageWidth,stage.stageHeight);
		public static var data:Object = {};
	}
}

```

then captured the screen

```auto
import com.lah.bd;

var bd:BitmapData = new BitmapData(stage.stageWidth,stage.stageHeight);
bd.draw(stage);

```

finally in the next node I want to display the captured image as an icon

```auto
addChild (bd) ;

```

i keep getting this message

1067: Implicit coercion of a value of type flash.display:BitmapData to an unrelated type flash.display:DisplayObject.
