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
package com.lah {
public class bd
{
BitmapData(stage.stageWidth,stage.stageHeight);
public static var data:Object = {};
}
}
then captured the screen
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
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.