Tutorial: http://pushbuttonengine.com/docs/Lesson-01-FlashCS4.html
When I get to the greeting world, he gives me the error "Packages cannot be nested, but when I delete {and}, he gets angry with me.
the code:
package
{
import flash.display.Sprite;
import com.pblabs.engine.PBE;
import com.pblabs.engine.debug.Logger;
public class Lesson1FlashCS4 extends Sprite
{
public function Lesson1FlashCS4():void
{
PBE.startup(this);
Logger.print(this, "Hello, World!");
}
}
}
Sorry for my strange language, I have not programmed for a long time and completely forgot everything. Remember this site though!
source
share