here is what I have
This is my World:
package worlds { import entities.Background; import entities.Player; import net.flashpunk.graphics.Backdrop; import net.flashpunk.graphics.Image; import net.flashpunk.FP
import net.flashpunk.World;
public class GameWorld extends World
{
public var playerEntity:Player;
public function GameWorld()
{
super();
}
public override function begin():void
{
add(new Background)
playerEntity = new Player();
add(playerEntity);
}
}
}
This is my background class:
package entities { import net.flashpunk.Entity; import net.flashpunk.FP; import net.flashpunk.graphics.Backdrop import flash.display.Graphics import net.flashpunk.graphics.Image;
public class
Background extends Entity { [Embed(source = “…/…/assets/graphics/map layout togheter2.png”)] private const BACKGROUND:Class;
public function Background()
{
BACKGROUND = new Backdrop
}
}
}
Does anyone know what I do wrong