The graphics files specified in the manifest file should be included in the application package
images directory, so the URI to set the path to the files should use
pkg: resource prefix, such as
pkg:/images/splash_sd.jpg. More information about the requirements and recommendations for the graphics files included in the application package can be found in Set Up the images Directory.
The following is an example of a
The following shows a
main.brs file that starts the application by creating and showing the scene defined in the SceneGraph scene named
rectangleScene scene is defined in an XML component file in the
components directory as described in Set Up the components Directory).
sub Main() showChannelSGScreen() end sub sub showChannelSGScreen() print "in showChannelSGScreen" screen = CreateObject("roSGScreen") m.port = CreateObject("roMessagePort") screen.setMessagePort(m.port) scene = screen.CreateScene("rectangleScene") screen.show() while(true) msg = wait(0, m.port) msgType = type(msg) if msgType = "roSGScreenEvent" if msg.isScreenClosed() then return end if end while end sub
Any graphic image files to be included in the application package itself should be copied into the
images directory. As a minimum, the
images directory must contain the application selection and splash screen graphic files described in Create or Modify a manifest File above. Other graphic files used in the application that will not be downloaded from your server should also be copied into the