Import images into your app

  1. To import your images into your application, simply drag the .tmz file into the project's .qml file in the Momentics IDE. You can drop the file in the code anywhere after the import bb.cascades 1.0 statement.

    Diagram showing the exported file dragged to a QML file.
  2. The Momentics IDE prompts you to choose the folder you want to add the images to (by default, the folder is named assets).

    Screen showing the importing of an assets folder.
  3. Select the folder and click OK. The layout information for the images is added to the .qml file (including the x and y coordinates, width, height, and object name).

    Screen showing the assets folder specified in the code.

Last modified: 2015-03-31

Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus