returnfunction()local app =getApp();local ob = app.createGameObject(); --create object to attach images toapplyImage(ob, 'welcomeImage'); --add the image titled 'welcome' to the object ob.image.anchor('center', true); --anchors the image to the center of the screen... ob.image.stopAnimation();--if the image is an animated one, it will pause animating.end
You must first create an image for it to be applied! Check applyImage below for examples.