EMBED tag using FlashDevelop problem

I am trying to embed an image file in a papervison project using FlashDevelop.
I dont get any compiler error- but I cannot see the image(bitmap material) in the final project!

Part of the code is:

[AS]

     [Embed(source="Earth.jpg")]

/the image is in the same directory as the class, also added to the library(blue coloured)/
private var EarthMap: Class;

	public function EarthTest1()
	{
		super(640,480); 

		var earthbmp:BitmapData = new EarthMap().bitmapData;
	
		
		var earthmaterial:BitmapMaterial = new BitmapMaterial(earthbmp);
		
		
       
		sphere = new Sphere(null, 150,20,12);
		
		scene.addChild(sphere); 
		camera.fov = 30; 
		
		addEventListener(Event.ENTER_FRAME, enterFrame); 			


	}[/AS]

I have a feeling that this is a common error for beginners like me in FlashDevelop. Any help is appreciated…
PS. using SDK4