Creating a scene object
Load an image and use it to create an object
When SceneObjects reach their destination, their onMoveComplete function is executed (if they have one).
App = function()
{
this.load = function()
{
wade.loadImage('/snippets/ssamples/cc_logo.png');
};
this.init = function()
{
// create a sprite
var sprite = new Sprite('/snippets/samples/cc_logo.png');
// create a scene object with that sprite
var logo = new SceneObject(sprite);
// add the object to the scene
wade.addSceneObject(logo);
};
};
Your code was executed successfully!