Accessing media assets for the image and image list widgets

The image widget provides a popup using the first tab of the PI (General Properties) to select media assets using the “Asset” option. From there you can then select any preloaded image from the Media Assets library, and it displays in the widget as expected.

The image list widget is not as straightforward and I’m unable to successfully display any images. The first tab of the PI has an “Advanced” sub-section which provides access to the Image list data which seems to map to the ItemData property of the image list. I am able to edit the “title” element in the image list data table in the PI and the change does appear in the image list widget itself.

When it comes to the “img” element of the ItemData array however I’m at a complete loss despite hours of trying different file path possibilities. The default array says simply “path image 1” which is no help. The code example in the dictionary hints at something more help: "img" : "./assets/image_001.png" but again despite playing around I can’t get it to work. A normal path to images in the finder doesn’t work, and simply naming an asset as works for the image widget is also unsuccessful.

Question 1 therefore. What is the proper syntax for an img element in the ItemData for an image list widget? A few working examples would be great - ideally both for images in the media assets library and images from external files.

In the case of LiveCode Classic used within the Create framework, there is of course no media asset library directly available. Can a media asset library still be created however, and if so where should it be located? And again what are the paths to any assets made available? So:

Question 2. When using Classic from within Create, what is the proper syntax for an img element in the ItemData for an image list widget? A few working examples would again be extremely helpful.

Many thanks any advice.