View Full Version : AS3 Multiple markers at this line: -1120: Access of undefined property logoBitmap

05-07-2008, 09:40 AM
The following code
logoMaterial = new BitmapMaterial(logoBitmap.bitmapData, true); from the code

package {
import flash.display.Bitmap;

import org.papervision3d.events.InteractiveScene3DEvent;
import org.papervision3d.materials.BitmapFileMaterial;
import org.papervision3d.materials.BitmapMaterial;
import org.papervision3d.materials.utils.MaterialsList;
import org.papervision3d.objects.primitives.Cube;
public class mission3dcube extends PaperBase {

public var logo:Class;

var logoMaterial:BitmapMaterial;
//standard way to grab bitmap from embedded image
var logoBitmap:Bitmap = new logo() as Bitmap;
logoMaterial = new BitmapMaterial(logoBitmap.bitmapData, true);gives me an error in Flex IDE

Multiple markers at this line: -1120: Access of undefined property logoBitmap. -1120: Access of
undefined property logoMaterial.Any ideas how to fix?

05-07-2008, 10:51 AM
I got round it by doing it this way

public var logo:Class;
var logoBitmap:Bitmap = new logo();
var logoMaterial:BitmapMaterial = new BitmapMaterial( logoBitmap.bitmapData, true);