Access the preloaded images by index

Some questions concerning gallery/images in the project.

Images are stored (blockData.style.blockBackgroundMedia) as string like
“473ea5b1bd487a3a671ef7d11a562fdb.tiff”.
Is that string a random-value or constant on life-time (also on every
program-start)?
2)
How can I access the preloaded images in the gallery by index?
Manipulating gallery like actionListForward() is clear. But how can I use the
third image to be displayed as “blockBackgroundMedia” in another widget? =>
string imagename = gallery[2]
3)
As a background-idle-state (when the device is not used/touched for a while), I
want to have a slideshow with images - every image will hold for a while. To use
a gallery is obvious, but when I call “actionListForward()” the animaton is
predefined. I would like to blend-in or crossfade one image with another. Is
that possible? Or should I use a movie instead (much more memory-usage)?
Additionally, are there some graphical effects except the Blur I can use
(brightness, contrast, …)?

  1. It is constant on life-time
  2. Check the image_url.pma
  3. There is no fade effect. See the How-to: http://stackoverflow.com/questions/12437518/qml-fade-in-fade-out-animation-for-image-element

I tried:

property var sound_obj: page.getBlockByName(“sound_fx_1”) // Audio-widget, sound plays normally when button is pressed


sound_obj.subItem.children[0].children[1].source.start() // I of Item is capital

the start() method throws:

de35576de1c9ee1573b5f33237820082.qml:78: TypeError: Cannot read property ‘source’ of undefined

Maybe children-indices are wrong?

Here is a simple way to start/stop the media:
page.getBlockByName(“sound_fx_1”).blockData.delegate.scriptAdaptor.actionPlay()

Also actionStop() and actionPause().


Back to Flipabit >
Copyright © 2018. Flipabit Team. All rights reserved.